blob: 0980bb6c7ae3b2ae65aa6045b2b1aaeebba5b0f3 [file] [log] [blame]
[
{
"cmd": [
"vpython",
"-u",
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
"--json-output",
"/path/to/tmp/json",
"rmtree",
"[CACHE]/builder/recipe_engine"
],
"infra_step": true,
"name": "ensure recipe_dir gone"
},
{
"cmd": [
"vpython",
"-u",
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
"--json-output",
"/path/to/tmp/json",
"ensure-directory",
"--mode",
"0777",
"[CACHE]/builder"
],
"infra_step": true,
"name": "ensure builder cache dir exists"
},
{
"cmd": [
"git",
"clone",
"--depth",
"1",
"https://chromium.googlesource.com/infra/luci/recipes-py",
"[CACHE]/builder/recipe_engine"
],
"cwd": "[CACHE]/builder",
"infra_step": true,
"name": "clone recipe engine"
},
{
"cmd": [],
"name": "build"
},
{
"cmd": [
"python",
"-u",
"RECIPE_MODULE[depot_tools::git]/resources/git_setup.py",
"--path",
"[CACHE]/builder/recipe_autoroller/build",
"--url",
"https://example.com/build.git"
],
"name": "build.git setup",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"git",
"fetch",
"origin",
"master",
"--progress"
],
"cwd": "[CACHE]/builder/recipe_autoroller/build",
"env": {
"PATH": "RECIPE_REPO[depot_tools]:<PATH>"
},
"infra_step": true,
"name": "build.git fetch",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"git",
"checkout",
"-f",
"FETCH_HEAD"
],
"cwd": "[CACHE]/builder/recipe_autoroller/build",
"infra_step": true,
"name": "build.git checkout",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"git",
"rev-parse",
"HEAD"
],
"cwd": "[CACHE]/builder/recipe_autoroller/build",
"infra_step": true,
"name": "build.read revision",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@",
"@@@STEP_TEXT@<br/>checked out 'deadbeef'<br/>@@@"
]
},
{
"cmd": [
"git",
"clean",
"-f",
"-d",
"-x"
],
"cwd": "[CACHE]/builder/recipe_autoroller/build",
"infra_step": true,
"name": "build.git clean",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"git",
"config",
"user.name",
"recipe-roller"
],
"cwd": "[CACHE]/builder/recipe_autoroller/build",
"infra_step": true,
"name": "build.git config",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"git",
"branch",
"-D",
"roll"
],
"cwd": "[CACHE]/builder/recipe_autoroller/build",
"infra_step": true,
"name": "build.git branch",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"git",
"new-branch",
"roll"
],
"cwd": "[CACHE]/builder/recipe_autoroller/build",
"env_suffixes": {
"DEPOT_TOOLS_UPDATE": [
"0"
],
"PATH": [
"RECIPE_REPO[depot_tools]"
]
},
"infra_step": true,
"name": "build.git new-branch",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"python",
"-u",
"\nimport shutil\nimport sys\nshutil.copy(sys.argv[1], sys.argv[2])\n",
"[CACHE]/builder/recipe_autoroller/build/infra/config/recipes.cfg",
"/path/to/tmp/json"
],
"name": "build.read recipes.cfg",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@",
"@@@STEP_LOG_LINE@json.output@{@@@",
"@@@STEP_LOG_LINE@json.output@ \"api_version\": 2, @@@",
"@@@STEP_LOG_LINE@json.output@ \"autoroll_recipe_options\": {@@@",
"@@@STEP_LOG_LINE@json.output@ \"disable_reason\": \"\", @@@",
"@@@STEP_LOG_LINE@json.output@ \"no_cc_authors\": false, @@@",
"@@@STEP_LOG_LINE@json.output@ \"nontrivial\": {@@@",
"@@@STEP_LOG_LINE@json.output@ \"automatic_commit_dry_run\": true, @@@",
"@@@STEP_LOG_LINE@json.output@ \"extra_reviewer_emails\": [@@@",
"@@@STEP_LOG_LINE@json.output@ \"foo@chromium.org\", @@@",
"@@@STEP_LOG_LINE@json.output@ \"foo@bar.example.com\", @@@",
"@@@STEP_LOG_LINE@json.output@ \"meep@example.com\"@@@",
"@@@STEP_LOG_LINE@json.output@ ], @@@",
"@@@STEP_LOG_LINE@json.output@ \"set_autosubmit\": true@@@",
"@@@STEP_LOG_LINE@json.output@ }, @@@",
"@@@STEP_LOG_LINE@json.output@ \"trivial\": {@@@",
"@@@STEP_LOG_LINE@json.output@ \"automatic_commit\": true, @@@",
"@@@STEP_LOG_LINE@json.output@ \"bot_commit\": false, @@@",
"@@@STEP_LOG_LINE@json.output@ \"dry_run\": false, @@@",
"@@@STEP_LOG_LINE@json.output@ \"tbr_emails\": [@@@",
"@@@STEP_LOG_LINE@json.output@ \"foo@bar.example.com\", @@@",
"@@@STEP_LOG_LINE@json.output@ \"meep@example.com\"@@@",
"@@@STEP_LOG_LINE@json.output@ ]@@@",
"@@@STEP_LOG_LINE@json.output@ }@@@",
"@@@STEP_LOG_LINE@json.output@ }, @@@",
"@@@STEP_LOG_LINE@json.output@ \"deps\": {@@@",
"@@@STEP_LOG_LINE@json.output@ \"recipe_engine\": {@@@",
"@@@STEP_LOG_LINE@json.output@ \"url\": \"https://chromium.googlesource.com/infra/luci/recipes-py\"@@@",
"@@@STEP_LOG_LINE@json.output@ }@@@",
"@@@STEP_LOG_LINE@json.output@ }@@@",
"@@@STEP_LOG_LINE@json.output@}@@@",
"@@@STEP_LOG_END@json.output@@@"
]
},
{
"cmd": [
"python",
"-u",
"RECIPE_MODULE[depot_tools::gsutil]/resources/gsutil_smart_retry.py",
"--",
"RECIPE_REPO[depot_tools]/gsutil.py",
"----",
"cat",
"gs://recipe-mega-roller-crappy-db/repo_metadata/aHR0cHM6Ly9leGFtcGxlLmNvbS9idWlsZC5naXQ="
],
"infra_step": true,
"name": "build.gsutil repo_state",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@",
"@@@STEP_LOG_LINE@stderr@No URLs matched@@@",
"@@@STEP_LOG_END@stderr@@@"
]
},
{
"cmd": [
"vpython",
"-u",
"[CACHE]/builder/recipe_engine/recipes.py",
"--package",
"[CACHE]/builder/recipe_autoroller/build/infra/config/recipes.cfg",
"autoroll",
"--output-json",
"/path/to/tmp/json"
],
"name": "build.roll",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@",
"@@@STEP_TEXT@ (already at latest revisions)@@@",
"@@@STEP_LOG_LINE@json.output@{@@@",
"@@@STEP_LOG_LINE@json.output@ \"picked_roll_details\": null, @@@",
"@@@STEP_LOG_LINE@json.output@ \"rejected_candidates_count\": 0, @@@",
"@@@STEP_LOG_LINE@json.output@ \"roll_details\": [], @@@",
"@@@STEP_LOG_LINE@json.output@ \"success\": false, @@@",
"@@@STEP_LOG_LINE@json.output@ \"trivial\": null@@@",
"@@@STEP_LOG_LINE@json.output@}@@@",
"@@@STEP_LOG_END@json.output@@@"
]
},
{
"name": "$result"
}
]