blob: 33a4f12460606e070c445d59a625f7e34a2efecf [file] [log] [blame]
[
{
"cmd": [],
"name": "check inputs"
},
{
"cmd": [
"git",
"ls-remote",
"--heads",
"https://fuchsia.googlesource.com/integration",
"releases/targetbranch"
],
"name": "check inputs.get target branch HEAD",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [],
"name": "resolve source revision"
},
{
"cmd": [],
"name": "checkout fuchsia"
},
{
"cmd": [],
"name": "checkout fuchsia.checkout",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [],
"name": "checkout fuchsia.checkout.install fuchsia/tools/jiri",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@2@@@"
]
},
{
"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 fuchsia.checkout.install fuchsia/tools/jiri.ensure package directory",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@3@@@"
]
},
{
"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 fuchsia.checkout.install fuchsia/tools/jiri.ensure_installed",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@3@@@",
"@@@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=16",
"-analytics-opt=false",
"-rewrite-sso-to-https=true",
"-cache",
"[CACHE]/git",
"[START_DIR]/fuchsia"
],
"infra_step": true,
"name": "checkout fuchsia.checkout.jiri init",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@2@@@"
]
},
{
"cmd": [
"[CACHE]/cipd/fuchsia/tools/jiri/pinned-jiri-version/jiri",
"import",
"-vv",
"-time",
"-j=16",
"-name",
"integration",
"-revision",
"foo",
"integration",
"sso://fuchsia/integration"
],
"cwd": "[START_DIR]/fuchsia",
"infra_step": true,
"name": "checkout fuchsia.checkout.jiri import",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@2@@@"
]
},
{
"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]/fuchsia",
"infra_step": true,
"name": "checkout fuchsia.checkout.write guard file",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@2@@@",
"@@@STEP_LOG_END@.GUARD_FILE@@@"
]
},
{
"cmd": [
"[CACHE]/cipd/fuchsia/tools/jiri/pinned-jiri-version/jiri",
"update",
"-vv",
"-time",
"-j=16",
"-autoupdate=false",
"-attempts=1",
"-run-hooks=false",
"-fetch-packages=false"
],
"cwd": "[START_DIR]/fuchsia",
"infra_step": true,
"name": "checkout fuchsia.checkout.jiri update",
"timeout": 1800,
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@2@@@"
]
},
{
"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]/fuchsia",
"infra_step": true,
"name": "checkout fuchsia.checkout.remove guard file",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@2@@@"
]
},
{
"cmd": [
"[CACHE]/cipd/fuchsia/tools/jiri/pinned-jiri-version/jiri",
"project",
"-vv",
"-time",
"-j=16",
"-json-output",
"/path/to/tmp/json"
],
"cwd": "[START_DIR]/fuchsia",
"infra_step": true,
"name": "checkout fuchsia.checkout.source-info",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@2@@@",
"@@@STEP_LOG_LINE@json.output@[]@@@",
"@@@STEP_LOG_END@json.output@@@"
]
},
{
"cmd": [
"[CACHE]/cipd/fuchsia/tools/jiri/pinned-jiri-version/jiri",
"snapshot",
"-vv",
"-time",
"-j=16",
"[CLEANUP]/jiri_snapshot.xml"
],
"cwd": "[START_DIR]/fuchsia",
"infra_step": true,
"name": "checkout fuchsia.checkout.jiri snapshot",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@2@@@"
]
},
{
"cmd": [
"vpython",
"-u",
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
"--json-output",
"/path/to/tmp/json",
"copy",
"[CLEANUP]/jiri_snapshot.xml",
"/path/to/tmp/"
],
"cwd": "[START_DIR]/fuchsia",
"infra_step": true,
"name": "checkout fuchsia.checkout.read snapshot",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@2@@@",
"@@@STEP_LOG_END@jiri_snapshot.xml@@@"
]
},
{
"cmd": [
"git",
"fetch",
"--tags",
"origin",
"releases/targetbranch"
],
"cwd": "[START_DIR]/fuchsia/integration",
"infra_step": true,
"name": "checkout fuchsia.git fetch",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [],
"name": "resolve release version",
"~followup_annotations": [
"@@@STEP_FAILURE@@@"
]
},
{
"cmd": [],
"name": "resolve release version.check rollback inputs",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@",
"@@@STEP_FAILURE@@@"
]
},
{
"cmd": [
"git",
"describe",
"--tags",
"--exact-match",
"foo"
],
"cwd": "[START_DIR]/fuchsia/integration",
"infra_step": true,
"name": "resolve release version.check rollback inputs.git describe",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@2@@@"
]
},
{
"cmd": [
"git",
"describe",
"--tags",
"--exact-match",
"origin/releases/targetbranch"
],
"cwd": "[START_DIR]/fuchsia/integration",
"infra_step": true,
"name": "resolve release version.check rollback inputs.git describe (2)",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@2@@@"
]
},
{
"cmd": [
"python",
"-u",
"import sys; sys.exit(1)"
],
"name": "resolve release version.check rollback inputs.cannot rollback to non-previous candidate version",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@2@@@",
"@@@STEP_TEXT@rollback version releases/0.20200101.0.1 is not a previous candidate version of releases/targetbranch's HEAD, releases/0.20200101.1.1.@@@",
"@@@STEP_FAILURE@@@"
]
},
{
"failure": {
"failure": {},
"humanReason": "Step('resolve release version.check rollback inputs.cannot rollback to non-previous candidate version') (retcode: 1)"
},
"name": "$result"
}
]