blob: 11e265fc09bfcf6853dd264d64d24363c72f008f [file] [log] [blame]
[
{
"cmd": [
"vpython3",
"RECIPE_REPO[depot_tools]/gerrit_client.py",
"changes",
"--host",
"https://gerrit-review.googlesource.com",
"--json_file",
"/path/to/tmp/json",
"--limit",
"1",
"-p",
"change=123",
"-o",
"ALL_REVISIONS",
"-o",
"ALL_FILES"
],
"env": {
"PATH": "<PATH>:RECIPE_REPO[depot_tools]"
},
"infra_step": true,
"luci_context": {
"realm": {
"name": "gerrit:try"
},
"resultdb": {
"current_invocation": {
"name": "invocations/build:8945511751514863184",
"update_token": "token"
},
"hostname": "rdbhost"
}
},
"name": "gerrit changes",
"~followup_annotations": [
"@@@STEP_LOG_LINE@json.output@[@@@",
"@@@STEP_LOG_LINE@json.output@ {@@@",
"@@@STEP_LOG_LINE@json.output@ \"_number\": 123, @@@",
"@@@STEP_LOG_LINE@json.output@ \"revisions\": {@@@",
"@@@STEP_LOG_LINE@json.output@ \"a1b2c3\": {@@@",
"@@@STEP_LOG_LINE@json.output@ \"_number\": 4, @@@",
"@@@STEP_LOG_LINE@json.output@ \"files\": {@@@",
"@@@STEP_LOG_LINE@json.output@ \"polygerrit-ui/app/foo.ts\": {}@@@",
"@@@STEP_LOG_LINE@json.output@ }@@@",
"@@@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": [
"vpython3",
"-u",
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
"--json-output",
"/path/to/tmp/json",
"ensure-directory",
"--mode",
"0777",
"[CLEANUP]/checkout"
],
"infra_step": true,
"luci_context": {
"realm": {
"name": "gerrit:try"
},
"resultdb": {
"current_invocation": {
"name": "invocations/build:8945511751514863184",
"update_token": "token"
},
"hostname": "rdbhost"
}
},
"name": "makedirs"
},
{
"cmd": [],
"name": "get chrome"
},
{
"cmd": [
"python3",
"-u",
"RECIPE_MODULE[depot_tools::gsutil]/resources/gsutil_smart_retry.py",
"--",
"RECIPE_REPO[depot_tools]/gsutil.py",
"----",
"cp",
"gs://chromium-browser-snapshots/Linux_x64/LAST_CHANGE",
"[CLEANUP]/chrome_tmp_1"
],
"infra_step": true,
"luci_context": {
"realm": {
"name": "gerrit:try"
},
"resultdb": {
"current_invocation": {
"name": "invocations/build:8945511751514863184",
"update_token": "token"
},
"hostname": "rdbhost"
}
},
"name": "get chrome.gsutil download",
"~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]/chrome_tmp_1/LAST_CHANGE",
"/path/to/tmp/"
],
"infra_step": true,
"luci_context": {
"realm": {
"name": "gerrit:try"
},
"resultdb": {
"current_invocation": {
"name": "invocations/build:8945511751514863184",
"update_token": "token"
},
"hostname": "rdbhost"
}
},
"name": "get chrome.read latest chrome version",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@",
"@@@STEP_LOG_END@LAST_CHANGE@@@"
]
},
{
"cmd": [
"python3",
"-u",
"RECIPE_MODULE[depot_tools::gsutil]/resources/gsutil_smart_retry.py",
"--",
"RECIPE_REPO[depot_tools]/gsutil.py",
"----",
"cp",
"gs://chromium-browser-snapshots/Linux_x64//chrome-linux.zip",
"[CLEANUP]/chrome_tmp_1"
],
"infra_step": true,
"luci_context": {
"realm": {
"name": "gerrit:try"
},
"resultdb": {
"current_invocation": {
"name": "invocations/build:8945511751514863184",
"update_token": "token"
},
"hostname": "rdbhost"
}
},
"name": "get chrome.gsutil download (2)",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"python3",
"RECIPE_MODULE[infra::zip]/resources/unzip.py"
],
"luci_context": {
"realm": {
"name": "gerrit:try"
},
"resultdb": {
"current_invocation": {
"name": "invocations/build:8945511751514863184",
"update_token": "token"
},
"hostname": "rdbhost"
}
},
"name": "get chrome.unzip chrome",
"stdin": "{\"output\": \"[CLEANUP]/chrome_tmp_1/zip\", \"quiet\": false, \"zip_file\": \"[CLEANUP]/chrome_tmp_1/chrome-linux.zip\"}",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"mv",
"[CLEANUP]/chrome_tmp_1/zip/chrome-linux/chrome",
"[CLEANUP]/chrome_tmp_1/zip/chrome-linux/google-chrome"
],
"luci_context": {
"realm": {
"name": "gerrit:try"
},
"resultdb": {
"current_invocation": {
"name": "invocations/build:8945511751514863184",
"update_token": "token"
},
"hostname": "rdbhost"
}
},
"name": "get chrome.rename to google-chrome",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"git",
"init"
],
"cwd": "[CLEANUP]/checkout",
"env": {
"PATH": "[CLEANUP]/chrome_tmp_1/zip/chrome-linux:<PATH>"
},
"luci_context": {
"realm": {
"name": "gerrit:try"
},
"resultdb": {
"current_invocation": {
"name": "invocations/build:8945511751514863184",
"update_token": "token"
},
"hostname": "rdbhost"
}
},
"name": "git init",
"timeout": 60.0
},
{
"cmd": [
"git",
"remote",
"add",
"origin",
"https://gerrit.googlesource.com/gerrit"
],
"cwd": "[CLEANUP]/checkout",
"env": {
"PATH": "[CLEANUP]/chrome_tmp_1/zip/chrome-linux:<PATH>"
},
"luci_context": {
"realm": {
"name": "gerrit:try"
},
"resultdb": {
"current_invocation": {
"name": "invocations/build:8945511751514863184",
"update_token": "token"
},
"hostname": "rdbhost"
}
},
"name": "git remote",
"timeout": 600.0
},
{
"cmd": [
"git",
"fetch",
"--tags",
"--jobs",
"4",
"origin",
"refs/changes/23/123/4",
"--recurse-submodules"
],
"cwd": "[CLEANUP]/checkout",
"env": {
"PATH": "[CLEANUP]/chrome_tmp_1/zip/chrome-linux:<PATH>"
},
"luci_context": {
"realm": {
"name": "gerrit:try"
},
"resultdb": {
"current_invocation": {
"name": "invocations/build:8945511751514863184",
"update_token": "token"
},
"hostname": "rdbhost"
}
},
"name": "git fetch",
"timeout": 1200.0
},
{
"cmd": [
"git",
"checkout",
"-f",
"FETCH_HEAD"
],
"cwd": "[CLEANUP]/checkout",
"env": {
"PATH": "[CLEANUP]/chrome_tmp_1/zip/chrome-linux:<PATH>"
},
"luci_context": {
"realm": {
"name": "gerrit:try"
},
"resultdb": {
"current_invocation": {
"name": "invocations/build:8945511751514863184",
"update_token": "token"
},
"hostname": "rdbhost"
}
},
"name": "git checkout",
"timeout": 600.0
},
{
"cmd": [
"git",
"submodule",
"sync",
"--recursive"
],
"cwd": "[CLEANUP]/checkout",
"env": {
"PATH": "[CLEANUP]/chrome_tmp_1/zip/chrome-linux:<PATH>"
},
"luci_context": {
"realm": {
"name": "gerrit:try"
},
"resultdb": {
"current_invocation": {
"name": "invocations/build:8945511751514863184",
"update_token": "token"
},
"hostname": "rdbhost"
}
},
"name": "git submodule sync",
"timeout": 600.0
},
{
"cmd": [
"git",
"submodule",
"update",
"--init",
"--recursive",
"--jobs",
"4"
],
"cwd": "[CLEANUP]/checkout",
"env": {
"PATH": "[CLEANUP]/chrome_tmp_1/zip/chrome-linux:<PATH>"
},
"luci_context": {
"realm": {
"name": "gerrit:try"
},
"resultdb": {
"current_invocation": {
"name": "invocations/build:8945511751514863184",
"update_token": "token"
},
"hostname": "rdbhost"
}
},
"name": "git submodule update",
"timeout": 600.0
},
{
"cmd": [
"cipd",
"ensure",
"-root",
"[CACHE]/nodejs",
"-ensure-file",
"infra/3pp/tools/nodejs/${platform} version:2@18.11.0",
"-max-threads",
"0",
"-json-output",
"/path/to/tmp/json"
],
"cwd": "[CLEANUP]/checkout",
"env": {
"PATH": "[CLEANUP]/chrome_tmp_1/zip/chrome-linux:<PATH>"
},
"infra_step": true,
"luci_context": {
"realm": {
"name": "gerrit:try"
},
"resultdb": {
"current_invocation": {
"name": "invocations/build:8945511751514863184",
"update_token": "token"
},
"hostname": "rdbhost"
}
},
"name": "ensure_installed",
"~followup_annotations": [
"@@@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:2@18.11.\", @@@",
"@@@STEP_LOG_LINE@json.output@ \"package\": \"infra/3pp/tools/nodejs/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": [
"npm",
"install",
"-g",
"yarn"
],
"cwd": "[CLEANUP]/checkout",
"env": {
"PATH": "[CLEANUP]/chrome_tmp_1/zip/chrome-linux:<PATH>",
"npm_config_cache": "[CACHE]/npmcache/npm",
"npm_config_prefix": "[CACHE]/npmcache/pfx"
},
"env_prefixes": {
"PATH": [
"[CACHE]/npmcache/pfx/bin",
"[CACHE]/nodejs/bin"
]
},
"luci_context": {
"realm": {
"name": "gerrit:try"
},
"resultdb": {
"current_invocation": {
"name": "invocations/build:8945511751514863184",
"update_token": "token"
},
"hostname": "rdbhost"
}
},
"name": "install yarn"
},
{
"cmd": [
"yarn",
"setup"
],
"cwd": "[CLEANUP]/checkout",
"env": {
"PATH": "[CLEANUP]/chrome_tmp_1/zip/chrome-linux:<PATH>",
"npm_config_cache": "[CACHE]/npmcache/npm",
"npm_config_prefix": "[CACHE]/npmcache/pfx"
},
"env_prefixes": {
"PATH": [
"[CACHE]/npmcache/pfx/bin",
"[CACHE]/nodejs/bin"
]
},
"luci_context": {
"realm": {
"name": "gerrit:try"
},
"resultdb": {
"current_invocation": {
"name": "invocations/build:8945511751514863184",
"update_token": "token"
},
"hostname": "rdbhost"
}
},
"name": "install deps"
},
{
"cmd": [
"yarn",
"compile"
],
"cwd": "[CLEANUP]/checkout",
"env": {
"PATH": "[CLEANUP]/chrome_tmp_1/zip/chrome-linux:<PATH>",
"npm_config_cache": "[CACHE]/npmcache/npm",
"npm_config_prefix": "[CACHE]/npmcache/pfx"
},
"env_prefixes": {
"PATH": [
"[CACHE]/npmcache/pfx/bin",
"[CACHE]/nodejs/bin"
]
},
"luci_context": {
"realm": {
"name": "gerrit:try"
},
"resultdb": {
"current_invocation": {
"name": "invocations/build:8945511751514863184",
"update_token": "token"
},
"hostname": "rdbhost"
}
},
"name": "run type checker"
},
{
"cmd": [
"yarn",
"lint"
],
"cwd": "[CLEANUP]/checkout",
"env": {
"PATH": "[CLEANUP]/chrome_tmp_1/zip/chrome-linux:<PATH>",
"npm_config_cache": "[CACHE]/npmcache/npm",
"npm_config_prefix": "[CACHE]/npmcache/pfx"
},
"env_prefixes": {
"PATH": [
"[CACHE]/npmcache/pfx/bin",
"[CACHE]/nodejs/bin"
]
},
"luci_context": {
"realm": {
"name": "gerrit:try"
},
"resultdb": {
"current_invocation": {
"name": "invocations/build:8945511751514863184",
"update_token": "token"
},
"hostname": "rdbhost"
}
},
"name": "run linter"
},
{
"cmd": [
"yarn",
"test"
],
"cwd": "[CLEANUP]/checkout",
"env": {
"PATH": "[CLEANUP]/chrome_tmp_1/zip/chrome-linux:<PATH>",
"npm_config_cache": "[CACHE]/npmcache/npm",
"npm_config_prefix": "[CACHE]/npmcache/pfx"
},
"env_prefixes": {
"PATH": [
"[CACHE]/npmcache/pfx/bin",
"[CACHE]/nodejs/bin"
]
},
"luci_context": {
"realm": {
"name": "gerrit:try"
},
"resultdb": {
"current_invocation": {
"name": "invocations/build:8945511751514863184",
"update_token": "token"
},
"hostname": "rdbhost"
}
},
"name": "run tests"
},
{
"name": "$result",
"summaryMarkdown": "All checks pass!"
}
]