blob: 079de87ef13e6e54713094da2903d3c63fc036fb [file] [log] [blame]
[
{
"cmd": [],
"name": "checkout sources"
},
{
"cmd": [
"vpython",
"-u",
"RECIPE_MODULE[recipe_engine::file]\\resources\\fileutil.py",
"--json-output",
"/path/to/tmp/json",
"ensure-directory",
"--mode",
"0777",
"[START_DIR]\\ninja"
],
"infra_step": true,
"name": "checkout sources.makedirs",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"git",
"init"
],
"cwd": "[START_DIR]\\ninja",
"infra_step": true,
"name": "checkout sources.git init",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"git",
"remote",
"add",
"origin",
"https://fuchsia.googlesource.com/third_party/github.com/ninja-build/ninja"
],
"cwd": "[START_DIR]\\ninja",
"infra_step": true,
"name": "checkout sources.git remote",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"git",
"config",
"fetch.uriprotocols",
"https"
],
"cwd": "[START_DIR]\\ninja",
"infra_step": true,
"name": "checkout sources.set fetch.uriprotocols",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [],
"name": "checkout sources.cache",
"~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\\.GUARD_FILE"
],
"cwd": "[START_DIR]\\ninja",
"infra_step": true,
"name": "checkout sources.cache.write guard file",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@2@@@",
"@@@STEP_LOG_END@.GUARD_FILE@@@"
]
},
{
"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-github.com-ninja--build-ninja"
],
"cwd": "[START_DIR]\\ninja",
"infra_step": true,
"name": "checkout sources.cache.makedirs",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@2@@@"
]
},
{
"cmd": [
"git",
"init",
"--bare"
],
"cwd": "[CACHE]\\git\\fuchsia.googlesource.com-third_party-github.com-ninja--build-ninja",
"infra_step": true,
"name": "checkout sources.cache.git init",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@2@@@"
]
},
{
"cmd": [
"git",
"config",
"remote.origin.url",
"https://fuchsia.googlesource.com/third_party/github.com/ninja-build/ninja"
],
"cwd": "[CACHE]\\git\\fuchsia.googlesource.com-third_party-github.com-ninja--build-ninja",
"infra_step": true,
"name": "checkout sources.cache.remote set-url",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@2@@@"
]
},
{
"cmd": [
"git",
"config",
"fetch.uriprotocols",
"https"
],
"cwd": "[CACHE]\\git\\fuchsia.googlesource.com-third_party-github.com-ninja--build-ninja",
"infra_step": true,
"name": "checkout sources.cache.set fetch.uriprotocols",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@2@@@"
]
},
{
"cmd": [
"git",
"config",
"--replace-all",
"remote.origin.fetch",
"+refs/heads/*:refs/heads/*",
"\\+refs/heads/\\*:.*"
],
"cwd": "[CACHE]\\git\\fuchsia.googlesource.com-third_party-github.com-ninja--build-ninja",
"infra_step": true,
"name": "checkout sources.cache.replace fetch configs",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@2@@@"
]
},
{
"cmd": [
"git",
"fetch",
"--prune",
"--tags",
"origin"
],
"cwd": "[CACHE]\\git\\fuchsia.googlesource.com-third_party-github.com-ninja--build-ninja",
"infra_step": true,
"name": "checkout sources.cache.git fetch",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@2@@@"
]
},
{
"cmd": [
"vpython",
"-u",
"RECIPE_MODULE[recipe_engine::file]\\resources\\fileutil.py",
"--json-output",
"/path/to/tmp/json",
"ensure-directory",
"--mode",
"0777",
"[START_DIR]\\ninja\\.git\\objects\\info"
],
"cwd": "[START_DIR]\\ninja",
"infra_step": true,
"name": "checkout sources.cache.makedirs object/info",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@2@@@"
]
},
{
"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-github.com-ninja--build-ninja\\objects\n",
"[START_DIR]\\ninja\\.git\\objects\\info\\alternates"
],
"cwd": "[START_DIR]\\ninja",
"infra_step": true,
"name": "checkout sources.cache.alternates",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@2@@@",
"@@@STEP_LOG_LINE@alternates@[CACHE]\\git\\fuchsia.googlesource.com-third_party-github.com-ninja--build-ninja\\objects@@@",
"@@@STEP_LOG_END@alternates@@@"
]
},
{
"cmd": [
"vpython",
"-u",
"RECIPE_MODULE[recipe_engine::file]\\resources\\fileutil.py",
"--json-output",
"/path/to/tmp/json",
"remove",
"[CACHE]\\git\\.GUARD_FILE"
],
"cwd": "[START_DIR]\\ninja",
"infra_step": true,
"name": "checkout sources.cache.remove guard file",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@2@@@"
]
},
{
"cmd": [
"git",
"fetch",
"--tags",
"origin"
],
"cwd": "[START_DIR]\\ninja",
"infra_step": true,
"name": "checkout sources.git fetch",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"git",
"checkout",
"-f",
"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
],
"cwd": "[START_DIR]\\ninja",
"infra_step": true,
"name": "checkout sources.git checkout",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"git",
"rev-parse",
"HEAD"
],
"cwd": "[START_DIR]\\ninja",
"infra_step": true,
"name": "checkout sources.git rev-parse",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"git",
"clean",
"-f",
"-d",
"-x"
],
"cwd": "[START_DIR]\\ninja",
"infra_step": true,
"name": "checkout sources.git clean",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [],
"name": "checkout sources.submodule",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"git",
"submodule",
"sync"
],
"cwd": "[START_DIR]\\ninja",
"infra_step": true,
"name": "checkout sources.submodule.git submodule sync",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@2@@@"
]
},
{
"cmd": [
"git",
"submodule",
"update",
"--init"
],
"cwd": "[START_DIR]\\ninja",
"infra_step": true,
"name": "checkout sources.submodule.git submodule update",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@2@@@"
]
},
{
"cmd": [],
"name": "ensure packages"
},
{
"cmd": [
"cipd.bat",
"ensure",
"-root",
"[START_DIR]\\cipd",
"-ensure-file",
"fuchsia/third_party/clang/${platform} integration\nfuchsia/third_party/cmake/${platform} git_revision:4f90fef85f6391e63dfae26bd6f290c59ea48e95\nfuchsia/third_party/ninja/${platform} git_revision:0ccc7886fd4694ae1372d29b4954e2dd3be118be",
"-max-threads",
"0",
"-json-output",
"/path/to/tmp/json"
],
"infra_step": true,
"name": "ensure packages.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-integration-----\", @@@",
"@@@STEP_LOG_LINE@json.output@ \"package\": \"fuchsia/third_party/clang/resolved-platform\"@@@",
"@@@STEP_LOG_LINE@json.output@ }, @@@",
"@@@STEP_LOG_LINE@json.output@ {@@@",
"@@@STEP_LOG_LINE@json.output@ \"instance_id\": \"resolved-instance_id-of-git_revision:4f9\", @@@",
"@@@STEP_LOG_LINE@json.output@ \"package\": \"fuchsia/third_party/cmake/resolved-platform\"@@@",
"@@@STEP_LOG_LINE@json.output@ }, @@@",
"@@@STEP_LOG_LINE@json.output@ {@@@",
"@@@STEP_LOG_LINE@json.output@ \"instance_id\": \"resolved-instance_id-of-git_revision:0cc\", @@@",
"@@@STEP_LOG_LINE@json.output@ \"package\": \"fuchsia/third_party/ninja/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": [
"vpython",
"-u",
"RECIPE_MODULE[recipe_engine::file]\\resources\\fileutil.py",
"--json-output",
"/path/to/tmp/json",
"copy",
"{\n \"directories\": {\n \"[START_DIR]\\\\ninja\": {\n \"git_checkout\": {\n \"repo_url\": \"https://fuchsia.googlesource.com/third_party/github.com/ninja-build/ninja\", \n \"revision\": \"deadbeef\"\n }\n }, \n \"[START_DIR]\\\\cipd\": {\n \"cipd_package\": {\n \"fuchsia/third_party/clang/resolved-platform\": {\n \"instance_id\": \"resolved-instance_id-of-integration-----\"\n }, \n \"fuchsia/third_party/cmake/resolved-platform\": {\n \"instance_id\": \"resolved-instance_id-of-git_revision:4f9\"\n }, \n \"fuchsia/third_party/ninja/resolved-platform\": {\n \"instance_id\": \"resolved-instance_id-of-git_revision:0cc\"\n }\n }, \n \"cipd_server_host\": \"chrome-infra-packages.appspot.com\"\n }\n }\n}",
"[START_DIR]\\ninja\\source_manifest.json"
],
"infra_step": true,
"name": "source manifest",
"~followup_annotations": [
"@@@STEP_LOG_LINE@source_manifest.json@{@@@",
"@@@STEP_LOG_LINE@source_manifest.json@ \"directories\": {@@@",
"@@@STEP_LOG_LINE@source_manifest.json@ \"[START_DIR]\\\\ninja\": {@@@",
"@@@STEP_LOG_LINE@source_manifest.json@ \"git_checkout\": {@@@",
"@@@STEP_LOG_LINE@source_manifest.json@ \"repo_url\": \"https://fuchsia.googlesource.com/third_party/github.com/ninja-build/ninja\", @@@",
"@@@STEP_LOG_LINE@source_manifest.json@ \"revision\": \"deadbeef\"@@@",
"@@@STEP_LOG_LINE@source_manifest.json@ }@@@",
"@@@STEP_LOG_LINE@source_manifest.json@ }, @@@",
"@@@STEP_LOG_LINE@source_manifest.json@ \"[START_DIR]\\\\cipd\": {@@@",
"@@@STEP_LOG_LINE@source_manifest.json@ \"cipd_package\": {@@@",
"@@@STEP_LOG_LINE@source_manifest.json@ \"fuchsia/third_party/clang/resolved-platform\": {@@@",
"@@@STEP_LOG_LINE@source_manifest.json@ \"instance_id\": \"resolved-instance_id-of-integration-----\"@@@",
"@@@STEP_LOG_LINE@source_manifest.json@ }, @@@",
"@@@STEP_LOG_LINE@source_manifest.json@ \"fuchsia/third_party/cmake/resolved-platform\": {@@@",
"@@@STEP_LOG_LINE@source_manifest.json@ \"instance_id\": \"resolved-instance_id-of-git_revision:4f9\"@@@",
"@@@STEP_LOG_LINE@source_manifest.json@ }, @@@",
"@@@STEP_LOG_LINE@source_manifest.json@ \"fuchsia/third_party/ninja/resolved-platform\": {@@@",
"@@@STEP_LOG_LINE@source_manifest.json@ \"instance_id\": \"resolved-instance_id-of-git_revision:0cc\"@@@",
"@@@STEP_LOG_LINE@source_manifest.json@ }@@@",
"@@@STEP_LOG_LINE@source_manifest.json@ }, @@@",
"@@@STEP_LOG_LINE@source_manifest.json@ \"cipd_server_host\": \"chrome-infra-packages.appspot.com\"@@@",
"@@@STEP_LOG_LINE@source_manifest.json@ }@@@",
"@@@STEP_LOG_LINE@source_manifest.json@ }@@@",
"@@@STEP_LOG_LINE@source_manifest.json@}@@@",
"@@@STEP_LOG_END@source_manifest.json@@@"
]
},
{
"cmd": [
"vpython",
"-u",
"RECIPE_MODULE[recipe_engine::file]\\resources\\fileutil.py",
"--json-output",
"/path/to/tmp/json",
"ensure-directory",
"--mode",
"0777",
"[START_DIR]\\ninja_build_dir"
],
"infra_step": true,
"name": "create build dir"
},
{
"cmd": [
"[START_DIR]\\cipd\\bin\\cmake",
"-GNinja",
"-DCMAKE_C_COMPILER=[START_DIR]\\cipd\\bin\\clang",
"-DCMAKE_CXX_COMPILER=[START_DIR]\\cipd\\bin\\clang++",
"-DCMAKE_ASM_COMPILER=[START_DIR]\\cipd\\bin\\clang",
"-DCMAKE_MAKE_PROGRAM=[START_DIR]\\cipd\\ninja",
"-DCMAKE_BUILD_TYPE=Release",
"-DCMAKE_INSTALL_PREFIX=",
"[START_DIR]\\ninja"
],
"cwd": "[START_DIR]\\ninja_build_dir",
"name": "configure"
},
{
"cmd": [
"[START_DIR]\\cipd\\ninja"
],
"cwd": "[START_DIR]\\ninja_build_dir",
"name": "build"
},
{
"cmd": [
"[START_DIR]\\cipd\\ninja",
"test"
],
"cwd": "[START_DIR]\\ninja_build_dir",
"name": "test"
},
{
"cmd": [
"[START_DIR]\\ninja_build_dir\\ninja.exe",
"--version"
],
"name": "ninja version"
},
{
"cmd": [],
"name": "cas",
"~followup_annotations": [
"@@@SET_BUILD_PROPERTY@isolated@\"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855/0\"@@@"
]
},
{
"cmd": [],
"name": "cas.install infra/tools/luci/cas",
"~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",
"[CACHE]\\cipd\\infra\\tools\\luci\\cas\\cas_module_pin"
],
"infra_step": true,
"name": "cas.install infra/tools/luci/cas.ensure package directory",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@2@@@"
]
},
{
"cmd": [
"cipd.bat",
"ensure",
"-root",
"[CACHE]\\cipd\\infra\\tools\\luci\\cas\\cas_module_pin",
"-ensure-file",
"infra/tools/luci/cas/${platform} cas_module_pin",
"-max-threads",
"0",
"-json-output",
"/path/to/tmp/json"
],
"infra_step": true,
"name": "cas.install infra/tools/luci/cas.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-cas_module_pin--\", @@@",
"@@@STEP_LOG_LINE@json.output@ \"package\": \"infra/tools/luci/cas/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": [
"[CACHE]\\cipd\\infra\\tools\\luci\\cas\\cas_module_pin\\cas",
"archive",
"-cas-instance",
"projects/example-cas-server/instances/default_instance",
"-dump-digest",
"/path/to/tmp/",
"-paths",
"[START_DIR]\\ninja_build_dir:ninja.exe"
],
"infra_step": true,
"name": "cas.archive",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@",
"@@@STEP_LINK@CAS UI@https://cas-viewer.appspot.com/projects/example-cas-server/instances/default_instance/blobs/e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855/0/tree@@@"
]
},
{
"cmd": [],
"name": "cipd"
},
{
"cmd": [
"cipd.bat",
"pkg-build",
"-pkg-def",
"{\"data\": [{\"file\": \"ninja.exe\"}, {\"version_file\": \".versions/ninja.cipd_version\"}], \"install_mode\": \"copy\", \"package\": \"fuchsia/third_party/ninja/${platform}\", \"root\": \"[START_DIR]\\\\ninja_build_dir\"}",
"-out",
"[CLEANUP]\\ninja.cipd",
"-hash-algo",
"sha256",
"-json-output",
"/path/to/tmp/json"
],
"name": "cipd.build fuchsia/third_party/ninja/${platform}",
"~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/third_party/ninja/resolved-platform\"@@@",
"@@@STEP_LOG_LINE@json.output@ }@@@",
"@@@STEP_LOG_LINE@json.output@}@@@",
"@@@STEP_LOG_END@json.output@@@"
]
},
{
"cmd": [
"cipd.bat",
"search",
"fuchsia/third_party/ninja/${platform}",
"-tag",
"git_revision:deadbeef",
"-json-output",
"/path/to/tmp/json"
],
"name": "cipd.cipd search fuchsia/third_party/ninja/${platform} 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_LINE@json.output@ \"instance_id\": \"40-chars-fake-of-the-package-instance_id\", @@@",
"@@@STEP_LOG_LINE@json.output@ \"package\": \"fuchsia/third_party/ninja/resolved-platform\"@@@",
"@@@STEP_LOG_LINE@json.output@ }@@@",
"@@@STEP_LOG_LINE@json.output@ ]@@@",
"@@@STEP_LOG_LINE@json.output@}@@@",
"@@@STEP_LOG_END@json.output@@@"
]
},
{
"cmd": [],
"name": "cipd.package is up-to-date",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"name": "$result"
}
]