| [ |
| { |
| "cmd": [ |
| "cipd", |
| "ensure", |
| "-root", |
| "[START_DIR]/cipd", |
| "-ensure-file", |
| "infra/tools/protoc/linux-amd64 protobuf_version:v3.8.0", |
| "-max-threads", |
| "0", |
| "-json-output", |
| "/path/to/tmp/json" |
| ], |
| "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-protobuf_version\", @@@", |
| "@@@STEP_LOG_LINE@json.output@ \"package\": \"infra/tools/protoc/linux-amd64\"@@@", |
| "@@@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": [ |
| "vpython", |
| "-u", |
| "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", |
| "--json-output", |
| "/path/to/tmp/json", |
| "ensure-directory", |
| "--mode", |
| "0777", |
| "[START_DIR]/go/src/go.chromium.org/goma/server" |
| ], |
| "infra_step": true, |
| "name": "makedirs" |
| }, |
| { |
| "cmd": [ |
| "git", |
| "init" |
| ], |
| "cwd": "[START_DIR]/go/src/go.chromium.org/goma/server", |
| "name": "git init" |
| }, |
| { |
| "cmd": [ |
| "git", |
| "remote", |
| "add", |
| "origin", |
| "https://chromium.googlesource.com/infra/goma/server" |
| ], |
| "cwd": "[START_DIR]/go/src/go.chromium.org/goma/server", |
| "name": "git remote" |
| }, |
| { |
| "cmd": [], |
| "name": "cache" |
| }, |
| { |
| "cmd": [ |
| "vpython", |
| "-u", |
| "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", |
| "--json-output", |
| "/path/to/tmp/json", |
| "ensure-directory", |
| "--mode", |
| "0777", |
| "[CACHE]/git/chromium.googlesource.com-infra-goma-server" |
| ], |
| "cwd": "[START_DIR]/go/src/go.chromium.org/goma/server", |
| "infra_step": true, |
| "name": "cache.makedirs", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "git", |
| "init", |
| "--bare" |
| ], |
| "cwd": "[CACHE]/git/chromium.googlesource.com-infra-goma-server", |
| "name": "cache.git init", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "git", |
| "config", |
| "remote.origin.url", |
| "https://chromium.googlesource.com/infra/goma/server" |
| ], |
| "cwd": "[CACHE]/git/chromium.googlesource.com-infra-goma-server", |
| "name": "cache.remote set-url", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "git", |
| "config", |
| "--replace-all", |
| "remote.origin.fetch", |
| "+refs/heads/*:refs/heads/*", |
| "\\+refs/heads/\\*:.*" |
| ], |
| "cwd": "[CACHE]/git/chromium.googlesource.com-infra-goma-server", |
| "name": "cache.git config", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "git", |
| "fetch", |
| "--prune", |
| "--tags", |
| "origin" |
| ], |
| "cwd": "[CACHE]/git/chromium.googlesource.com-infra-goma-server", |
| "name": "cache.git fetch", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "vpython", |
| "-u", |
| "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", |
| "--json-output", |
| "/path/to/tmp/json", |
| "ensure-directory", |
| "--mode", |
| "0777", |
| "[START_DIR]/go/src/go.chromium.org/goma/server/.git/objects/info" |
| ], |
| "cwd": "[START_DIR]/go/src/go.chromium.org/goma/server", |
| "infra_step": true, |
| "name": "cache.makedirs object/info", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "vpython", |
| "-u", |
| "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", |
| "--json-output", |
| "/path/to/tmp/json", |
| "copy", |
| "[CACHE]/git/chromium.googlesource.com-infra-goma-server/objects\n", |
| "[START_DIR]/go/src/go.chromium.org/goma/server/.git/objects/info/alternates" |
| ], |
| "cwd": "[START_DIR]/go/src/go.chromium.org/goma/server", |
| "infra_step": true, |
| "name": "cache.alternates", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@", |
| "@@@STEP_LOG_LINE@alternates@[CACHE]/git/chromium.googlesource.com-infra-goma-server/objects@@@", |
| "@@@STEP_LOG_END@alternates@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "git", |
| "fetch", |
| "--tags", |
| "origin", |
| "master" |
| ], |
| "cwd": "[START_DIR]/go/src/go.chromium.org/goma/server", |
| "name": "git fetch" |
| }, |
| { |
| "cmd": [ |
| "git", |
| "checkout", |
| "-f", |
| "FETCH_HEAD" |
| ], |
| "cwd": "[START_DIR]/go/src/go.chromium.org/goma/server", |
| "name": "git checkout" |
| }, |
| { |
| "cmd": [ |
| "git", |
| "rev-parse", |
| "HEAD" |
| ], |
| "cwd": "[START_DIR]/go/src/go.chromium.org/goma/server", |
| "name": "git rev-parse" |
| }, |
| { |
| "cmd": [ |
| "git", |
| "clean", |
| "-f", |
| "-d", |
| "-x" |
| ], |
| "cwd": "[START_DIR]/go/src/go.chromium.org/goma/server", |
| "name": "git clean" |
| }, |
| { |
| "cmd": [], |
| "name": "submodule" |
| }, |
| { |
| "cmd": [ |
| "git", |
| "submodule", |
| "sync" |
| ], |
| "cwd": "[START_DIR]/go/src/go.chromium.org/goma/server", |
| "name": "submodule.git submodule sync", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "git", |
| "submodule", |
| "update", |
| "--init" |
| ], |
| "cwd": "[START_DIR]/go/src/go.chromium.org/goma/server", |
| "name": "submodule.git submodule update", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@" |
| ] |
| }, |
| { |
| "cmd": [], |
| "name": "build gomatools" |
| }, |
| { |
| "cmd": [ |
| "vpython", |
| "-u", |
| "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", |
| "--json-output", |
| "/path/to/tmp/json", |
| "listdir", |
| "[START_DIR]/go/src/go.chromium.org/goma/server/cmd" |
| ], |
| "infra_step": true, |
| "name": "build gomatools.list gomatools binaries", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@", |
| "@@@STEP_LOG_LINE@listdir@[START_DIR]/go/src/go.chromium.org/goma/server/cmd/auth_server@@@", |
| "@@@STEP_LOG_LINE@listdir@[START_DIR]/go/src/go.chromium.org/goma/server/cmd/setup_cmd@@@", |
| "@@@STEP_LOG_END@listdir@@@" |
| ] |
| }, |
| { |
| "cmd": [], |
| "name": "build gomatools.ensure go", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "cipd", |
| "ensure", |
| "-root", |
| "[START_DIR]/cipd/go", |
| "-ensure-file", |
| "infra/go/${platform} latest", |
| "-max-threads", |
| "0", |
| "-json-output", |
| "/path/to/tmp/json" |
| ], |
| "cwd": "[START_DIR]/go/src/go.chromium.org/goma/server", |
| "env": { |
| "GO111MODULE": "on", |
| "GOARCH": "amd64", |
| "GOCACHE": "[START_DIR]/go/.cache/go-build", |
| "GOOS": "linux", |
| "GOPATH": "[START_DIR]/go" |
| }, |
| "infra_step": true, |
| "name": "build gomatools.ensure go.ensure_installed", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@2@@@", |
| "@@@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-latest----------\", @@@", |
| "@@@STEP_LOG_LINE@json.output@ \"package\": \"infra/go/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": [ |
| "[START_DIR]/cipd/go/bin/go", |
| "install", |
| "go.chromium.org/goma/server/cmd/auth_server" |
| ], |
| "cwd": "[START_DIR]/go/src/go.chromium.org/goma/server", |
| "env": { |
| "GO111MODULE": "on", |
| "GOARCH": "amd64", |
| "GOCACHE": "[START_DIR]/go/.cache/go-build", |
| "GOOS": "linux", |
| "GOPATH": "[START_DIR]/go", |
| "GOROOT": "[START_DIR]/cipd/go" |
| }, |
| "name": "build gomatools.build auth_server", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "[START_DIR]/cipd/go/bin/go", |
| "install", |
| "go.chromium.org/goma/server/cmd/setup_cmd" |
| ], |
| "cwd": "[START_DIR]/go/src/go.chromium.org/goma/server", |
| "env": { |
| "GO111MODULE": "on", |
| "GOARCH": "amd64", |
| "GOCACHE": "[START_DIR]/go/.cache/go-build", |
| "GOOS": "linux", |
| "GOPATH": "[START_DIR]/go", |
| "GOROOT": "[START_DIR]/cipd/go" |
| }, |
| "name": "build gomatools.build setup_cmd", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "[START_DIR]/cipd/protoc", |
| "-I.", |
| "--include_imports", |
| "--include_source_info", |
| "--descriptor_set_out", |
| "[START_DIR]/go/bin/service_descriptor.pb", |
| "exec/exec_service.proto", |
| "file/file_service.proto", |
| "execlog/log_service.proto" |
| ], |
| "cwd": "[START_DIR]/go/src/go.chromium.org/goma/server/proto", |
| "env": { |
| "GOPATH": "[START_DIR]/go" |
| }, |
| "name": "build gomatools.generate service_descriptor.pb", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@" |
| ] |
| }, |
| { |
| "cmd": [], |
| "name": "copy docker files" |
| }, |
| { |
| "cmd": [ |
| "vpython", |
| "-u", |
| "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", |
| "--json-output", |
| "/path/to/tmp/json", |
| "copy", |
| "RECIPE[fuchsia::gomatools_builder].resources/Dockerfile.server-base", |
| "[START_DIR]/go/Dockerfile.server-base" |
| ], |
| "infra_step": true, |
| "name": "copy docker files.copy Dockerfile server-base", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "vpython", |
| "-u", |
| "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", |
| "--json-output", |
| "/path/to/tmp/json", |
| "copy", |
| "RECIPE[fuchsia::gomatools_builder].resources/Dockerfile.server", |
| "[START_DIR]/go/Dockerfile.server" |
| ], |
| "infra_step": true, |
| "name": "copy docker files.copy Dockerfile server", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "vpython", |
| "-u", |
| "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", |
| "--json-output", |
| "/path/to/tmp/json", |
| "copy", |
| "RECIPE[fuchsia::gomatools_builder].resources/Dockerfile.frontend", |
| "[START_DIR]/go/Dockerfile.frontend" |
| ], |
| "infra_step": true, |
| "name": "copy docker files.copy Dockerfile frontend", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "vpython", |
| "-u", |
| "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", |
| "--json-output", |
| "/path/to/tmp/json", |
| "copy", |
| "RECIPE[fuchsia::gomatools_builder].resources/Dockerfile.gomatools", |
| "[START_DIR]/go/Dockerfile.gomatools" |
| ], |
| "infra_step": true, |
| "name": "copy docker files.copy Dockerfile gomatools", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@" |
| ] |
| }, |
| { |
| "cmd": [], |
| "name": "build goma cluster images" |
| }, |
| { |
| "cmd": [ |
| "docker", |
| "build", |
| "--file=[START_DIR]/go/Dockerfile.server-base", |
| "--tag=goma-server-base", |
| "[START_DIR]/go" |
| ], |
| "cwd": "[START_DIR]/go", |
| "name": "build goma cluster images.docker build goma-server-base", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "docker", |
| "build", |
| "--file=Dockerfile.server", |
| "--tag=gcr.io/fuchsia-toolchain-images-gcr/auth-server", |
| "--tag=gcr.io/fuchsia-toolchain-images-gcr/auth-server:git_revision_deadbeef", |
| "--build-arg", |
| "app=auth-server", |
| "--build-arg", |
| "cmd=auth_server", |
| "[START_DIR]/go" |
| ], |
| "cwd": "[START_DIR]/go", |
| "name": "build goma cluster images.docker build gcr.io/fuchsia-toolchain-images-gcr/auth-server", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "docker", |
| "build", |
| "--file=Dockerfile.server", |
| "--tag=gcr.io/fuchsia-toolchain-images-gcr/cache-server", |
| "--tag=gcr.io/fuchsia-toolchain-images-gcr/cache-server:git_revision_deadbeef", |
| "--build-arg", |
| "app=cache-server", |
| "--build-arg", |
| "cmd=cache_server", |
| "[START_DIR]/go" |
| ], |
| "cwd": "[START_DIR]/go", |
| "name": "build goma cluster images.docker build gcr.io/fuchsia-toolchain-images-gcr/cache-server", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "docker", |
| "build", |
| "--file=Dockerfile.server", |
| "--tag=gcr.io/fuchsia-toolchain-images-gcr/cmd-server", |
| "--tag=gcr.io/fuchsia-toolchain-images-gcr/cmd-server:git_revision_deadbeef", |
| "--build-arg", |
| "app=cmd-server", |
| "--build-arg", |
| "cmd=cmd_server", |
| "[START_DIR]/go" |
| ], |
| "cwd": "[START_DIR]/go", |
| "name": "build goma cluster images.docker build gcr.io/fuchsia-toolchain-images-gcr/cmd-server", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "docker", |
| "build", |
| "--file=Dockerfile.server", |
| "--tag=gcr.io/fuchsia-toolchain-images-gcr/execlog-server", |
| "--tag=gcr.io/fuchsia-toolchain-images-gcr/execlog-server:git_revision_deadbeef", |
| "--build-arg", |
| "app=execlog-server", |
| "--build-arg", |
| "cmd=execlog_server", |
| "[START_DIR]/go" |
| ], |
| "cwd": "[START_DIR]/go", |
| "name": "build goma cluster images.docker build gcr.io/fuchsia-toolchain-images-gcr/execlog-server", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "docker", |
| "build", |
| "--file=Dockerfile.server", |
| "--tag=gcr.io/fuchsia-toolchain-images-gcr/exec-server", |
| "--tag=gcr.io/fuchsia-toolchain-images-gcr/exec-server:git_revision_deadbeef", |
| "--build-arg", |
| "app=exec-server", |
| "--build-arg", |
| "cmd=exec_server", |
| "[START_DIR]/go" |
| ], |
| "cwd": "[START_DIR]/go", |
| "name": "build goma cluster images.docker build gcr.io/fuchsia-toolchain-images-gcr/exec-server", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "docker", |
| "build", |
| "--file=Dockerfile.server", |
| "--tag=gcr.io/fuchsia-toolchain-images-gcr/file-server", |
| "--tag=gcr.io/fuchsia-toolchain-images-gcr/file-server:git_revision_deadbeef", |
| "--build-arg", |
| "app=file-server", |
| "--build-arg", |
| "cmd=file_server", |
| "[START_DIR]/go" |
| ], |
| "cwd": "[START_DIR]/go", |
| "name": "build goma cluster images.docker build gcr.io/fuchsia-toolchain-images-gcr/file-server", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "docker", |
| "build", |
| "--file=Dockerfile.frontend", |
| "--tag=gcr.io/fuchsia-toolchain-images-gcr/frontend", |
| "--tag=gcr.io/fuchsia-toolchain-images-gcr/frontend:git_revision_deadbeef", |
| "--build-arg", |
| "app=frontend", |
| "--build-arg", |
| "cmd=frontend", |
| "[START_DIR]/go" |
| ], |
| "cwd": "[START_DIR]/go", |
| "name": "build goma cluster images.docker build gcr.io/fuchsia-toolchain-images-gcr/frontend", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "docker", |
| "build", |
| "--file=Dockerfile.gomatools", |
| "--tag=gcr.io/fuchsia-toolchain-images-gcr/gomatools", |
| "--tag=gcr.io/fuchsia-toolchain-images-gcr/gomatools:git_revision_deadbeef", |
| "--build-arg", |
| "app=gomatools", |
| "--build-arg", |
| "cmd=gomatools", |
| "[START_DIR]/go" |
| ], |
| "cwd": "[START_DIR]/go", |
| "name": "build goma cluster images.docker build gcr.io/fuchsia-toolchain-images-gcr/gomatools", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@" |
| ] |
| }, |
| { |
| "name": "$result" |
| } |
| ] |