blob: b1a93c32f1ca095534ef73666db995df2d6de8bd [file] [log] [blame]
[
{
"cmd": [
"vpython",
"-u",
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
"--json-output",
"/path/to/tmp/json",
"ensure-directory",
"--mode",
"0777",
"[START_DIR]/flutter-recipes"
],
"infra_step": true,
"name": "makedirs"
},
{
"cmd": [
"git",
"init"
],
"cwd": "[START_DIR]/flutter-recipes",
"name": "git init",
"timeout": 60.0
},
{
"cmd": [
"git",
"remote",
"add",
"origin",
"https://flutter.googlesource.com/recipes"
],
"cwd": "[START_DIR]/flutter-recipes",
"name": "git remote",
"timeout": 600.0
},
{
"cmd": [
"git",
"config",
"fetch.uriprotocols",
"https"
],
"cwd": "[START_DIR]/flutter-recipes",
"name": "set fetch.uriprotocols",
"timeout": 60.0
},
{
"cmd": [],
"name": "cache"
},
{
"cmd": [
"vpython",
"-u",
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
"--json-output",
"/path/to/tmp/json",
"copy",
"",
"[CACHE]/git/.GUARD_FILE"
],
"cwd": "[START_DIR]/flutter-recipes",
"infra_step": true,
"name": "cache.write guard file",
"~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]/git/flutter.googlesource.com-recipes"
],
"cwd": "[START_DIR]/flutter-recipes",
"infra_step": true,
"name": "cache.makedirs",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"git",
"init",
"--bare"
],
"cwd": "[CACHE]/git/flutter.googlesource.com-recipes",
"name": "cache.git init",
"timeout": 60.0,
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"git",
"config",
"remote.origin.url",
"https://flutter.googlesource.com/recipes"
],
"cwd": "[CACHE]/git/flutter.googlesource.com-recipes",
"name": "cache.remote set-url",
"timeout": 60.0,
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"git",
"config",
"fetch.uriprotocols",
"https"
],
"cwd": "[CACHE]/git/flutter.googlesource.com-recipes",
"name": "cache.set fetch.uriprotocols",
"timeout": 60.0,
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"git",
"config",
"--replace-all",
"remote.origin.fetch",
"+refs/heads/*:refs/heads/*",
"\\+refs/heads/\\*:.*"
],
"cwd": "[CACHE]/git/flutter.googlesource.com-recipes",
"name": "cache.replace fetch configs",
"timeout": 60.0,
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"git",
"fetch",
"--prune",
"--tags",
"origin"
],
"cwd": "[CACHE]/git/flutter.googlesource.com-recipes",
"name": "cache.git fetch",
"timeout": 1200.0,
"~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",
"[START_DIR]/flutter-recipes/.git/objects/info"
],
"cwd": "[START_DIR]/flutter-recipes",
"infra_step": true,
"name": "cache.makedirs object/info",
"~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/flutter.googlesource.com-recipes/objects\n",
"[START_DIR]/flutter-recipes/.git/objects/info/alternates"
],
"cwd": "[START_DIR]/flutter-recipes",
"infra_step": true,
"name": "cache.alternates",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@",
"@@@STEP_LOG_LINE@alternates@[CACHE]/git/flutter.googlesource.com-recipes/objects@@@",
"@@@STEP_LOG_END@alternates@@@"
]
},
{
"cmd": [
"vpython",
"-u",
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
"--json-output",
"/path/to/tmp/json",
"remove",
"[CACHE]/git/.GUARD_FILE"
],
"cwd": "[START_DIR]/flutter-recipes",
"infra_step": true,
"name": "cache.remove guard file",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"git",
"fetch",
"--tags",
"origin",
"main"
],
"cwd": "[START_DIR]/flutter-recipes",
"name": "git fetch",
"timeout": 1200.0
},
{
"cmd": [
"git",
"checkout",
"-f",
"FETCH_HEAD"
],
"cwd": "[START_DIR]/flutter-recipes",
"name": "git checkout",
"timeout": 600.0
},
{
"cmd": [
"git",
"rev-parse",
"HEAD"
],
"cwd": "[START_DIR]/flutter-recipes",
"name": "git rev-parse",
"timeout": 60.0
},
{
"cmd": [
"git",
"clean",
"-f",
"-d",
"-x"
],
"cwd": "[START_DIR]/flutter-recipes",
"name": "git clean",
"timeout": 600.0
},
{
"cmd": [],
"name": "submodule"
},
{
"cmd": [
"git",
"submodule",
"sync"
],
"cwd": "[START_DIR]/flutter-recipes",
"name": "submodule.git submodule sync",
"timeout": 600.0,
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"git",
"submodule",
"update",
"--init",
"--jobs",
"4"
],
"cwd": "[START_DIR]/flutter-recipes",
"name": "submodule.git submodule update",
"timeout": 600.0,
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"git",
"log",
"--oneline",
"-n",
"10"
],
"cwd": "[START_DIR]/recipes",
"name": "log",
"timeout": 600.0
},
{
"cmd": [
"[START_DIR]/recipes/recipes.py",
"lint"
],
"cwd": "[START_DIR]/recipes",
"name": "lint"
},
{
"cmd": [
"[START_DIR]/recipes/recipes.py",
"test",
"run"
],
"cwd": "[START_DIR]/recipes",
"name": "test"
},
{
"cmd": [],
"name": "fetch flutter commit-queue.cfg"
},
{
"cmd": [
"luci-auth",
"token",
"-lifetime",
"3m"
],
"infra_step": true,
"name": "fetch flutter 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/flutter/config/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 flutter commit-queue.cfg.get",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [],
"name": "all tryjobs",
"~followup_annotations": [
"@@@STEP_LOG_LINE@tryjobs@flutter/try/flutter-bar@@@",
"@@@STEP_LOG_LINE@tryjobs@flutter/try/flutter-baz@@@",
"@@@STEP_LOG_LINE@tryjobs@flutter/try/flutter-foo@@@",
"@@@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]/recipes/recipes",
"--recursive"
],
"infra_step": true,
"name": "get_affected_recipes.ls-recipes",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@",
"@@@STEP_LOG_LINE@listdir@[START_DIR]/recipes/recipes/foo@@@",
"@@@STEP_LOG_LINE@listdir@[START_DIR]/recipes/recipes/fuchsia.py@@@",
"@@@STEP_LOG_LINE@listdir@[START_DIR]/recipes/recipes/recipes.py@@@",
"@@@STEP_LOG_LINE@listdir@[START_DIR]/recipes/recipes/sdk.expected@@@",
"@@@STEP_LOG_END@listdir@@@"
]
},
{
"cmd": [
"git",
"diff-tree",
"--no-commit-id",
"--name-only",
"-r",
"-z",
"HEAD"
],
"cwd": "[START_DIR]/recipes",
"name": "get_affected_recipes.git diff-tree",
"timeout": 60.0,
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@",
"@@@STEP_LOG_LINE@files@[@@@",
"@@@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_LINE@files@]@@@",
"@@@STEP_LOG_END@files@@@"
]
},
{
"cmd": [
"[START_DIR]/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.flutter/try/flutter-bar",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@",
"@@@STEP_SUMMARY_TEXT@skipped@@@",
"@@@STEP_LOG_LINE@recipe_used@flutter@@@",
"@@@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,infra,input,number,output,start_time,status,update_time",
"-predicate",
"{\"builder\": {\"bucket\": \"try\", \"builder\": \"flutter-bar\", \"project\": \"flutter\"}, \"status\": \"SUCCESS\"}"
],
"cwd": "[START_DIR]/recipes",
"infra_step": true,
"name": "get builders.flutter/try/flutter-bar.buildbucket.search",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@2@@@",
"@@@STEP_LOG_LINE@raw_io.output_text@{\"builder\": {\"bucket\": \"try\", \"builder\": \"flutter/try/flutter-bar\", \"project\": \"fuchsia\"}, \"endTime\": \"2012-05-13T12:53:20Z\", \"id\": \"100\", \"input\": {\"gerritChanges\": [{\"host\": \"fuchsia-review.googlesource.com\", \"project\": \"fuchsia\"}], \"properties\": {\"recipe\": \"flutter\"}}, \"status\": \"SUCCESS\"}@@@",
"@@@STEP_LOG_END@raw_io.output_text@@@",
"@@@STEP_LINK@100@https://cr-buildbucket.appspot.com/build/100@@@"
]
},
{
"cmd": [],
"name": "get builders.flutter/try/flutter-baz",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@",
"@@@STEP_SUMMARY_TEXT@skipped@@@",
"@@@STEP_LOG_LINE@recipe_used@project@@@",
"@@@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,infra,input,number,output,start_time,status,update_time",
"-predicate",
"{\"builder\": {\"bucket\": \"try\", \"builder\": \"flutter-baz\", \"project\": \"flutter\"}, \"status\": \"SUCCESS\"}"
],
"cwd": "[START_DIR]/recipes",
"infra_step": true,
"name": "get builders.flutter/try/flutter-baz.buildbucket.search",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@2@@@",
"@@@STEP_LOG_LINE@raw_io.output_text@{\"builder\": {\"bucket\": \"try\", \"builder\": \"flutter/try/flutter-baz\", \"project\": \"fuchsia\"}, \"endTime\": \"2012-05-13T12:53:20Z\", \"id\": \"100\", \"input\": {\"gerritChanges\": [{\"host\": \"fuchsia-review.googlesource.com\", \"project\": \"fuchsia\"}], \"properties\": {\"recipe\": \"project\"}}, \"status\": \"SUCCESS\"}@@@",
"@@@STEP_LOG_END@raw_io.output_text@@@",
"@@@STEP_LINK@100@https://cr-buildbucket.appspot.com/build/100@@@"
]
},
{
"cmd": [],
"name": "get builders.flutter/try/flutter-foo",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@",
"@@@STEP_SUMMARY_TEXT@skipped@@@",
"@@@STEP_LOG_LINE@recipe_used@flutter@@@",
"@@@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,infra,input,number,output,start_time,status,update_time",
"-predicate",
"{\"builder\": {\"bucket\": \"try\", \"builder\": \"flutter-foo\", \"project\": \"flutter\"}, \"status\": \"SUCCESS\"}"
],
"cwd": "[START_DIR]/recipes",
"infra_step": true,
"name": "get builders.flutter/try/flutter-foo.buildbucket.search",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@2@@@",
"@@@STEP_LOG_LINE@raw_io.output_text@{\"builder\": {\"bucket\": \"try\", \"builder\": \"flutter/try/flutter-foo\", \"project\": \"fuchsia\"}, \"endTime\": \"2012-05-13T12:53:20Z\", \"id\": \"100\", \"input\": {\"gerritChanges\": [{\"host\": \"fuchsia-review.googlesource.com\", \"project\": \"fuchsia\"}], \"properties\": {\"recipe\": \"flutter\"}}, \"status\": \"SUCCESS\"}@@@",
"@@@STEP_LOG_END@raw_io.output_text@@@",
"@@@STEP_LINK@100@https://cr-buildbucket.appspot.com/build/100@@@"
]
},
{
"name": "$result"
}
]