blob: db4cfb147ef64966df16be9c539d2d423658e9e5 [file] [log] [blame]
[
{
"cmd": [],
"name": "cipd_packages"
},
{
"cmd": [
"cipd",
"ensure",
"-root",
"[START_DIR]/cipd",
"-ensure-file",
"infra/cmake/${platform} version:3.9.2\ninfra/ninja/${platform} version:1.8.2\nfuchsia/third_party/clang/${platform} goma\n@Subdir linux-amd64\nfuchsia/sysroot/linux-amd64 latest",
"-max-threads",
"0",
"-json-output",
"/path/to/tmp/json"
],
"infra_step": true,
"name": "cipd_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-goma------------\", @@@",
"@@@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-version:3.9.2---\", @@@",
"@@@STEP_LOG_LINE@json.output@ \"package\": \"infra/cmake/resolved-platform\"@@@",
"@@@STEP_LOG_LINE@json.output@ }, @@@",
"@@@STEP_LOG_LINE@json.output@ {@@@",
"@@@STEP_LOG_LINE@json.output@ \"instance_id\": \"resolved-instance_id-of-version:1.8.2---\", @@@",
"@@@STEP_LOG_LINE@json.output@ \"package\": \"infra/ninja/resolved-platform\"@@@",
"@@@STEP_LOG_LINE@json.output@ }@@@",
"@@@STEP_LOG_LINE@json.output@ ], @@@",
"@@@STEP_LOG_LINE@json.output@ \"linux-amd64\": [@@@",
"@@@STEP_LOG_LINE@json.output@ {@@@",
"@@@STEP_LOG_LINE@json.output@ \"instance_id\": \"resolved-instance_id-of-latest----------\", @@@",
"@@@STEP_LOG_LINE@json.output@ \"package\": \"fuchsia/sysroot/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": [],
"name": "toolchain"
},
{
"cmd": [],
"name": "toolchain.install infra/tools/luci/isolated",
"~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/isolated/isolated_module_pin"
],
"infra_step": true,
"name": "toolchain.install infra/tools/luci/isolated.ensure package directory",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@2@@@"
]
},
{
"cmd": [
"cipd",
"ensure",
"-root",
"[CACHE]/cipd/infra/tools/luci/isolated/isolated_module_pin",
"-ensure-file",
"infra/tools/luci/isolated/${platform} isolated_module_pin",
"-max-threads",
"0",
"-json-output",
"/path/to/tmp/json"
],
"infra_step": true,
"name": "toolchain.install infra/tools/luci/isolated.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-isolated_module_\", @@@",
"@@@STEP_LOG_LINE@json.output@ \"package\": \"infra/tools/luci/isolated/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/isolated/isolated_module_pin/isolated",
"download",
"-verbose",
"-isolate-server",
"https://example.isolateserver.appspot.com",
"-isolated",
"abc123",
"-output-dir",
"[CLEANUP]/clang_tmp_1"
],
"infra_step": true,
"name": "toolchain.download",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [],
"name": "git"
},
{
"cmd": [
"vpython",
"-u",
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
"--json-output",
"/path/to/tmp/json",
"ensure-directory",
"--mode",
"0777",
"[START_DIR]/llvm-test-suite"
],
"infra_step": true,
"name": "git.makedirs",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"git",
"init"
],
"cwd": "[START_DIR]/llvm-test-suite",
"infra_step": true,
"name": "git.git init",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"git",
"remote",
"add",
"origin",
"https://fuchsia.googlesource.com/third_party/llvm-test-suite"
],
"cwd": "[START_DIR]/llvm-test-suite",
"infra_step": true,
"name": "git.git remote",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [],
"name": "git.cache",
"~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]/git/fuchsia.googlesource.com-third_party-llvm--test--suite"
],
"cwd": "[START_DIR]/llvm-test-suite",
"infra_step": true,
"name": "git.cache.makedirs",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@2@@@"
]
},
{
"cmd": [
"git",
"init",
"--bare"
],
"cwd": "[CACHE]/git/fuchsia.googlesource.com-third_party-llvm--test--suite",
"infra_step": true,
"name": "git.cache.git init",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@2@@@"
]
},
{
"cmd": [
"git",
"config",
"remote.origin.url",
"https://fuchsia.googlesource.com/third_party/llvm-test-suite"
],
"cwd": "[CACHE]/git/fuchsia.googlesource.com-third_party-llvm--test--suite",
"infra_step": true,
"name": "git.cache.remote set-url",
"~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-llvm--test--suite",
"infra_step": true,
"name": "git.cache.git config",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@2@@@"
]
},
{
"cmd": [
"git",
"fetch",
"--prune",
"--tags",
"origin"
],
"cwd": "[CACHE]/git/fuchsia.googlesource.com-third_party-llvm--test--suite",
"infra_step": true,
"name": "git.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]/llvm-test-suite/.git/objects/info"
],
"cwd": "[START_DIR]/llvm-test-suite",
"infra_step": true,
"name": "git.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-llvm--test--suite/objects\n",
"[START_DIR]/llvm-test-suite/.git/objects/info/alternates"
],
"cwd": "[START_DIR]/llvm-test-suite",
"infra_step": true,
"name": "git.cache.alternates",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@2@@@",
"@@@STEP_LOG_LINE@alternates@[CACHE]/git/fuchsia.googlesource.com-third_party-llvm--test--suite/objects@@@",
"@@@STEP_LOG_END@alternates@@@"
]
},
{
"cmd": [
"git",
"fetch",
"--tags",
"origin"
],
"cwd": "[START_DIR]/llvm-test-suite",
"infra_step": true,
"name": "git.git fetch",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"git",
"checkout",
"-f",
"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
],
"cwd": "[START_DIR]/llvm-test-suite",
"infra_step": true,
"name": "git.git checkout",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"git",
"rev-parse",
"HEAD"
],
"cwd": "[START_DIR]/llvm-test-suite",
"infra_step": true,
"name": "git.git rev-parse",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"git",
"clean",
"-f",
"-d",
"-x"
],
"cwd": "[START_DIR]/llvm-test-suite",
"infra_step": true,
"name": "git.git clean",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [],
"name": "git.submodule",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"git",
"submodule",
"sync"
],
"cwd": "[START_DIR]/llvm-test-suite",
"infra_step": true,
"name": "git.submodule.git submodule sync",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@2@@@"
]
},
{
"cmd": [
"git",
"submodule",
"update",
"--init"
],
"cwd": "[START_DIR]/llvm-test-suite",
"infra_step": true,
"name": "git.submodule.git submodule update",
"~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]/test-suite-build"
],
"infra_step": true,
"name": "create test-suite-build dir"
},
{
"cmd": [],
"name": "test-suite"
},
{
"cmd": [
"[START_DIR]/cipd/bin/cmake",
"-GNinja",
"-DCMAKE_MAKE_PROGRAM=[START_DIR]/cipd/ninja",
"-DCMAKE_C_COMPILER=[CLEANUP]/clang_tmp_1/bin/clang",
"-DCMAKE_CXX_COMPILER=[CLEANUP]/clang_tmp_1/bin/clang++",
"-DCMAKE_EXE_LINKER_FLAGS=-ldl -lpthread",
"-DCMAKE_SHARED_LINKER_FLAGS=-ldl -lpthread",
"-DCMAKE_SYSROOT=[START_DIR]/cipd/linux-amd64",
"-DTEST_SUITE_CXX_ABI=libc++",
"-C",
"[START_DIR]/llvm-test-suite/cmake/caches/O3.cmake",
"[START_DIR]/llvm-test-suite"
],
"cwd": "[START_DIR]/test-suite-build",
"name": "test-suite.configure",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"[START_DIR]/cipd/ninja"
],
"cwd": "[START_DIR]/test-suite-build",
"name": "test-suite.build",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"python",
"-u",
"RECIPE[fuchsia::llvm_test_suite].resources/llvm-lit.py",
"-o",
"[START_DIR]/test-suite-build/results.json",
"[START_DIR]/test-suite-build"
],
"cwd": "[START_DIR]/test-suite-build",
"name": "test-suite.test",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@",
"@@@STEP_LOG_LINE@json.output (read error)@JSON file was missing or unreadable:@@@",
"@@@STEP_LOG_LINE@json.output (read error)@ [START_DIR]/test-suite-build/results.json@@@",
"@@@STEP_LOG_END@json.output (read error)@@@"
]
},
{
"name": "$result"
}
]