| [ | |
| { | |
| "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 = [{'custom_vars': {'checkout_internal': True}, 'deps_file': '.DEPS.git', 'managed': True, 'name': '.', 'url': 'https://chromium.googlesource.com/infra/infra_superproject.git'}]", | |
| "--revision_mapping_file", | |
| "{\"got_revision\": \"infra_internal\", \"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_internal\": {@@@", | |
| "@@@STEP_LOG_LINE@json.output@ \"repository\": \"https://fake.org/infra_internal.git\",@@@", | |
| "@@@STEP_LOG_LINE@json.output@ \"revision\": \"0a18b32e3a93913e1090d1ee6b8965c6dc3116d6\"@@@", | |
| "@@@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\": \"0a18b32e3a93913e1090d1ee6b8965c6dc3116d6\",@@@", | |
| "@@@STEP_LOG_LINE@json.output@ \"got_revision_cp\": \"refs/heads/main@{#190894}\",@@@", | |
| "@@@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_internal\": {@@@", | |
| "@@@STEP_LOG_LINE@json.output@ \"git_checkout\": {@@@", | |
| "@@@STEP_LOG_LINE@json.output@ \"repo_url\": \"https://fake.org/infra_internal.git\",@@@", | |
| "@@@STEP_LOG_LINE@json.output@ \"revision\": \"0a18b32e3a93913e1090d1ee6b8965c6dc3116d6\"@@@", | |
| "@@@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@\"0a18b32e3a93913e1090d1ee6b8965c6dc3116d6\"@@@", | |
| "@@@SET_BUILD_PROPERTY@got_revision_cp@\"refs/heads/main@{#190894}\"@@@", | |
| "@@@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_internal/build/images/deterministic", | |
| "**/*.yaml" | |
| ], | |
| "infra_step": true, | |
| "name": "list infra_internal/build/images/deterministic", | |
| "~followup_annotations": [ | |
| "@@@STEP_LOG_LINE@glob@[CACHE]/builder/infra_internal/build/images/deterministic/target.yaml@@@", | |
| "@@@STEP_LOG_END@glob@@@" | |
| ] | |
| }, | |
| { | |
| "cmd": [ | |
| "python3", | |
| "[CACHE]/builder/infra_internal/go/bootstrap_internal.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_internal/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_internal/go/src/infra_internal", | |
| "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_internal/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_internal/build/images/deterministic/target.yaml", | |
| "-canonical-tag", | |
| "ci-2012.05.14-190894-0a18b32", | |
| "-build-id", | |
| "https://cr-buildbucket.appspot.com/build/0", | |
| "-infra", | |
| "prod", | |
| "-label", | |
| "org.opencontainers.image.revision=0a18b32e3a93913e1090d1ee6b8965c6dc3116d6", | |
| "-label", | |
| "org.opencontainers.image.source=https://chrome-internal.googlesource.com/infra/infra_internal", | |
| "-tag", | |
| "latest", | |
| "-json-output", | |
| "/path/to/tmp/json" | |
| ], | |
| "cost": { | |
| "cpu": 2000, | |
| "disk": 0, | |
| "memory": 50, | |
| "net": 0 | |
| }, | |
| "cwd": "[CACHE]/builder/infra_internal/go/src/infra_internal", | |
| "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_internal/go/bin" | |
| ] | |
| }, | |
| "name": "cloudbuildhelper build target", | |
| "~followup_annotations": [ | |
| "@@@STEP_TEXT@<br/>Image: example.com/fake-registry/target:ci-2012.05.14-190894-0a18b32<br/>Digest: sha256:34a04005bcaf206e...<br/>Tag: ci-2012.05.14-190894-0a18b32<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:34a04005bcaf206e...\",@@@", | |
| "@@@STEP_LOG_LINE@json.output@ \"image\": \"example.com/fake-registry/target\",@@@", | |
| "@@@STEP_LOG_LINE@json.output@ \"tag\": \"ci-2012.05.14-190894-0a18b32\"@@@", | |
| "@@@STEP_LOG_LINE@json.output@ },@@@", | |
| "@@@STEP_LOG_LINE@json.output@ \"sources\": [],@@@", | |
| "@@@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@@@" | |
| ] | |
| }, | |
| { | |
| "name": "$result" | |
| } | |
| ] |