blob: 1e27c3469e25be0831ee2541e7505fe6e1358552 [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",
"timeout": 600.0,
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@",
"@@@STEP_LOG_LINE@stdout@h3ll0\trefs/heads/releases/targetbranch@@@",
"@@@STEP_LOG_END@stdout@@@"
]
},
{
"cmd": [],
"name": "checkout",
"~followup_annotations": [
"@@@SET_BUILD_PROPERTY@cached_revision@0@@@",
"@@@SET_BUILD_PROPERTY@checkout_info@{\"base_manifest_revision\": \"h3ll0\", \"enable_submodules\": false, \"manifest\": \"integration\", \"manifest_remote\": \"sso://fuchsia/integration\", \"patches\": []}@@@"
]
},
{
"cmd": [
"vpython3",
"-u",
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
"--json-output",
"/path/to/tmp/json",
"ensure-directory",
"--mode",
"0777",
"[START_DIR]/fuchsia"
],
"infra_step": true,
"name": "checkout.ensure checkout dir",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [],
"name": "checkout.ensure jiri",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"vpython3",
"-u",
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
"--json-output",
"/path/to/tmp/json",
"copy",
"RECIPE_MODULE[fuchsia::jiri]/resources/tool_manifest.json",
"/path/to/tmp/json"
],
"cwd": "[START_DIR]/fuchsia",
"infra_step": true,
"name": "checkout.ensure jiri.read manifest",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@2@@@",
"@@@STEP_LOG_LINE@tool_manifest.json@{@@@",
"@@@STEP_LOG_LINE@tool_manifest.json@ \"path\": \"path/to/jiri\",@@@",
"@@@STEP_LOG_LINE@tool_manifest.json@ \"version\": \"version:pinned-version\"@@@",
"@@@STEP_LOG_LINE@tool_manifest.json@}@@@",
"@@@STEP_LOG_END@tool_manifest.json@@@"
]
},
{
"cmd": [],
"name": "checkout.ensure jiri.install path/to/jiri",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@2@@@"
]
},
{
"cmd": [
"vpython3",
"-u",
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
"--json-output",
"/path/to/tmp/json",
"ensure-directory",
"--mode",
"0777",
"[START_DIR]/cipd_tool/path/to/jiri/version%3Apinned-version"
],
"cwd": "[START_DIR]/fuchsia",
"infra_step": true,
"name": "checkout.ensure jiri.install path/to/jiri.ensure package directory",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@3@@@"
]
},
{
"cmd": [
"cipd",
"ensure",
"-root",
"[START_DIR]/cipd_tool/path/to/jiri/version%3Apinned-version",
"-ensure-file",
"path/to/jiri version:pinned-version",
"-max-threads",
"0",
"-json-output",
"/path/to/tmp/json"
],
"cwd": "[START_DIR]/fuchsia",
"infra_step": true,
"name": "checkout.ensure jiri.install path/to/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-version:pinned-v\",@@@",
"@@@STEP_LOG_LINE@json.output@ \"package\": \"path/to/jiri\"@@@",
"@@@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": [
"[START_DIR]/cipd_tool/path/to/jiri/version%3Apinned-version/jiri",
"init",
"-vv",
"-time",
"-j=8",
"-analytics-opt=false",
"-rewrite-sso-to-https=true",
"-cache",
"[CACHE]/git",
"-fetch-optional=",
"[START_DIR]/fuchsia"
],
"cwd": "[START_DIR]/fuchsia",
"infra_step": true,
"name": "checkout.jiri init",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"[START_DIR]/cipd_tool/path/to/jiri/version%3Apinned-version/jiri",
"import",
"-vv",
"-time",
"-j=8",
"-name",
"integration",
"-revision",
"h3ll0",
"integration",
"sso://fuchsia/integration"
],
"cwd": "[START_DIR]/fuchsia",
"infra_step": true,
"name": "checkout.jiri import",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"vpython3",
"-u",
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
"--json-output",
"/path/to/tmp/json",
"ensure-directory",
"--mode",
"0777",
"[CACHE]/git"
],
"cwd": "[START_DIR]/fuchsia",
"infra_step": true,
"name": "checkout.ensure git cache dir",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"vpython3",
"-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.write git cache guard file",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"[START_DIR]/cipd_tool/path/to/jiri/version%3Apinned-version/jiri",
"update",
"-vv",
"-time",
"-j=8",
"-autoupdate=false",
"-attempts=1",
"-gc=true",
"-run-hooks=false",
"-fetch-packages=false"
],
"cwd": "[START_DIR]/fuchsia",
"infra_step": true,
"name": "checkout.jiri update",
"timeout": 2700,
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"vpython3",
"-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.remove git cache guard file",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"[START_DIR]/cipd_tool/path/to/jiri/version%3Apinned-version/jiri",
"project",
"-vv",
"-time",
"-j=8",
"-json-output",
"/path/to/tmp/json"
],
"cwd": "[START_DIR]/fuchsia",
"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]/cipd_tool/path/to/jiri/version%3Apinned-version/jiri",
"snapshot",
"-vv",
"-time",
"-j=8",
"[CLEANUP]/jiri_snapshot.xml"
],
"cwd": "[START_DIR]/fuchsia",
"infra_step": true,
"name": "checkout.jiri snapshot",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"vpython3",
"-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.read snapshot",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@",
"@@@STEP_LOG_END@jiri_snapshot.xml@@@"
]
},
{
"cmd": [
"[START_DIR]/cipd_tool/path/to/jiri/version%3Apinned-version/jiri",
"check-clean",
"-vv",
"-time",
"-j=8"
],
"cwd": "[START_DIR]/fuchsia",
"name": "checkout.jiri check-clean",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"[START_DIR]/cipd_tool/path/to/jiri/version%3Apinned-version/jiri",
"project",
"-vv",
"-time",
"-j=8",
"-json-output",
"/path/to/tmp/json",
"integration"
],
"cwd": "[START_DIR]/fuchsia",
"infra_step": true,
"name": "jiri project",
"~followup_annotations": [
"@@@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\": \"integration\",@@@",
"@@@STEP_LOG_LINE@json.output@ \"path\": \"[START_DIR]/fuchsia/integration\",@@@",
"@@@STEP_LOG_LINE@json.output@ \"relativePath\": \"integration\",@@@",
"@@@STEP_LOG_LINE@json.output@ \"remote\": \"https://fuchsia.googlesource.com/integration\",@@@",
"@@@STEP_LOG_LINE@json.output@ \"revision\": \"c22471f4e3f842ae18dd9adec82ed9eb78ed1127\"@@@",
"@@@STEP_LOG_LINE@json.output@ }@@@",
"@@@STEP_LOG_LINE@json.output@]@@@",
"@@@STEP_LOG_END@json.output@@@"
]
},
{
"cmd": [],
"name": "resolve release version"
},
{
"cmd": [
"git",
"describe",
"--tags",
"--exact-match",
"h3ll0"
],
"cwd": "[START_DIR]/fuchsia/integration",
"name": "resolve release version.map ref to release version",
"timeout": 60.0,
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"git",
"ls-remote",
"--tags",
"https://fuchsia.googlesource.com/integration",
"releases/0.20200101.0.2"
],
"name": "resolve release version.get remote tag",
"timeout": 600.0,
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [],
"name": "get project info"
},
{
"cmd": [
"[START_DIR]/cipd_tool/path/to/jiri/version%3Apinned-version/jiri",
"project",
"-vv",
"-time",
"-j=8",
"-json-output",
"/path/to/tmp/json",
"-list-remote-projects",
"test-project"
],
"cwd": "[START_DIR]/fuchsia/integration",
"name": "get project info.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@ \"manifest\": \"test-project/manifest\",@@@",
"@@@STEP_LOG_LINE@json.output@ \"name\": \"test-project\",@@@",
"@@@STEP_LOG_LINE@json.output@ \"path\": \"[START_DIR]/fuchsia/integration/test-project\",@@@",
"@@@STEP_LOG_LINE@json.output@ \"relativePath\": \"test-project\",@@@",
"@@@STEP_LOG_LINE@json.output@ \"remote\": \"https://fuchsia.googlesource.com/test-project\",@@@",
"@@@STEP_LOG_LINE@json.output@ \"revision\": \"c22471f4e3f842ae18dd9adec82ed9eb78ed1127\"@@@",
"@@@STEP_LOG_LINE@json.output@ }@@@",
"@@@STEP_LOG_LINE@json.output@]@@@",
"@@@STEP_LOG_END@json.output@@@"
]
},
{
"cmd": [
"[START_DIR]/cipd_tool/path/to/jiri/version%3Apinned-version/jiri",
"manifest",
"-vv",
"-time",
"-j=8",
"-element",
"test-project",
"-template",
"{\n \"gerrithost\": \"{{.GerritHost}}\",\n \"githooks\": \"{{.GitHooks}}\",\n \"historydepth\": \"{{.HistoryDepth}}\",\n \"name\": \"{{.Name}}\",\n \"path\": \"{{.Path}}\",\n \"remote\": \"{{.Remote}}\",\n \"remotebranch\": \"{{.RemoteBranch}}\",\n \"revision\": \"{{.Revision}}\"\n}",
"test-project/manifest"
],
"cwd": "[START_DIR]/fuchsia/integration",
"name": "get project info.read manifest for test-project",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@",
"@@@STEP_LOG_LINE@json.output@{@@@",
"@@@STEP_LOG_LINE@json.output@ \"gerrithost\": \"https://fuchsia-review.googlesource.com\",@@@",
"@@@STEP_LOG_LINE@json.output@ \"manifest\": \"fuchsia/manifest\",@@@",
"@@@STEP_LOG_LINE@json.output@ \"path\": \"test-project\"@@@",
"@@@STEP_LOG_LINE@json.output@}@@@",
"@@@STEP_LOG_END@json.output@@@"
]
},
{
"cmd": [],
"name": "get project info.ensure gerrit",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"vpython3",
"-u",
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
"--json-output",
"/path/to/tmp/json",
"copy",
"RECIPE_MODULE[fuchsia::gerrit]/resources/tool_manifest.json",
"/path/to/tmp/json"
],
"cwd": "[START_DIR]/fuchsia/integration",
"infra_step": true,
"name": "get project info.ensure gerrit.read manifest",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@2@@@",
"@@@STEP_LOG_LINE@tool_manifest.json@{@@@",
"@@@STEP_LOG_LINE@tool_manifest.json@ \"path\": \"path/to/gerrit\",@@@",
"@@@STEP_LOG_LINE@tool_manifest.json@ \"version\": \"version:pinned-version\"@@@",
"@@@STEP_LOG_LINE@tool_manifest.json@}@@@",
"@@@STEP_LOG_END@tool_manifest.json@@@"
]
},
{
"cmd": [],
"name": "get project info.ensure gerrit.install path/to/gerrit",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@2@@@"
]
},
{
"cmd": [
"vpython3",
"-u",
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
"--json-output",
"/path/to/tmp/json",
"ensure-directory",
"--mode",
"0777",
"[START_DIR]/cipd_tool/path/to/gerrit/version%3Apinned-version"
],
"cwd": "[START_DIR]/fuchsia/integration",
"infra_step": true,
"name": "get project info.ensure gerrit.install path/to/gerrit.ensure package directory",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@3@@@"
]
},
{
"cmd": [
"cipd",
"ensure",
"-root",
"[START_DIR]/cipd_tool/path/to/gerrit/version%3Apinned-version",
"-ensure-file",
"path/to/gerrit version:pinned-version",
"-max-threads",
"0",
"-json-output",
"/path/to/tmp/json"
],
"cwd": "[START_DIR]/fuchsia/integration",
"infra_step": true,
"name": "get project info.ensure gerrit.install path/to/gerrit.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-version:pinned-v\",@@@",
"@@@STEP_LOG_LINE@json.output@ \"package\": \"path/to/gerrit\"@@@",
"@@@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": [
"[START_DIR]/cipd_tool/path/to/gerrit/version%3Apinned-version/gerrit",
"change-detail",
"-host",
"https://fuchsia-review.googlesource.com",
"-input",
"{\"change_id\": \"Ia123b\", \"params\": {\"o\": [\"CURRENT_REVISION\"]}}",
"-output",
"/path/to/tmp/json"
],
"cwd": "[START_DIR]/fuchsia/integration",
"infra_step": true,
"name": "get project info.get change details",
"timeout": 600,
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@",
"@@@STEP_LOG_LINE@json.output@{@@@",
"@@@STEP_LOG_LINE@json.output@ \"current_revision\": \"foo\"@@@",
"@@@STEP_LOG_LINE@json.output@}@@@",
"@@@STEP_LOG_END@json.output@@@",
"@@@STEP_LOG_LINE@json.input@{@@@",
"@@@STEP_LOG_LINE@json.input@ \"change_id\": \"Ia123b\",@@@",
"@@@STEP_LOG_LINE@json.input@ \"params\": {@@@",
"@@@STEP_LOG_LINE@json.input@ \"o\": [@@@",
"@@@STEP_LOG_LINE@json.input@ \"CURRENT_REVISION\"@@@",
"@@@STEP_LOG_LINE@json.input@ ]@@@",
"@@@STEP_LOG_LINE@json.input@ }@@@",
"@@@STEP_LOG_LINE@json.input@}@@@",
"@@@STEP_LOG_END@json.input@@@",
"@@@STEP_LINK@gerrit link@https://fuchsia-review.googlesource.com/q/Ia123b@@@"
]
},
{
"cmd": [],
"name": "apply 1 cherry-pick",
"~followup_annotations": [
"@@@STEP_FAILURE@@@"
]
},
{
"cmd": [],
"name": "apply 1 cherry-pick.Ia123b",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@",
"@@@STEP_FAILURE@@@"
]
},
{
"cmd": [
"git",
"rev-parse",
"HEAD"
],
"cwd": "[START_DIR]/fuchsia/integration/test-project",
"name": "apply 1 cherry-pick.Ia123b.git rev-parse",
"timeout": 60.0,
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@2@@@"
]
},
{
"cmd": [
"git",
"fetch",
"--jobs",
"4",
"origin",
"foo"
],
"cwd": "[START_DIR]/fuchsia/integration/test-project",
"name": "apply 1 cherry-pick.Ia123b.git fetch",
"timeout": 1200.0,
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@2@@@"
]
},
{
"cmd": [
"git",
"cherry-pick",
"foo"
],
"cwd": "[START_DIR]/fuchsia/integration/test-project",
"name": "apply 1 cherry-pick.Ia123b.git cherry-pick",
"timeout": 60.0,
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@2@@@",
"@@@STEP_FAILURE@@@"
]
},
{
"failure": {
"failure": {},
"humanReason": "cannot cleanly cherry-pick https://fuchsia-review.googlesource.com/c/test-project/+/Ia123b revision foo onto base revision deadbeef on branch releases/targetbranch"
},
"name": "$result"
}
]