blob: f3a0cbe4514195ec41467656b4bdea20b3ddf4ec [file] [log] [blame]
[
{
"cmd": [],
"name": "resolve base commit"
},
{
"cmd": [],
"name": "resolve base commit.install infra/tools/luci/gerrit",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"vpython",
"-u",
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
"--json-output",
"/path/to/tmp/json",
"ensure-directory",
"--mode",
"0777",
"[CACHE]/cipd/infra/tools/luci/gerrit/pinned-gerrit-version"
],
"infra_step": true,
"name": "resolve base commit.install infra/tools/luci/gerrit.ensure package directory",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@2@@@"
]
},
{
"cmd": [
"cipd",
"ensure",
"-root",
"[CACHE]/cipd/infra/tools/luci/gerrit/pinned-gerrit-version",
"-ensure-file",
"infra/tools/luci/gerrit/${platform} pinned-gerrit-version",
"-max-threads",
"0",
"-json-output",
"/path/to/tmp/json"
],
"infra_step": true,
"name": "resolve base commit.install infra/tools/luci/gerrit.ensure_installed",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@2@@@",
"@@@STEP_LOG_LINE@json.output@{@@@",
"@@@STEP_LOG_LINE@json.output@ \"result\": {@@@",
"@@@STEP_LOG_LINE@json.output@ \"\": [@@@",
"@@@STEP_LOG_LINE@json.output@ {@@@",
"@@@STEP_LOG_LINE@json.output@ \"instance_id\": \"resolved-instance_id-of-pinned-gerrit-ve\", @@@",
"@@@STEP_LOG_LINE@json.output@ \"package\": \"infra/tools/luci/gerrit/resolved-platform\"@@@",
"@@@STEP_LOG_LINE@json.output@ }@@@",
"@@@STEP_LOG_LINE@json.output@ ]@@@",
"@@@STEP_LOG_LINE@json.output@ }@@@",
"@@@STEP_LOG_LINE@json.output@}@@@",
"@@@STEP_LOG_END@json.output@@@"
]
},
{
"cmd": [
"[CACHE]/cipd/infra/tools/luci/gerrit/pinned-gerrit-version/gerrit",
"change-detail",
"-host",
"https://fuchsia-review.googlesource.com",
"-input",
"{\"change_id\": \"123456\"}",
"-output",
"/path/to/tmp/json"
],
"infra_step": true,
"name": "resolve base commit.get gerrit details",
"timeout": 600,
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@",
"@@@STEP_LOG_LINE@json.output@{@@@",
"@@@STEP_LOG_LINE@json.output@ \"branch\": \"master\"@@@",
"@@@STEP_LOG_LINE@json.output@}@@@",
"@@@STEP_LOG_END@json.output@@@",
"@@@STEP_LOG_LINE@json.input@{@@@",
"@@@STEP_LOG_LINE@json.input@ \"change_id\": \"123456\"@@@",
"@@@STEP_LOG_LINE@json.input@}@@@",
"@@@STEP_LOG_END@json.input@@@"
]
},
{
"cmd": [
"git",
"ls-remote",
"--heads",
"https://fuchsia.googlesource.com/infra/recipes",
"refs/heads/master"
],
"infra_step": true,
"name": "resolve base commit.git ls-remote",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [],
"name": "checkout"
},
{
"cmd": [],
"name": "checkout.install fuchsia/tools/jiri",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"vpython",
"-u",
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
"--json-output",
"/path/to/tmp/json",
"ensure-directory",
"--mode",
"0777",
"[CACHE]/cipd/fuchsia/tools/jiri/pinned-jiri-version"
],
"infra_step": true,
"name": "checkout.install fuchsia/tools/jiri.ensure package directory",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@2@@@"
]
},
{
"cmd": [
"cipd",
"ensure",
"-root",
"[CACHE]/cipd/fuchsia/tools/jiri/pinned-jiri-version",
"-ensure-file",
"fuchsia/tools/jiri/${platform} pinned-jiri-version",
"-max-threads",
"0",
"-json-output",
"/path/to/tmp/json"
],
"infra_step": true,
"name": "checkout.install fuchsia/tools/jiri.ensure_installed",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@2@@@",
"@@@STEP_LOG_LINE@json.output@{@@@",
"@@@STEP_LOG_LINE@json.output@ \"result\": {@@@",
"@@@STEP_LOG_LINE@json.output@ \"\": [@@@",
"@@@STEP_LOG_LINE@json.output@ {@@@",
"@@@STEP_LOG_LINE@json.output@ \"instance_id\": \"resolved-instance_id-of-pinned-jiri-vers\", @@@",
"@@@STEP_LOG_LINE@json.output@ \"package\": \"fuchsia/tools/jiri/resolved-platform\"@@@",
"@@@STEP_LOG_LINE@json.output@ }@@@",
"@@@STEP_LOG_LINE@json.output@ ]@@@",
"@@@STEP_LOG_LINE@json.output@ }@@@",
"@@@STEP_LOG_LINE@json.output@}@@@",
"@@@STEP_LOG_END@json.output@@@"
]
},
{
"cmd": [
"[CACHE]/cipd/fuchsia/tools/jiri/pinned-jiri-version/jiri",
"init",
"-vv",
"-time",
"-j=8",
"-analytics-opt=false",
"-rewrite-sso-to-https=true",
"-cache",
"[CACHE]/git",
"[START_DIR]"
],
"infra_step": true,
"name": "checkout.jiri init",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"[CACHE]/cipd/infra/tools/luci/gerrit/pinned-gerrit-version/gerrit",
"change-detail",
"-host",
"https://fuchsia-review.googlesource.com",
"-input",
"{\"change_id\": \"infra/recipes~123456\", \"params\": {\"o\": [\"ALL_REVISIONS\"]}}",
"-output",
"/path/to/tmp/json"
],
"infra_step": true,
"name": "checkout.get change details",
"timeout": 600,
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@",
"@@@STEP_LOG_LINE@json.output@{@@@",
"@@@STEP_LOG_LINE@json.output@ \"branch\": \"master\", @@@",
"@@@STEP_LOG_LINE@json.output@ \"revisions\": {@@@",
"@@@STEP_LOG_LINE@json.output@ \"a1b2c3\": {@@@",
"@@@STEP_LOG_LINE@json.output@ \"_number\": 7, @@@",
"@@@STEP_LOG_LINE@json.output@ \"ref\": \"refs/changes/00/100/7\"@@@",
"@@@STEP_LOG_LINE@json.output@ }, @@@",
"@@@STEP_LOG_LINE@json.output@ \"d4e5f6\": {@@@",
"@@@STEP_LOG_LINE@json.output@ \"_number\": 3, @@@",
"@@@STEP_LOG_LINE@json.output@ \"ref\": \"refs/changes/00/100/3\"@@@",
"@@@STEP_LOG_LINE@json.output@ }, @@@",
"@@@STEP_LOG_LINE@json.output@ \"g7h8i9\": {@@@",
"@@@STEP_LOG_LINE@json.output@ \"_number\": 9, @@@",
"@@@STEP_LOG_LINE@json.output@ \"ref\": \"refs/changes/00/100/9\"@@@",
"@@@STEP_LOG_LINE@json.output@ }@@@",
"@@@STEP_LOG_LINE@json.output@ }@@@",
"@@@STEP_LOG_LINE@json.output@}@@@",
"@@@STEP_LOG_END@json.output@@@",
"@@@STEP_LOG_LINE@json.input@{@@@",
"@@@STEP_LOG_LINE@json.input@ \"change_id\": \"infra/recipes~123456\", @@@",
"@@@STEP_LOG_LINE@json.input@ \"params\": {@@@",
"@@@STEP_LOG_LINE@json.input@ \"o\": [@@@",
"@@@STEP_LOG_LINE@json.input@ \"ALL_REVISIONS\"@@@",
"@@@STEP_LOG_LINE@json.input@ ]@@@",
"@@@STEP_LOG_LINE@json.input@ }@@@",
"@@@STEP_LOG_LINE@json.input@}@@@",
"@@@STEP_LOG_END@json.input@@@"
]
},
{
"cmd": [
"git",
"ls-remote",
"--heads",
"https://fuchsia.googlesource.com/infra/recipes",
"master"
],
"infra_step": true,
"name": "checkout.resolve HEAD",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"[CACHE]/cipd/fuchsia/tools/jiri/pinned-jiri-version/jiri",
"import",
"-vv",
"-time",
"-j=8",
"-revision",
"h3ll0",
"manifest/minimal",
"https://fuchsia.googlesource.com/infra/recipes"
],
"infra_step": true,
"name": "checkout.jiri import",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"vpython",
"-u",
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
"--json-output",
"/path/to/tmp/json",
"copy",
"",
"[CACHE]/git/.GUARD_FILE"
],
"infra_step": true,
"name": "checkout.write guard file",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@",
"@@@STEP_LOG_END@.GUARD_FILE@@@"
]
},
{
"cmd": [
"[CACHE]/cipd/fuchsia/tools/jiri/pinned-jiri-version/jiri",
"update",
"-vv",
"-time",
"-j=8",
"-autoupdate=false",
"-attempts=1",
"-run-hooks=false",
"-fetch-packages=false"
],
"infra_step": true,
"name": "checkout.jiri update",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"vpython",
"-u",
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
"--json-output",
"/path/to/tmp/json",
"remove",
"[CACHE]/git/.GUARD_FILE"
],
"infra_step": true,
"name": "checkout.remove guard file",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"[CACHE]/cipd/fuchsia/tools/jiri/pinned-jiri-version/jiri",
"patch",
"-vv",
"-time",
"-j=8",
"-host",
"https://fuchsia-review.googlesource.com",
"-project",
"infra/recipes",
"-rebase=true",
"-rebase-branch",
"master",
"refs/changes/00/100/7"
],
"name": "checkout.jiri patch",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"[CACHE]/cipd/fuchsia/tools/jiri/pinned-jiri-version/jiri",
"project",
"-vv",
"-time",
"-j=8",
"-json-output",
"/path/to/tmp/json",
"infra/recipes"
],
"name": "checkout.jiri project",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@",
"@@@STEP_LOG_LINE@json.output@[@@@",
"@@@STEP_LOG_LINE@json.output@ {@@@",
"@@@STEP_LOG_LINE@json.output@ \"branches\": [@@@",
"@@@STEP_LOG_LINE@json.output@ \"(HEAD detached at c22471f)\"@@@",
"@@@STEP_LOG_LINE@json.output@ ], @@@",
"@@@STEP_LOG_LINE@json.output@ \"current_branch\": \"\", @@@",
"@@@STEP_LOG_LINE@json.output@ \"name\": \"infra/recipes\", @@@",
"@@@STEP_LOG_LINE@json.output@ \"path\": \"path/to/infra/recipes\", @@@",
"@@@STEP_LOG_LINE@json.output@ \"relativePath\": \"infra/recipes\", @@@",
"@@@STEP_LOG_LINE@json.output@ \"remote\": \"https://fuchsia.googlesource.com/infra/recipes\", @@@",
"@@@STEP_LOG_LINE@json.output@ \"revision\": \"c22471f4e3f842ae18dd9adec82ed9eb78ed1127\"@@@",
"@@@STEP_LOG_LINE@json.output@ }@@@",
"@@@STEP_LOG_LINE@json.output@]@@@",
"@@@STEP_LOG_END@json.output@@@"
]
},
{
"cmd": [
"git",
"-C",
"path/to/infra/recipes",
"log",
"-n",
"10"
],
"name": "checkout.git log",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"[CACHE]/cipd/fuchsia/tools/jiri/pinned-jiri-version/jiri",
"run-hooks",
"-vv",
"-time",
"-j=8",
"-attempts=3",
"-local-manifest=true"
],
"env": {
"HOME": "[START_DIR]",
"INFRA_RECIPES": "1"
},
"infra_step": true,
"name": "checkout.jiri run-hooks",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"[CACHE]/cipd/fuchsia/tools/jiri/pinned-jiri-version/jiri",
"fetch-packages",
"-vv",
"-time",
"-j=8",
"-attempts=3",
"-local-manifest=true"
],
"infra_step": true,
"name": "checkout.jiri fetch-packages",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"[CACHE]/cipd/fuchsia/tools/jiri/pinned-jiri-version/jiri",
"project",
"-vv",
"-time",
"-j=8",
"-json-output",
"/path/to/tmp/json"
],
"infra_step": true,
"name": "checkout.source-info",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@",
"@@@STEP_LOG_LINE@json.output@[]@@@",
"@@@STEP_LOG_END@json.output@@@"
]
},
{
"cmd": [
"[START_DIR]/infra/recipes/scripts/cleanup_deps.py",
"--check",
"--json-output",
"/path/to/tmp/json"
],
"cwd": "[START_DIR]/infra/recipes",
"name": "check deps",
"~followup_annotations": [
"@@@STEP_LOG_LINE@json.output@[]@@@",
"@@@STEP_LOG_END@json.output@@@"
]
},
{
"cmd": [
"python",
"-u",
"[START_DIR]/infra/recipes/recipes.py",
"lint",
"--whitelist",
"^pipes$"
],
"cwd": "[START_DIR]/infra/recipes",
"name": "lint"
},
{
"cmd": [
"python",
"-u",
"[START_DIR]/infra/recipes/recipes.py",
"test",
"run"
],
"cwd": "[START_DIR]/infra/recipes",
"name": "test"
},
{
"cmd": [],
"name": "fetch fuchsia alternate-commit-queue.cfg"
},
{
"cmd": [
"luci-auth",
"token",
"-lifetime",
"3m"
],
"infra_step": true,
"name": "fetch fuchsia alternate-commit-queue.cfg.get access token for default account",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"vpython",
"-u",
"RECIPE_MODULE[recipe_engine::url]/resources/pycurl.py",
"--url",
"https://luci-config.appspot.com/_ah/api/config/v1/config_sets/projects/fuchsia/config/alternate-commit-queue.cfg",
"--status-json",
"/path/to/tmp/json",
"--outfile",
"/path/to/tmp/json",
"--headers-json",
"{\"Authorization\": \"Bearer extra.secret.token.should.not.be.logged\"}"
],
"name": "fetch fuchsia alternate-commit-queue.cfg.get",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [],
"name": "all tryjobs",
"~followup_annotations": [
"@@@STEP_LOG_LINE@tryjobs@fuchsia/try/secret-tryjob@@@",
"@@@STEP_LOG_END@tryjobs@@@"
]
},
{
"cmd": [],
"name": "get_affected_recipes",
"~followup_annotations": [
"@@@STEP_LOG_LINE@all recipes@fuchsia@@@",
"@@@STEP_LOG_LINE@all recipes@recipes@@@",
"@@@STEP_LOG_END@all recipes@@@",
"@@@STEP_LOG_LINE@changed files (raw)@recipes/fuchsia.py@@@",
"@@@STEP_LOG_LINE@changed files (raw)@recipes/foo@@@",
"@@@STEP_LOG_LINE@changed files (raw)@recipes/non_expected_json_file.json@@@",
"@@@STEP_LOG_LINE@changed files (raw)@recipe_modules/foo/examples/full.expected/bar.json@@@",
"@@@STEP_LOG_LINE@changed files (raw)@recipe_modules/foo/examples/full.py@@@",
"@@@STEP_LOG_LINE@changed files (raw)@recipe_modules/foo/test_api.py@@@",
"@@@STEP_LOG_END@changed files (raw)@@@",
"@@@STEP_LOG_LINE@changed files (filtered)@recipes/fuchsia.py@@@",
"@@@STEP_LOG_LINE@changed files (filtered)@recipes/foo@@@",
"@@@STEP_LOG_LINE@changed files (filtered)@recipes/non_expected_json_file.json@@@",
"@@@STEP_LOG_END@changed files (filtered)@@@",
"@@@STEP_LOG_LINE@affected recipes@none@@@",
"@@@STEP_LOG_END@affected recipes@@@"
]
},
{
"cmd": [
"vpython",
"-u",
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
"--json-output",
"/path/to/tmp/json",
"listdir",
"[START_DIR]/infra/recipes/recipes",
"--recursive"
],
"infra_step": true,
"name": "get_affected_recipes.ls-recipes",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@",
"@@@STEP_LOG_LINE@listdir@[START_DIR]/infra/recipes/recipes/foo@@@",
"@@@STEP_LOG_LINE@listdir@[START_DIR]/infra/recipes/recipes/fuchsia.py@@@",
"@@@STEP_LOG_LINE@listdir@[START_DIR]/infra/recipes/recipes/recipes.py@@@",
"@@@STEP_LOG_LINE@listdir@[START_DIR]/infra/recipes/recipes/sdk.expected@@@",
"@@@STEP_LOG_END@listdir@@@"
]
},
{
"cmd": [
"git",
"diff-tree",
"--no-commit-id",
"--name-only",
"-r",
"-z",
"HEAD"
],
"cwd": "[START_DIR]/infra/recipes",
"name": "get_affected_recipes.git diff-tree",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@",
"@@@STEP_LOG_LINE@files@recipes/fuchsia.py@@@",
"@@@STEP_LOG_LINE@files@recipes/foo@@@",
"@@@STEP_LOG_LINE@files@recipes/non_expected_json_file.json@@@",
"@@@STEP_LOG_LINE@files@recipe_modules/foo/examples/full.expected/bar.json@@@",
"@@@STEP_LOG_LINE@files@recipe_modules/foo/examples/full.py@@@",
"@@@STEP_LOG_LINE@files@recipe_modules/foo/test_api.py@@@",
"@@@STEP_LOG_END@files@@@"
]
},
{
"cmd": [
"[START_DIR]/infra/recipes/recipes.py",
"analyze",
"{\"files\": [\"recipes/fuchsia.py\", \"recipes/foo\", \"recipes/non_expected_json_file.json\"], \"recipes\": [\"fuchsia\", \"recipes\"]}",
"/path/to/tmp/json"
],
"name": "get_affected_recipes.recipes-analyze",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@",
"@@@STEP_LOG_LINE@json.output@{@@@",
"@@@STEP_LOG_LINE@json.output@ \"error\": \"\", @@@",
"@@@STEP_LOG_LINE@json.output@ \"invalidRecipes\": [], @@@",
"@@@STEP_LOG_LINE@json.output@ \"recipes\": [@@@",
"@@@STEP_LOG_LINE@json.output@ \"none\"@@@",
"@@@STEP_LOG_LINE@json.output@ ]@@@",
"@@@STEP_LOG_LINE@json.output@}@@@",
"@@@STEP_LOG_END@json.output@@@"
]
},
{
"cmd": [],
"name": "get builders",
"~followup_annotations": [
"@@@STEP_SUMMARY_TEXT@selected 0 builds@@@"
]
},
{
"cmd": [],
"name": "get builders.fuchsia/try/secret-tryjob",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@",
"@@@STEP_SUMMARY_TEXT@skipped@@@",
"@@@STEP_LOG_LINE@recipe_used@docs@@@",
"@@@STEP_LOG_END@recipe_used@@@"
]
},
{
"cmd": [
"bb",
"ls",
"-host",
"cr-buildbucket.appspot.com",
"-json",
"-nopage",
"-n",
"1",
"-fields",
"builder,create_time,created_by,critical,end_time,id,input,number,output,start_time,status,update_time",
"-predicate",
"{\"builder\": {\"bucket\": \"try\", \"builder\": \"secret-tryjob\", \"project\": \"fuchsia\"}, \"status\": \"SUCCESS\"}"
],
"cwd": "[START_DIR]/infra/recipes",
"infra_step": true,
"name": "get builders.fuchsia/try/secret-tryjob.buildbucket.search",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@2@@@",
"@@@STEP_LOG_LINE@raw_io.output_text@{\"status\": \"SUCCESS\", \"input\": {\"properties\": {\"recipe\": \"docs\"}, \"gerritChanges\": [{\"project\": \"fuchsia\", \"host\": \"fuchsia-review.googlesource.com\"}]}, \"builder\": {\"project\": \"fuchsia\", \"builder\": \"fuchsia/try/secret-tryjob\", \"bucket\": \"try\"}, \"endTime\": \"2012-05-13T12:53:20Z\", \"id\": \"100\"}@@@",
"@@@STEP_LOG_END@raw_io.output_text@@@",
"@@@STEP_LINK@100@https://cr-buildbucket.appspot.com/build/100@@@"
]
},
{
"name": "$result"
}
]