| [ | |
| { | |
| "cmd": [ | |
| "vpython3", | |
| "-u", | |
| "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", | |
| "--json-output", | |
| "/path/to/tmp/json", | |
| "ensure-directory", | |
| "--mode", | |
| "0o777", | |
| "[CACHE]/builder" | |
| ], | |
| "infra_step": true, | |
| "name": "ensure builder dir" | |
| }, | |
| { | |
| "cmd": [ | |
| "vpython3", | |
| "-u", | |
| "RECIPE_MODULE[depot_tools::bot_update]/resources/bot_update.py", | |
| "--spec-path", | |
| "cache_dir = '[CACHE]/git'\nsolutions = [{'deps_file': '.DEPS.git', 'managed': True, 'name': '.', 'url': 'https://chromium.googlesource.com/infra/infra_superproject.git'}]", | |
| "--revision_mapping_file", | |
| "{\"got_revision\": \"infra\", \"got_revision_superproject\": \".\"}", | |
| "--git-cache-dir", | |
| "[CACHE]/git", | |
| "--cleanup-dir", | |
| "[CLEANUP]/bot_update", | |
| "--output_json", | |
| "/path/to/tmp/json", | |
| "--revision", | |
| ".@HEAD" | |
| ], | |
| "cwd": "[CACHE]/builder", | |
| "env": { | |
| "DEPOT_TOOLS_COLLECT_METRICS": "0", | |
| "GIT_BACKENDINFO": "1", | |
| "GIT_DAPPER_TRACE": "1", | |
| "GIT_HTTP_LOW_SPEED_LIMIT": "102400", | |
| "GIT_HTTP_LOW_SPEED_TIME": "1800", | |
| "GIT_SSH_COMMAND": "ssh -o SendEnv=GIT_DAPPER_TRACE -o SendEnv=GIT_BACKENDINFO", | |
| "GIT_TRACE2_EVENT": "[CLEANUP]/trace2-event", | |
| "GIT_TRACE_CURL": "[CLEANUP]/trace-curl", | |
| "GIT_TRACE_CURL_NO_DATA": "1", | |
| "GIT_TRACE_PACKET": "[CLEANUP]/trace-packet" | |
| }, | |
| "env_suffixes": { | |
| "DEPOT_TOOLS_UPDATE": [ | |
| "0" | |
| ], | |
| "PATH": [ | |
| "RECIPE_REPO[depot_tools]" | |
| ] | |
| }, | |
| "infra_step": true, | |
| "name": "bot_update", | |
| "~followup_annotations": [ | |
| "@@@STEP_TEXT@Some step text@@@", | |
| "@@@STEP_LOG_LINE@json.output@{@@@", | |
| "@@@STEP_LOG_LINE@json.output@ \"did_run\": true,@@@", | |
| "@@@STEP_LOG_LINE@json.output@ \"fixed_revisions\": {@@@", | |
| "@@@STEP_LOG_LINE@json.output@ \".\": \"HEAD\"@@@", | |
| "@@@STEP_LOG_LINE@json.output@ },@@@", | |
| "@@@STEP_LOG_LINE@json.output@ \"manifest\": {@@@", | |
| "@@@STEP_LOG_LINE@json.output@ \".\": {@@@", | |
| "@@@STEP_LOG_LINE@json.output@ \"repository\": \"https://fake.org/..git\",@@@", | |
| "@@@STEP_LOG_LINE@json.output@ \"revision\": \"3a52ce780950d4d969792a2559cd519d7ee8c727\"@@@", | |
| "@@@STEP_LOG_LINE@json.output@ },@@@", | |
| "@@@STEP_LOG_LINE@json.output@ \"infra\": {@@@", | |
| "@@@STEP_LOG_LINE@json.output@ \"repository\": \"https://fake.org/infra.git\",@@@", | |
| "@@@STEP_LOG_LINE@json.output@ \"revision\": \"5e03a58dc0850e5137a8ebbce29610670c756aed\"@@@", | |
| "@@@STEP_LOG_LINE@json.output@ }@@@", | |
| "@@@STEP_LOG_LINE@json.output@ },@@@", | |
| "@@@STEP_LOG_LINE@json.output@ \"patch_root\": null,@@@", | |
| "@@@STEP_LOG_LINE@json.output@ \"properties\": {@@@", | |
| "@@@STEP_LOG_LINE@json.output@ \"got_revision\": \"5e03a58dc0850e5137a8ebbce29610670c756aed\",@@@", | |
| "@@@STEP_LOG_LINE@json.output@ \"got_revision_cp\": \"refs/heads/main@{#197293}\",@@@", | |
| "@@@STEP_LOG_LINE@json.output@ \"got_revision_superproject\": \"3a52ce780950d4d969792a2559cd519d7ee8c727\",@@@", | |
| "@@@STEP_LOG_LINE@json.output@ \"got_revision_superproject_cp\": \"refs/heads/main@{#205336}\"@@@", | |
| "@@@STEP_LOG_LINE@json.output@ },@@@", | |
| "@@@STEP_LOG_LINE@json.output@ \"root\": \".\",@@@", | |
| "@@@STEP_LOG_LINE@json.output@ \"source_manifest\": {@@@", | |
| "@@@STEP_LOG_LINE@json.output@ \"directories\": {@@@", | |
| "@@@STEP_LOG_LINE@json.output@ \".\": {@@@", | |
| "@@@STEP_LOG_LINE@json.output@ \"git_checkout\": {@@@", | |
| "@@@STEP_LOG_LINE@json.output@ \"repo_url\": \"https://fake.org/..git\",@@@", | |
| "@@@STEP_LOG_LINE@json.output@ \"revision\": \"3a52ce780950d4d969792a2559cd519d7ee8c727\"@@@", | |
| "@@@STEP_LOG_LINE@json.output@ }@@@", | |
| "@@@STEP_LOG_LINE@json.output@ },@@@", | |
| "@@@STEP_LOG_LINE@json.output@ \"infra\": {@@@", | |
| "@@@STEP_LOG_LINE@json.output@ \"git_checkout\": {@@@", | |
| "@@@STEP_LOG_LINE@json.output@ \"repo_url\": \"https://fake.org/infra.git\",@@@", | |
| "@@@STEP_LOG_LINE@json.output@ \"revision\": \"5e03a58dc0850e5137a8ebbce29610670c756aed\"@@@", | |
| "@@@STEP_LOG_LINE@json.output@ }@@@", | |
| "@@@STEP_LOG_LINE@json.output@ }@@@", | |
| "@@@STEP_LOG_LINE@json.output@ },@@@", | |
| "@@@STEP_LOG_LINE@json.output@ \"version\": 0@@@", | |
| "@@@STEP_LOG_LINE@json.output@ },@@@", | |
| "@@@STEP_LOG_LINE@json.output@ \"step_text\": \"Some step text\"@@@", | |
| "@@@STEP_LOG_LINE@json.output@}@@@", | |
| "@@@STEP_LOG_END@json.output@@@", | |
| "@@@SET_BUILD_PROPERTY@got_revision@\"5e03a58dc0850e5137a8ebbce29610670c756aed\"@@@", | |
| "@@@SET_BUILD_PROPERTY@got_revision_cp@\"refs/heads/main@{#197293}\"@@@", | |
| "@@@SET_BUILD_PROPERTY@got_revision_superproject@\"3a52ce780950d4d969792a2559cd519d7ee8c727\"@@@", | |
| "@@@SET_BUILD_PROPERTY@got_revision_superproject_cp@\"refs/heads/main@{#205336}\"@@@" | |
| ] | |
| }, | |
| { | |
| "cmd": [ | |
| "vpython3", | |
| "-u", | |
| "RECIPE_REPO[depot_tools]/gclient.py", | |
| "runhooks" | |
| ], | |
| "cwd": "[CACHE]/builder", | |
| "env": { | |
| "GOFLAGS": "-mod=readonly", | |
| "INFRA_GO_SKIP_TOOLS_INSTALL": "1", | |
| "INFRA_GO_VERSION_VARIANT": "bleeding_edge" | |
| }, | |
| "env_suffixes": { | |
| "PATH": [ | |
| "RECIPE_REPO[depot_tools]" | |
| ] | |
| }, | |
| "name": "gclient runhooks" | |
| }, | |
| { | |
| "cmd": [ | |
| "vpython3", | |
| "-u", | |
| "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", | |
| "--json-output", | |
| "/path/to/tmp/json", | |
| "glob", | |
| "[CACHE]/builder/infra/build/images/deterministic", | |
| "**/*.yaml" | |
| ], | |
| "infra_step": true, | |
| "name": "list infra/build/images/deterministic", | |
| "~followup_annotations": [ | |
| "@@@STEP_LOG_LINE@glob@[CACHE]/builder/infra/build/images/deterministic/target.yaml@@@", | |
| "@@@STEP_LOG_END@glob@@@" | |
| ] | |
| }, | |
| { | |
| "cmd": [ | |
| "python3", | |
| "[CACHE]/builder/infra/go/bootstrap.py", | |
| "/path/to/tmp/json" | |
| ], | |
| "cwd": "[CACHE]/builder", | |
| "env": { | |
| "GOFLAGS": "-mod=readonly", | |
| "INFRA_GO_SKIP_TOOLS_INSTALL": "1", | |
| "INFRA_GO_VERSION_VARIANT": "bleeding_edge" | |
| }, | |
| "infra_step": true, | |
| "name": "init infra go env", | |
| "~followup_annotations": [ | |
| "@@@STEP_TEXT@Using go 1.66.6@@@", | |
| "@@@STEP_LOG_LINE@json.output@{@@@", | |
| "@@@STEP_LOG_LINE@json.output@ \"env\": {@@@", | |
| "@@@STEP_LOG_LINE@json.output@ \"GOROOT\": \"[CACHE]/builder/golang/go\"@@@", | |
| "@@@STEP_LOG_LINE@json.output@ },@@@", | |
| "@@@STEP_LOG_LINE@json.output@ \"env_prefixes\": {@@@", | |
| "@@@STEP_LOG_LINE@json.output@ \"PATH\": [@@@", | |
| "@@@STEP_LOG_LINE@json.output@ \"[CACHE]/builder/golang/go\"@@@", | |
| "@@@STEP_LOG_LINE@json.output@ ]@@@", | |
| "@@@STEP_LOG_LINE@json.output@ },@@@", | |
| "@@@STEP_LOG_LINE@json.output@ \"env_suffixes\": {@@@", | |
| "@@@STEP_LOG_LINE@json.output@ \"PATH\": [@@@", | |
| "@@@STEP_LOG_LINE@json.output@ \"[CACHE]/builder/infra/go/bin\"@@@", | |
| "@@@STEP_LOG_LINE@json.output@ ]@@@", | |
| "@@@STEP_LOG_LINE@json.output@ },@@@", | |
| "@@@STEP_LOG_LINE@json.output@ \"go_version\": \"1.66.6\"@@@", | |
| "@@@STEP_LOG_LINE@json.output@}@@@", | |
| "@@@STEP_LOG_END@json.output@@@" | |
| ] | |
| }, | |
| { | |
| "cmd": [ | |
| "cloudbuildhelper", | |
| "version" | |
| ], | |
| "cwd": "[CACHE]/builder/infra/go/src/infra", | |
| "env": { | |
| "GOFLAGS": "-mod=readonly", | |
| "GOROOT": "[CACHE]/builder/golang/go", | |
| "INFRA_GO_SKIP_TOOLS_INSTALL": "1", | |
| "INFRA_GO_VERSION_VARIANT": "bleeding_edge" | |
| }, | |
| "env_prefixes": { | |
| "PATH": [ | |
| "[CACHE]/builder/golang/go" | |
| ] | |
| }, | |
| "env_suffixes": { | |
| "PATH": [ | |
| "[CACHE]/builder/infra/go/bin" | |
| ] | |
| }, | |
| "name": "cloudbuildhelper version", | |
| "~followup_annotations": [ | |
| "@@@STEP_TEXT@<br/>cloudbuildhelper v6.6.6<br/><br/>CIPD package name: infra/tools/cloudbuildhelper/...<br/>CIPD instance ID: lTJD7x...@@@" | |
| ] | |
| }, | |
| { | |
| "cmd": [ | |
| "cloudbuildhelper", | |
| "build", | |
| "[CACHE]/builder/infra/build/images/deterministic/target.yaml", | |
| "-canonical-tag", | |
| "ci-2012.05.14-197293-5e03a58", | |
| "-build-id", | |
| "https://cr-buildbucket.appspot.com/build/0", | |
| "-infra", | |
| "prod", | |
| "-label", | |
| "org.opencontainers.image.revision=5e03a58dc0850e5137a8ebbce29610670c756aed", | |
| "-label", | |
| "org.opencontainers.image.source=https://chromium.googlesource.com/infra/infra", | |
| "-tag", | |
| "latest", | |
| "-json-output", | |
| "/path/to/tmp/json" | |
| ], | |
| "cost": { | |
| "cpu": 2000, | |
| "disk": 0, | |
| "memory": 50, | |
| "net": 0 | |
| }, | |
| "cwd": "[CACHE]/builder/infra/go/src/infra", | |
| "env": { | |
| "GOFLAGS": "-mod=readonly", | |
| "GOROOT": "[CACHE]/builder/golang/go", | |
| "INFRA_GO_SKIP_TOOLS_INSTALL": "1", | |
| "INFRA_GO_VERSION_VARIANT": "bleeding_edge" | |
| }, | |
| "env_prefixes": { | |
| "PATH": [ | |
| "[CACHE]/builder/golang/go" | |
| ] | |
| }, | |
| "env_suffixes": { | |
| "PATH": [ | |
| "[CACHE]/builder/infra/go/bin" | |
| ] | |
| }, | |
| "name": "cloudbuildhelper build target", | |
| "~followup_annotations": [ | |
| "@@@STEP_TEXT@<br/>Image: example.com/fake-registry/target:ci-2012.05.14-197293-5e03a58<br/>Digest: sha256:abcdef<br/>Tag: ci-2012.05.14-197293-5e03a58<br/>Tag: latest@@@", | |
| "@@@STEP_LOG_LINE@json.output@{@@@", | |
| "@@@STEP_LOG_LINE@json.output@ \"context_dir\": \"/some/context/directory/for/target\",@@@", | |
| "@@@STEP_LOG_LINE@json.output@ \"image\": {@@@", | |
| "@@@STEP_LOG_LINE@json.output@ \"digest\": \"sha256:abcdef\",@@@", | |
| "@@@STEP_LOG_LINE@json.output@ \"image\": \"example.com/fake-registry/target\",@@@", | |
| "@@@STEP_LOG_LINE@json.output@ \"tag\": \"ci-2012.05.14-197293-5e03a58\"@@@", | |
| "@@@STEP_LOG_LINE@json.output@ },@@@", | |
| "@@@STEP_LOG_LINE@json.output@ \"notify\": [@@@", | |
| "@@@STEP_LOG_LINE@json.output@ {@@@", | |
| "@@@STEP_LOG_LINE@json.output@ \"kind\": \"git\",@@@", | |
| "@@@STEP_LOG_LINE@json.output@ \"repo\": \"https://roll.example.com/repo\",@@@", | |
| "@@@STEP_LOG_LINE@json.output@ \"script\": \"scripts/roll.py\"@@@", | |
| "@@@STEP_LOG_LINE@json.output@ }@@@", | |
| "@@@STEP_LOG_LINE@json.output@ ],@@@", | |
| "@@@STEP_LOG_LINE@json.output@ \"sources\": [@@@", | |
| "@@@STEP_LOG_LINE@json.output@ \"[CACHE]/infra_gclient_with_go/infra/a/b/c\"@@@", | |
| "@@@STEP_LOG_LINE@json.output@ ],@@@", | |
| "@@@STEP_LOG_LINE@json.output@ \"view_build_url\": \"https://example.com/build/target\",@@@", | |
| "@@@STEP_LOG_LINE@json.output@ \"view_image_url\": \"https://example.com/image/target\"@@@", | |
| "@@@STEP_LOG_LINE@json.output@}@@@", | |
| "@@@STEP_LOG_END@json.output@@@", | |
| "@@@STEP_LINK@image@https://example.com/image/target@@@", | |
| "@@@STEP_LINK@build@https://example.com/build/target@@@" | |
| ] | |
| }, | |
| { | |
| "cmd": [], | |
| "name": "upload roll CL", | |
| "~followup_annotations": [ | |
| "@@@STEP_FAILURE@@@" | |
| ] | |
| }, | |
| { | |
| "cmd": [ | |
| "python3", | |
| "-u", | |
| "RECIPE_MODULE[depot_tools::git]/resources/git_setup.py", | |
| "--path", | |
| "[CACHE]/builder/roll/0941bf89", | |
| "--url", | |
| "https://roll.example.com/repo" | |
| ], | |
| "name": "upload roll CL.git setup", | |
| "~followup_annotations": [ | |
| "@@@STEP_NEST_LEVEL@1@@@" | |
| ] | |
| }, | |
| { | |
| "cmd": [ | |
| "git", | |
| "fetch", | |
| "origin", | |
| "main", | |
| "--progress" | |
| ], | |
| "cwd": "[CACHE]/builder/roll/0941bf89", | |
| "env": { | |
| "PATH": "RECIPE_REPO[depot_tools]:<PATH>" | |
| }, | |
| "infra_step": true, | |
| "name": "upload roll CL.git fetch", | |
| "~followup_annotations": [ | |
| "@@@STEP_NEST_LEVEL@1@@@" | |
| ] | |
| }, | |
| { | |
| "cmd": [ | |
| "git", | |
| "checkout", | |
| "-f", | |
| "FETCH_HEAD" | |
| ], | |
| "cwd": "[CACHE]/builder/roll/0941bf89", | |
| "infra_step": true, | |
| "name": "upload roll CL.git checkout", | |
| "~followup_annotations": [ | |
| "@@@STEP_NEST_LEVEL@1@@@" | |
| ] | |
| }, | |
| { | |
| "cmd": [ | |
| "git", | |
| "rev-parse", | |
| "HEAD" | |
| ], | |
| "cwd": "[CACHE]/builder/roll/0941bf89", | |
| "infra_step": true, | |
| "name": "upload roll CL.read revision", | |
| "~followup_annotations": [ | |
| "@@@STEP_NEST_LEVEL@1@@@", | |
| "@@@STEP_TEXT@<br/>checked out 'deadbeef'<br/>@@@" | |
| ] | |
| }, | |
| { | |
| "cmd": [ | |
| "git", | |
| "clean", | |
| "-f", | |
| "-d", | |
| "-x" | |
| ], | |
| "cwd": "[CACHE]/builder/roll/0941bf89", | |
| "infra_step": true, | |
| "name": "upload roll CL.git clean", | |
| "~followup_annotations": [ | |
| "@@@STEP_NEST_LEVEL@1@@@" | |
| ] | |
| }, | |
| { | |
| "cmd": [ | |
| "git", | |
| "branch", | |
| "-D", | |
| "roll-attempt" | |
| ], | |
| "cwd": "[CACHE]/builder/roll/0941bf89", | |
| "infra_step": true, | |
| "name": "upload roll CL.git branch", | |
| "~followup_annotations": [ | |
| "@@@STEP_NEST_LEVEL@1@@@" | |
| ] | |
| }, | |
| { | |
| "cmd": [ | |
| "git", | |
| "checkout", | |
| "-t", | |
| "origin/main", | |
| "-b", | |
| "roll-attempt" | |
| ], | |
| "cwd": "[CACHE]/builder/roll/0941bf89", | |
| "infra_step": true, | |
| "name": "upload roll CL.git checkout (2)", | |
| "~followup_annotations": [ | |
| "@@@STEP_NEST_LEVEL@1@@@" | |
| ] | |
| }, | |
| { | |
| "cmd": [ | |
| "[CACHE]/builder/roll/0941bf89/scripts/roll.py" | |
| ], | |
| "cwd": "[CACHE]/builder/roll/0941bf89", | |
| "name": "upload roll CL.scripts/roll.py", | |
| "stdin": "{\"tags\": [{\"image\": \"example.com/fake-registry/target\", \"tag\": {\"context_dir\": \"/some/context/directory/for/target\", \"digest\": \"sha256:abcdef\", \"metadata\": {\"date\": \"2012-05-14T12:53:24.500000Z\", \"links\": {\"buildbucket\": \"https://cr-buildbucket.appspot.com/build/0\", \"cloudbuild\": \"https://example.com/build/target\", \"gcr\": \"https://example.com/image/target\"}, \"source\": {\"repo\": \"https://chromium.googlesource.com/infra/infra\", \"revision\": \"5e03a58dc0850e5137a8ebbce29610670c756aed\"}, \"sources\": []}, \"tag\": \"ci-2012.05.14-197293-5e03a58\"}}]}", | |
| "~followup_annotations": [ | |
| "@@@STEP_NEST_LEVEL@1@@@", | |
| "@@@STEP_LOG_LINE@json.output@{@@@", | |
| "@@@STEP_LOG_LINE@json.output@ \"deployments\": [@@@", | |
| "@@@STEP_LOG_LINE@json.output@ {@@@", | |
| "@@@STEP_LOG_LINE@json.output@ \"cc\": [@@@", | |
| "@@@STEP_LOG_LINE@json.output@ \"n1@example.com\",@@@", | |
| "@@@STEP_LOG_LINE@json.output@ \"n2@example.com\"@@@", | |
| "@@@STEP_LOG_LINE@json.output@ ],@@@", | |
| "@@@STEP_LOG_LINE@json.output@ \"from\": \"prev-version\",@@@", | |
| "@@@STEP_LOG_LINE@json.output@ \"image\": \"example.com/fake-registry/target\",@@@", | |
| "@@@STEP_LOG_LINE@json.output@ \"to\": \"ci-2012.05.14-197293-5e03a58\"@@@", | |
| "@@@STEP_LOG_LINE@json.output@ }@@@", | |
| "@@@STEP_LOG_LINE@json.output@ ]@@@", | |
| "@@@STEP_LOG_LINE@json.output@}@@@", | |
| "@@@STEP_LOG_END@json.output@@@", | |
| "@@@STEP_FAILURE@@@" | |
| ] | |
| }, | |
| { | |
| "failure": { | |
| "failure": {}, | |
| "humanReason": "Failed to roll: https://roll.example.com/repo" | |
| }, | |
| "name": "$result" | |
| } | |
| ] |