Index: scripts/slave/recipes/chromium_trybot.expected/dynamic_gtest_with_args_on_trybot.json |
diff --git a/scripts/slave/recipes/chromium_trybot.expected/swarming_trigger_failure.json b/scripts/slave/recipes/chromium_trybot.expected/dynamic_gtest_with_args_on_trybot.json |
similarity index 95% |
copy from scripts/slave/recipes/chromium_trybot.expected/swarming_trigger_failure.json |
copy to scripts/slave/recipes/chromium_trybot.expected/dynamic_gtest_with_args_on_trybot.json |
index d999122fa89158c2ac45eeb2186e9a041fdc8df8..7d81d7180c23bdfbb0c13a080b9727ce1184daea 100644 |
--- a/scripts/slave/recipes/chromium_trybot.expected/swarming_trigger_failure.json |
+++ b/scripts/slave/recipes/chromium_trybot.expected/dynamic_gtest_with_args_on_trybot.json |
@@ -138,9 +138,18 @@ |
"@@@STEP_LOG_LINE@json.output@ \"Linux Tests\": {@@@", |
"@@@STEP_LOG_LINE@json.output@ \"gtest_tests\": [@@@", |
"@@@STEP_LOG_LINE@json.output@ {@@@", |
- "@@@STEP_LOG_LINE@json.output@ \"swarming\": {@@@", |
- "@@@STEP_LOG_LINE@json.output@ \"can_use_on_swarming_builders\": true@@@", |
- "@@@STEP_LOG_LINE@json.output@ }, @@@", |
+ "@@@STEP_LOG_LINE@json.output@ \"args\": [@@@", |
+ "@@@STEP_LOG_LINE@json.output@ \"--correct-common-arg\"@@@", |
+ "@@@STEP_LOG_LINE@json.output@ ], @@@", |
+ "@@@STEP_LOG_LINE@json.output@ \"non_precommit_args\": [@@@", |
+ "@@@STEP_LOG_LINE@json.output@ \"--THIS-ARG-SHOULD-NOT-BE-PRESENT\"@@@", |
Sergiy Byelozyorov
2016/01/14 09:43:47
This is actually confusing when reading expectatio
|
+ "@@@STEP_LOG_LINE@json.output@ ], @@@", |
+ "@@@STEP_LOG_LINE@json.output@ \"precommit_args\": [@@@", |
+ "@@@STEP_LOG_LINE@json.output@ \"--these-args-should-be-present\", @@@", |
+ "@@@STEP_LOG_LINE@json.output@ \"--mastername=\\\"${master_name}\\\"\", @@@", |
+ "@@@STEP_LOG_LINE@json.output@ \"--buildername=\\\"${builder_name}\\\"\", @@@", |
+ "@@@STEP_LOG_LINE@json.output@ \"--buildrevision=\\\"${build_revision}\\\"\"@@@", |
+ "@@@STEP_LOG_LINE@json.output@ ], @@@", |
"@@@STEP_LOG_LINE@json.output@ \"test\": \"base_unittests\"@@@", |
"@@@STEP_LOG_LINE@json.output@ }@@@", |
"@@@STEP_LOG_LINE@json.output@ ]@@@", |
@@ -174,27 +183,6 @@ |
}, |
{ |
"cmd": [ |
- "python", |
- "-u", |
- "RECIPE_MODULE[isolate]/resources/find_isolated_tests.py", |
- "--build-dir", |
- "[SLAVE_BUILD]/src/out/Release", |
- "--output-json", |
- "/path/to/tmp/json" |
- ], |
- "cwd": "[SLAVE_BUILD]", |
- "name": "find isolated tests", |
- "~followup_annotations": [ |
- "@@@STEP_LOG_LINE@json.output@{@@@", |
- "@@@STEP_LOG_LINE@json.output@ \"dummy_target_1\": \"[dummy hash for dummy_target_1]\", @@@", |
- "@@@STEP_LOG_LINE@json.output@ \"dummy_target_2\": \"[dummy hash for dummy_target_2]\"@@@", |
- "@@@STEP_LOG_LINE@json.output@}@@@", |
- "@@@STEP_LOG_END@json.output@@@", |
- "@@@SET_BUILD_PROPERTY@swarm_hashes@{\"dummy_target_1\": \"[dummy hash for dummy_target_1]\", \"dummy_target_2\": \"[dummy hash for dummy_target_2]\"}@@@" |
- ] |
- }, |
- { |
- "cmd": [ |
"killall", |
"-9", |
"gnome-keyring-daemon" |
@@ -261,7 +249,6 @@ |
"@@@STEP_LOG_LINE@analyze_details@ \"compile_targets\": [@@@", |
"@@@STEP_LOG_LINE@analyze_details@ \"angle_unittests_run\", @@@", |
"@@@STEP_LOG_LINE@analyze_details@ \"base_unittests\", @@@", |
- "@@@STEP_LOG_LINE@analyze_details@ \"base_unittests_run\", @@@", |
"@@@STEP_LOG_LINE@analyze_details@ \"chromium_swarm_tests\", @@@", |
"@@@STEP_LOG_LINE@analyze_details@ \"content_gl_tests_run\", @@@", |
"@@@STEP_LOG_LINE@analyze_details@ \"gl_tests_run\", @@@", |
@@ -272,7 +259,6 @@ |
"@@@STEP_LOG_LINE@analyze_details@ \"self.m.filter.compile_targets\": [@@@", |
"@@@STEP_LOG_LINE@analyze_details@ \"angle_unittests_run\", @@@", |
"@@@STEP_LOG_LINE@analyze_details@ \"base_unittests\", @@@", |
- "@@@STEP_LOG_LINE@analyze_details@ \"base_unittests_run\", @@@", |
"@@@STEP_LOG_LINE@analyze_details@ \"chromium_swarm_tests\", @@@", |
"@@@STEP_LOG_LINE@analyze_details@ \"content_gl_tests_run\", @@@", |
"@@@STEP_LOG_LINE@analyze_details@ \"gl_tests_run\", @@@", |
@@ -283,7 +269,6 @@ |
"@@@STEP_LOG_LINE@analyze_details@ \"self.m.filter.test_targets\": [@@@", |
"@@@STEP_LOG_LINE@analyze_details@ \"angle_unittests_run\", @@@", |
"@@@STEP_LOG_LINE@analyze_details@ \"base_unittests\", @@@", |
- "@@@STEP_LOG_LINE@analyze_details@ \"base_unittests_run\", @@@", |
"@@@STEP_LOG_LINE@analyze_details@ \"content_gl_tests_run\", @@@", |
"@@@STEP_LOG_LINE@analyze_details@ \"gl_tests_run\", @@@", |
"@@@STEP_LOG_LINE@analyze_details@ \"gl_unittests_run\", @@@", |
@@ -293,7 +278,6 @@ |
"@@@STEP_LOG_LINE@analyze_details@ \"test_targets\": [@@@", |
"@@@STEP_LOG_LINE@analyze_details@ \"angle_unittests_run\", @@@", |
"@@@STEP_LOG_LINE@analyze_details@ \"base_unittests\", @@@", |
- "@@@STEP_LOG_LINE@analyze_details@ \"base_unittests_run\", @@@", |
"@@@STEP_LOG_LINE@analyze_details@ \"content_gl_tests_run\", @@@", |
"@@@STEP_LOG_LINE@analyze_details@ \"gl_tests_run\", @@@", |
"@@@STEP_LOG_LINE@analyze_details@ \"gl_unittests_run\", @@@", |
@@ -340,7 +324,7 @@ |
"--goma-dir", |
"[BUILD]/goma", |
"--swarming-targets-file", |
- "base_unittests\ncontent_gl_tests\ngl_tests\nangle_unittests\ngl_unittests\ntelemetry_gpu_test\ntelemetry_gpu_test\ntelemetry_gpu_test\ntelemetry_gpu_test\ntelemetry_gpu_test\ntelemetry_gpu_test\ntelemetry_gpu_test\ntelemetry_gpu_test\ntelemetry_gpu_test\ntelemetry_gpu_test\ntab_capture_end2end_tests\nbase_unittests\n", |
+ "content_gl_tests\ngl_tests\nangle_unittests\ngl_unittests\ntelemetry_gpu_test\ntelemetry_gpu_test\ntelemetry_gpu_test\ntelemetry_gpu_test\ntelemetry_gpu_test\ntelemetry_gpu_test\ntelemetry_gpu_test\ntelemetry_gpu_test\ntelemetry_gpu_test\ntelemetry_gpu_test\ntab_capture_end2end_tests\n", |
"//out/Release" |
], |
"cwd": "[SLAVE_BUILD]", |
@@ -369,7 +353,6 @@ |
"--", |
"angle_unittests_run", |
"base_unittests", |
- "base_unittests_run", |
"chromium_swarm_tests", |
"content_gl_tests_run", |
"gl_tests_run", |
@@ -412,7 +395,6 @@ |
"[SLAVE_BUILD]/src/out/Release/content_gl_tests.isolated.gen.json", |
"[SLAVE_BUILD]/src/out/Release/gl_unittests.isolated.gen.json", |
"[SLAVE_BUILD]/src/out/Release/tab_capture_end2end_tests.isolated.gen.json", |
- "[SLAVE_BUILD]/src/out/Release/base_unittests.isolated.gen.json", |
"[SLAVE_BUILD]/src/out/Release/gl_tests.isolated.gen.json", |
"[SLAVE_BUILD]/src/out/Release/angle_unittests.isolated.gen.json", |
"[SLAVE_BUILD]/src/out/Release/telemetry_gpu_test.isolated.gen.json" |
@@ -422,7 +404,6 @@ |
"~followup_annotations": [ |
"@@@STEP_LOG_LINE@json.output@{@@@", |
"@@@STEP_LOG_LINE@json.output@ \"angle_unittests\": \"[dummy hash for angle_unittests]\", @@@", |
- "@@@STEP_LOG_LINE@json.output@ \"base_unittests\": \"[dummy hash for base_unittests]\", @@@", |
"@@@STEP_LOG_LINE@json.output@ \"content_gl_tests\": \"[dummy hash for content_gl_tests]\", @@@", |
"@@@STEP_LOG_LINE@json.output@ \"gl_tests\": \"[dummy hash for gl_tests]\", @@@", |
"@@@STEP_LOG_LINE@json.output@ \"gl_unittests\": \"[dummy hash for gl_unittests]\", @@@", |
@@ -436,23 +417,6 @@ |
"cmd": [ |
"python", |
"-u", |
- "\nimport sys\nprint '*.isolated file for target %s is missing' % sys.argv[1]\nsys.exit(1)\n", |
- "base_unittests" |
- ], |
- "cwd": "[SLAVE_BUILD]", |
- "name": "[error] base_unittests (with patch)", |
- "~followup_annotations": [ |
- "@@@STEP_LOG_LINE@python.inline@@@@", |
- "@@@STEP_LOG_LINE@python.inline@import sys@@@", |
- "@@@STEP_LOG_LINE@python.inline@print '*.isolated file for target %s is missing' % sys.argv[1]@@@", |
- "@@@STEP_LOG_LINE@python.inline@sys.exit(1)@@@", |
- "@@@STEP_LOG_END@python.inline@@@" |
- ] |
- }, |
- { |
- "cmd": [ |
- "python", |
- "-u", |
"[SLAVE_BUILD]/src/tools/swarming_client/swarming.py", |
"trigger", |
"--swarming", |
@@ -1831,21 +1795,41 @@ |
] |
}, |
{ |
+ "allow_subannotations": true, |
"cmd": [ |
"python", |
"-u", |
- "\nimport sys\nprint '%s wasn\\'t triggered' % sys.argv[1]\nsys.exit(1)\n", |
- "base_unittests" |
+ "[SLAVE_BUILD]/src/infra/scripts/runtest_wrapper.py", |
+ "--path-build", |
+ "[BUILD]", |
+ "--", |
+ "--target", |
+ "Release", |
+ "--xvfb", |
+ "--factory-properties", |
+ "{\"blamelist\": [\"cool_dev1337@chromium.org\", \"hax@chromium.org\"], \"branch\": \"\", \"build_config\": \"Release\", \"buildername\": \"linux_chromium_rel_ng\", \"buildnumber\": 571, \"issue\": 12853011, \"mastername\": \"tryserver.chromium.linux\", \"patch_project\": \"chromium\", \"patchset\": 1, \"project\": \"chrome\", \"recipe\": \"chromium_trybot\", \"repository\": \"\", \"requester\": \"commit-bot@chromium.org\", \"revision\": null, \"rietveld\": \"https://codereview.chromium.org\", \"slavename\": \"TestSlavename\", \"swarm_hashes\": {\"angle_unittests\": \"[dummy hash for angle_unittests]\", \"content_gl_tests\": \"[dummy hash for content_gl_tests]\", \"gl_tests\": \"[dummy hash for gl_tests]\", \"gl_unittests\": \"[dummy hash for gl_unittests]\", \"gpu_unittests\": \"[dummy hash for gpu_unittests]\", \"tab_capture_end2end_tests\": \"[dummy hash for tab_capture_end2end_tests]\", \"telemetry_gpu_test\": \"[dummy hash for telemetry_gpu_test]\"}, \"workdir\": \"/path/to/workdir/TestSlavename\"}", |
+ "--build-properties", |
+ "{\"blamelist\": [\"cool_dev1337@chromium.org\", \"hax@chromium.org\"], \"branch\": \"\", \"build_config\": \"Release\", \"buildername\": \"linux_chromium_rel_ng\", \"buildnumber\": 571, \"issue\": 12853011, \"mastername\": \"tryserver.chromium.linux\", \"patch_project\": \"chromium\", \"patchset\": 1, \"project\": \"chrome\", \"recipe\": \"chromium_trybot\", \"repository\": \"\", \"requester\": \"commit-bot@chromium.org\", \"revision\": null, \"rietveld\": \"https://codereview.chromium.org\", \"slavename\": \"TestSlavename\", \"swarm_hashes\": {\"angle_unittests\": \"[dummy hash for angle_unittests]\", \"content_gl_tests\": \"[dummy hash for content_gl_tests]\", \"gl_tests\": \"[dummy hash for gl_tests]\", \"gl_unittests\": \"[dummy hash for gl_unittests]\", \"gpu_unittests\": \"[dummy hash for gpu_unittests]\", \"tab_capture_end2end_tests\": \"[dummy hash for tab_capture_end2end_tests]\", \"telemetry_gpu_test\": \"[dummy hash for telemetry_gpu_test]\"}, \"workdir\": \"/path/to/workdir/TestSlavename\"}", |
+ "--annotate=gtest", |
+ "--test-type=base_unittests", |
+ "--step-name=base_unittests (with patch)", |
+ "--test-launcher-summary-output", |
+ "/path/to/tmp/json", |
+ "--generate-json-file", |
+ "-o", |
+ "gtest-results/base_unittests", |
+ "--builder-name=linux_chromium_rel_ng", |
+ "--slave-name=TestSlavename", |
+ "--build-number=571", |
+ "base_unittests", |
+ "--correct-common-arg", |
+ "--these-args-should-be-present", |
+ "--mastername=\"tryserver.chromium.linux\"", |
+ "--buildername=\"linux_chromium_rel_ng\"", |
+ "--buildrevision=\"f27fede2220bcd326aee3e86ddfd4ebd0fe58cb9\"" |
], |
"cwd": "[SLAVE_BUILD]", |
- "name": "[collect error] base_unittests (with patch)", |
- "~followup_annotations": [ |
- "@@@STEP_LOG_LINE@python.inline@@@@", |
- "@@@STEP_LOG_LINE@python.inline@import sys@@@", |
- "@@@STEP_LOG_LINE@python.inline@print '%s wasn\\'t triggered' % sys.argv[1]@@@", |
- "@@@STEP_LOG_LINE@python.inline@sys.exit(1)@@@", |
- "@@@STEP_LOG_END@python.inline@@@" |
- ] |
+ "name": "base_unittests (with patch)" |
}, |
{ |
"allow_subannotations": true, |
@@ -2345,29 +2329,11 @@ |
"170242" |
], |
"cwd": "[SLAVE_BUILD]", |
- "name": "Upload to test-results [tab_capture_end2end_tests on NVIDIA GPU on Linux (with patch) on Linux]", |
- "~followup_annotations": [ |
- "@@@SET_BUILD_PROPERTY@failure_type@\"INVALID_TEST_RESULTS\"@@@" |
- ] |
- }, |
- { |
- "cmd": [ |
- "python", |
- "-u", |
- "import sys; sys.exit(1)" |
- ], |
- "cwd": "[SLAVE_BUILD]", |
- "name": "base_unittests", |
- "~followup_annotations": [ |
- "step returned non-zero exit code: 1", |
- "@@@STEP_TEXT@TEST RESULTS WERE INVALID@@@", |
- "@@@STEP_FAILURE@@@", |
- "@@@SET_BUILD_PROPERTY@failure_hash@\"212d0eb2385b1eaa828053689225258ece065725\"@@@" |
- ] |
+ "name": "Upload to test-results [tab_capture_end2end_tests on NVIDIA GPU on Linux (with patch) on Linux]" |
}, |
{ |
"name": "$result", |
- "reason": "1 out of 1 aggregated steps failed. Failures: Step('base_unittests') failed with return_code 1", |
- "status_code": 1 |
+ "recipe_result": null, |
+ "status_code": 0 |
} |
] |