Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(275)

Unified Diff: scripts/slave/recipes/chromium_trybot.py

Issue 1588793002: Support variable substitution and tryserver- and waterfall-only cmd line args. (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build.git@master
Patch Set: Addressed review feedback. Revised tests. Rebased. Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: scripts/slave/recipes/chromium_trybot.py
diff --git a/scripts/slave/recipes/chromium_trybot.py b/scripts/slave/recipes/chromium_trybot.py
index ad8fbb9021a206ae8e9db0d97477537cc0126387..cbdaec0081524134ebcb64a3e2fff8f1c94e8ea9 100644
--- a/scripts/slave/recipes/chromium_trybot.py
+++ b/scripts/slave/recipes/chromium_trybot.py
@@ -217,6 +217,7 @@ def _RunStepsInternal(api):
bot_config_object = api.chromium_tests.create_generalized_bot_config_object(
bot_config['bot_ids'])
+ api.chromium_tests.set_precommit_mode()
api.chromium_tests.configure_build(
bot_config_object, override_bot_type='builder_tester')
@@ -476,6 +477,37 @@ def GenTests(api):
)
yield (
+ api.test('dynamic_isolated_script_test_with_args_on_trybot') +
+ props(extra_swarmed_tests=['telemetry_gpu_unittests']) +
+ api.platform.name('linux') +
+ api.override_step_data('read test spec', api.json.output({
+ 'Linux Tests': {
+ 'isolated_scripts': [
+ {
+ 'isolate_name': 'telemetry_gpu_unittests',
+ 'name': 'telemetry_gpu_unittests',
+ 'args': ['--correct-common-arg'],
+ 'non_precommit_args': [
+ '--SHOULD-NOT-BE-PRESENT-DURING-THE-RUN'
+ ],
+ 'precommit_args': [
+ '--these-args-should-be-present',
+ '--test-machine-name=\"${buildername}\"',
+ '--build-revision=\"${got_revision}\"',
+ ],
+ 'swarming': {'can_use_on_swarming_builders': True},
+ },
+ ],
+ },
+ })) +
+ suppress_analyze() +
+ api.override_step_data(
+ 'telemetry_gpu_unittests (with patch)',
+ api.test_utils.canned_isolated_script_output(
+ passing=True, is_win=False, swarming=True))
+ )
+
+ yield (
api.test('swarming_trigger_failure') +
props() +
api.platform.name('linux') +

Powered by Google App Engine
This is Rietveld 408576698