blob: 0282d8ace0bae4d5b65160837e5d12e95c7ac25d [file] [log] [blame]
[
{
"cmd": [
"vpython",
"-u",
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
"--json-output",
"/path/to/tmp/json",
"ensure-directory",
"--mode",
"0777",
"[START_DIR]/go"
],
"infra_step": true,
"name": "makedirs"
},
{
"cmd": [
"git",
"init"
],
"cwd": "[START_DIR]/go",
"name": "git init"
},
{
"cmd": [
"git",
"remote",
"add",
"origin",
"https://fuchsia.googlesource.com/third_party/go"
],
"cwd": "[START_DIR]/go",
"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/fuchsia.googlesource.com-third_party-go"
],
"cwd": "[START_DIR]/go",
"infra_step": true,
"name": "cache.makedirs",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"git",
"init",
"--bare"
],
"cwd": "[CACHE]/git/fuchsia.googlesource.com-third_party-go",
"name": "cache.git init",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"git",
"config",
"remote.origin.url",
"https://fuchsia.googlesource.com/third_party/go"
],
"cwd": "[CACHE]/git/fuchsia.googlesource.com-third_party-go",
"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/fuchsia.googlesource.com-third_party-go",
"name": "cache.git config",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"git",
"fetch",
"--prune",
"--tags",
"origin"
],
"cwd": "[CACHE]/git/fuchsia.googlesource.com-third_party-go",
"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/.git/objects/info"
],
"cwd": "[START_DIR]/go",
"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/fuchsia.googlesource.com-third_party-go/objects\n",
"[START_DIR]/go/.git/objects/info/alternates"
],
"cwd": "[START_DIR]/go",
"infra_step": true,
"name": "cache.alternates",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@",
"@@@STEP_LOG_LINE@alternates@[CACHE]/git/fuchsia.googlesource.com-third_party-go/objects@@@",
"@@@STEP_LOG_END@alternates@@@"
]
},
{
"cmd": [
"git",
"fetch",
"--tags",
"origin",
"HEAD"
],
"cwd": "[START_DIR]/go",
"name": "git fetch"
},
{
"cmd": [
"git",
"checkout",
"-f",
"FETCH_HEAD"
],
"cwd": "[START_DIR]/go",
"name": "git checkout"
},
{
"cmd": [
"git",
"rev-parse",
"HEAD"
],
"cwd": "[START_DIR]/go",
"name": "git rev-parse"
},
{
"cmd": [
"git",
"clean",
"-f",
"-d",
"-x"
],
"cwd": "[START_DIR]/go",
"name": "git clean"
},
{
"cmd": [],
"name": "submodule"
},
{
"cmd": [
"git",
"submodule",
"sync"
],
"cwd": "[START_DIR]/go",
"name": "submodule.git submodule sync",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"git",
"submodule",
"update",
"--init"
],
"cwd": "[START_DIR]/go",
"name": "submodule.git submodule update",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [],
"name": "ensure go"
},
{
"cmd": [
"cipd",
"ensure",
"-root",
"[START_DIR]/cipd/go",
"-ensure-file",
"infra/go/${platform} latest",
"-max-threads",
"0",
"-json-output",
"/path/to/tmp/json"
],
"infra_step": true,
"name": "ensure go.ensure_installed",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@",
"@@@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": [],
"name": "pre-build file removal"
},
{
"cmd": [
"vpython",
"-u",
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
"--json-output",
"/path/to/tmp/json",
"remove",
"[START_DIR]/go/.gitattributes"
],
"cwd": "[START_DIR]/go/src",
"env": {
"GOARCH": "amd64",
"GOOS": "linux",
"GOROOT_BOOTSTRAP": "[START_DIR]/cipd/go"
},
"infra_step": true,
"name": "pre-build file removal..gitattributes",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"vpython",
"-u",
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
"--json-output",
"/path/to/tmp/json",
"remove",
"[START_DIR]/go/.gitignore"
],
"cwd": "[START_DIR]/go/src",
"env": {
"GOARCH": "amd64",
"GOOS": "linux",
"GOROOT_BOOTSTRAP": "[START_DIR]/cipd/go"
},
"infra_step": true,
"name": "pre-build file removal..gitignore",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"vpython",
"-u",
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
"--json-output",
"/path/to/tmp/json",
"remove",
"[START_DIR]/go/.hgignore"
],
"cwd": "[START_DIR]/go/src",
"env": {
"GOARCH": "amd64",
"GOOS": "linux",
"GOROOT_BOOTSTRAP": "[START_DIR]/cipd/go"
},
"infra_step": true,
"name": "pre-build file removal..hgignore",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"vpython",
"-u",
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
"--json-output",
"/path/to/tmp/json",
"remove",
"[START_DIR]/go/.hgtags"
],
"cwd": "[START_DIR]/go/src",
"env": {
"GOARCH": "amd64",
"GOOS": "linux",
"GOROOT_BOOTSTRAP": "[START_DIR]/cipd/go"
},
"infra_step": true,
"name": "pre-build file removal..hgtags",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"vpython",
"-u",
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
"--json-output",
"/path/to/tmp/json",
"remove",
"[START_DIR]/go/misc/dashboard"
],
"cwd": "[START_DIR]/go/src",
"env": {
"GOARCH": "amd64",
"GOOS": "linux",
"GOROOT_BOOTSTRAP": "[START_DIR]/cipd/go"
},
"infra_step": true,
"name": "pre-build file removal.misc/dashboard",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"vpython",
"-u",
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
"--json-output",
"/path/to/tmp/json",
"remove",
"[START_DIR]/go/misc/makerelease"
],
"cwd": "[START_DIR]/go/src",
"env": {
"GOARCH": "amd64",
"GOOS": "linux",
"GOROOT_BOOTSTRAP": "[START_DIR]/cipd/go"
},
"infra_step": true,
"name": "pre-build file removal.misc/makerelease",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"vpython",
"-u",
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
"--json-output",
"/path/to/tmp/json",
"rmtree",
"[START_DIR]/go/.git"
],
"cwd": "[START_DIR]/go/src",
"env": {
"GOARCH": "amd64",
"GOOS": "linux",
"GOROOT_BOOTSTRAP": "[START_DIR]/cipd/go"
},
"infra_step": true,
"name": "pre-build file removal..git",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"vpython",
"-u",
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
"--json-output",
"/path/to/tmp/json",
"rmtree",
"[START_DIR]/go/.github"
],
"cwd": "[START_DIR]/go/src",
"env": {
"GOARCH": "amd64",
"GOOS": "linux",
"GOROOT_BOOTSTRAP": "[START_DIR]/cipd/go"
},
"infra_step": true,
"name": "pre-build file removal..github",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"[START_DIR]/go/src/make.bash"
],
"cwd": "[START_DIR]/go/src",
"env": {
"GOARCH": "amd64",
"GOOS": "linux",
"GOROOT_BOOTSTRAP": "[START_DIR]/cipd/go"
},
"name": "build"
},
{
"cmd": [
"[START_DIR]/go/src/run.bash",
"--no-rebuild"
],
"cwd": "[START_DIR]/go/src",
"env": {
"GOARCH": "amd64",
"GOOS": "linux",
"GOROOT_BOOTSTRAP": "[START_DIR]/cipd/go"
},
"env_prefixes": {
"PATH": [
"[START_DIR]/go/bin"
]
},
"name": "test"
},
{
"cmd": [],
"name": "post-build file removal"
},
{
"cmd": [
"vpython",
"-u",
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
"--json-output",
"/path/to/tmp/json",
"remove",
"[START_DIR]/go/VERSION.cache"
],
"infra_step": true,
"name": "post-build file removal.VERSION.cache",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"vpython",
"-u",
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
"--json-output",
"/path/to/tmp/json",
"rmtree",
"[START_DIR]/go/pkg/bootstrap"
],
"infra_step": true,
"name": "post-build file removal.pkg/bootstrap",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"vpython",
"-u",
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
"--json-output",
"/path/to/tmp/json",
"copy",
"[START_DIR]/go/VERSION",
"/path/to/tmp/"
],
"infra_step": true,
"name": "read go version",
"~followup_annotations": [
"@@@STEP_LOG_LINE@VERSION@go1.8@@@",
"@@@STEP_LOG_END@VERSION@@@"
]
},
{
"cmd": [],
"name": "cipd",
"~followup_annotations": [
"@@@SET_BUILD_PROPERTY@git_revision@\"deadbeef\"@@@",
"@@@SET_BUILD_PROPERTY@instance_id@\"40-chars-fake-of-the-package-instance_id\"@@@",
"@@@SET_BUILD_PROPERTY@package@\"fuchsia/go/linux-amd64\"@@@"
]
},
{
"cmd": [
"cipd",
"pkg-build",
"-pkg-def",
"{\"data\": [{\"dir\": \".\", \"exclude\": []}, {\"version_file\": \".versions/go.cipd_version\"}], \"install_mode\": \"copy\", \"package\": \"fuchsia/go/linux-amd64\", \"root\": \"[START_DIR]/go\"}",
"-out",
"[CLEANUP]/go.cipd",
"-hash-algo",
"sha256",
"-json-output",
"/path/to/tmp/json"
],
"name": "cipd.build fuchsia/go/linux-amd64",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@",
"@@@STEP_LOG_LINE@json.output@{@@@",
"@@@STEP_LOG_LINE@json.output@ \"result\": {@@@",
"@@@STEP_LOG_LINE@json.output@ \"instance_id\": \"40-chars-fake-of-the-package-instance_id\", @@@",
"@@@STEP_LOG_LINE@json.output@ \"package\": \"fuchsia/go/linux-amd64\"@@@",
"@@@STEP_LOG_LINE@json.output@ }@@@",
"@@@STEP_LOG_LINE@json.output@}@@@",
"@@@STEP_LOG_END@json.output@@@"
]
},
{
"cmd": [
"cipd",
"search",
"fuchsia/go/linux-amd64",
"-tag",
"git_revision:deadbeef",
"-json-output",
"/path/to/tmp/json"
],
"name": "cipd.cipd search fuchsia/go/linux-amd64 git_revision:deadbeef",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@",
"@@@STEP_LOG_LINE@json.output@{@@@",
"@@@STEP_LOG_LINE@json.output@ \"result\": []@@@",
"@@@STEP_LOG_LINE@json.output@}@@@",
"@@@STEP_LOG_END@json.output@@@"
]
},
{
"cmd": [
"cipd",
"pkg-register",
"[CLEANUP]/go.cipd",
"-ref",
"latest",
"-tag",
"git_repository:https://fuchsia.googlesource.com/third_party/go",
"-tag",
"git_revision:deadbeef",
"-tag",
"version:go1.8",
"-json-output",
"/path/to/tmp/json"
],
"name": "cipd.register fuchsia/go/linux-amd64",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@",
"@@@STEP_LOG_LINE@json.output@{@@@",
"@@@STEP_LOG_LINE@json.output@ \"result\": {@@@",
"@@@STEP_LOG_LINE@json.output@ \"instance_id\": \"40-chars-fake-of-the-package-instance_id\", @@@",
"@@@STEP_LOG_LINE@json.output@ \"package\": \"fuchsia/go/linux-amd64\"@@@",
"@@@STEP_LOG_LINE@json.output@ }@@@",
"@@@STEP_LOG_LINE@json.output@}@@@",
"@@@STEP_LOG_END@json.output@@@",
"@@@STEP_LINK@fuchsia/go/linux-amd64@https://chrome-infra-packages.appspot.com/p/fuchsia/go/linux-amd64/+/40-chars-fake-of-the-package-instance_id@@@"
]
},
{
"name": "$result"
}
]