Index: recipes/recipes/luci_go.expected/presubmit_try_job.json |
diff --git a/recipes/recipes/luci_go.expected/presubmit_try_job.json b/recipes/recipes/luci_go.expected/presubmit_try_job.json |
new file mode 100644 |
index 0000000000000000000000000000000000000000..794adcf95ae69d2d26a7908fa04546cd90d590b8 |
--- /dev/null |
+++ b/recipes/recipes/luci_go.expected/presubmit_try_job.json |
@@ -0,0 +1,146 @@ |
+[ |
+ { |
+ "cmd": [ |
+ "python", |
+ "-u", |
+ "RECIPE_MODULE[depot_tools::bot_update]/resources/bot_update.py", |
+ "--master", |
+ "tryserver.infra", |
+ "--builder", |
+ "Luci-go Presubmit", |
+ "--slave", |
+ "TestSlavename", |
+ "--spec", |
+ "cache_dir = '[GIT_CACHE]'\nsolutions = [{'deps_file': '.DEPS.git', 'managed': True, 'name': 'infra', 'url': 'https://chromium.googlesource.com/infra/infra.git'}]", |
+ "--root", |
+ "infra/go/src/github.com/luci/luci-go", |
+ "--revision_mapping_file", |
+ "{\"infra/go/src/github.com/luci/luci-go\": \"got_revision\"}", |
+ "--git-cache-dir", |
+ "[GIT_CACHE]", |
+ "--issue", |
+ "12853011", |
+ "--patchset", |
+ "1", |
+ "--rietveld_server", |
+ "https://codereview.chromium.org", |
+ "--output_json", |
+ "/path/to/tmp/json", |
+ "--revision", |
+ "infra@origin/master", |
+ "--revision", |
+ "infra/go/src/github.com/luci/luci-go@HEAD", |
+ "--force", |
+ "--output_manifest" |
+ ], |
+ "env": { |
+ "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]" |
+ }, |
+ "name": "bot_update", |
+ "~followup_annotations": [ |
+ "@@@STEP_TEXT@Some step text@@@", |
+ "@@@STEP_LOG_LINE@json.output@{@@@", |
+ "@@@STEP_LOG_LINE@json.output@ \"did_run\": true, @@@", |
+ "@@@STEP_LOG_LINE@json.output@ \"fixed_revisions\": {@@@", |
+ "@@@STEP_LOG_LINE@json.output@ \"infra\": \"origin/master\", @@@", |
+ "@@@STEP_LOG_LINE@json.output@ \"infra/go/src/github.com/luci/luci-go\": \"HEAD\"@@@", |
+ "@@@STEP_LOG_LINE@json.output@ }, @@@", |
+ "@@@STEP_LOG_LINE@json.output@ \"manifest\": {@@@", |
+ "@@@STEP_LOG_LINE@json.output@ \"infra/go/src/github.com/luci/luci-go\": {@@@", |
+ "@@@STEP_LOG_LINE@json.output@ \"repository\": \"https://fake.org/infra/go/src/github.com/luci/luci-go.git\", @@@", |
+ "@@@STEP_LOG_LINE@json.output@ \"revision\": \"0fe06637d251d5832f57351f23a63d1cf9458a9d\"@@@", |
+ "@@@STEP_LOG_LINE@json.output@ }@@@", |
+ "@@@STEP_LOG_LINE@json.output@ }, @@@", |
+ "@@@STEP_LOG_LINE@json.output@ \"patch_failure\": false, @@@", |
+ "@@@STEP_LOG_LINE@json.output@ \"patch_root\": \"infra/go/src/github.com/luci/luci-go\", @@@", |
+ "@@@STEP_LOG_LINE@json.output@ \"properties\": {@@@", |
+ "@@@STEP_LOG_LINE@json.output@ \"got_revision\": \"0fe06637d251d5832f57351f23a63d1cf9458a9d\", @@@", |
+ "@@@STEP_LOG_LINE@json.output@ \"got_revision_cp\": \"refs/heads/master@{#264471}\"@@@", |
+ "@@@STEP_LOG_LINE@json.output@ }, @@@", |
+ "@@@STEP_LOG_LINE@json.output@ \"root\": \"infra\", @@@", |
+ "@@@STEP_LOG_LINE@json.output@ \"step_text\": \"Some step text\"@@@", |
+ "@@@STEP_LOG_LINE@json.output@}@@@", |
+ "@@@STEP_LOG_END@json.output@@@", |
+ "@@@SET_BUILD_PROPERTY@got_revision@\"0fe06637d251d5832f57351f23a63d1cf9458a9d\"@@@", |
+ "@@@SET_BUILD_PROPERTY@got_revision_cp@\"refs/heads/master@{#264471}\"@@@" |
+ ] |
+ }, |
+ { |
+ "cmd": [ |
+ "git", |
+ "-c", |
+ "user.email=commit-bot@chromium.org", |
+ "-c", |
+ "user.name=The Commit Bot", |
+ "commit", |
+ "-a", |
+ "-m", |
+ "Committed patch" |
+ ], |
+ "cwd": "[SLAVE_BUILD]/infra/go/src/github.com/luci/luci-go", |
+ "name": "commit git patch" |
+ }, |
+ { |
+ "cmd": [ |
+ "python", |
+ "-u", |
+ "RECIPE_PACKAGE_REPO[depot_tools]/gclient.py", |
+ "runhooks" |
+ ], |
+ "cwd": "[SLAVE_BUILD]/infra", |
+ "env": { |
+ "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]" |
+ }, |
+ "name": "gclient runhooks" |
+ }, |
+ { |
+ "cmd": [ |
+ "python", |
+ "-u", |
+ "[SLAVE_BUILD]/infra/go/env.py", |
+ "go", |
+ "version" |
+ ], |
+ "name": "go third parties" |
+ }, |
+ { |
+ "cmd": [ |
+ "python", |
+ "-u", |
+ "[SLAVE_BUILD]/infra/go/env.py", |
+ "python", |
+ "RECIPE_PACKAGE_REPO[depot_tools]/presubmit_support.py", |
+ "--root", |
+ "[SLAVE_BUILD]/infra/go/src/github.com/luci/luci-go", |
+ "--commit", |
+ "--verbose", |
+ "--verbose", |
+ "--issue", |
+ "12853011", |
+ "--patchset", |
+ "1", |
+ "--skip_canned", |
+ "CheckRietveldTryJobExecution", |
+ "--skip_canned", |
+ "CheckTreeIsOpen", |
+ "--skip_canned", |
+ "CheckBuildbotPendingBuilds", |
+ "--rietveld_url", |
+ "https://codereview.chromium.org", |
+ "--rietveld_fetch", |
+ "--upstream", |
+ "0fe06637d251d5832f57351f23a63d1cf9458a9d", |
+ "--rietveld_email", |
+ "" |
+ ], |
+ "env": { |
+ "PRESUBMIT_BUILDER": "1" |
+ }, |
+ "name": "presubmit" |
+ }, |
+ { |
+ "name": "$result", |
+ "recipe_result": null, |
+ "status_code": 0 |
+ } |
+] |