blob: 2b32bfbc6a06d729d8714ffb8c17ad595bac1d17 [file] [log] [blame]
[
{
"cmd": [
"python",
"-u",
"RECIPE_MODULE[depot_tools::git]/resources/git_setup.py",
"--path",
"[START_DIR]/swarming.client",
"--url",
"https://chromium.googlesource.com/infra/luci/client-py.git"
],
"name": "git setup (swarming_client)"
},
{
"cmd": [
"git",
"retry",
"fetch",
"origin",
"master",
"--progress"
],
"cwd": "[START_DIR]/swarming.client",
"env": {
"PATH": "RECIPE_PACKAGE_REPO[depot_tools]:<PATH>"
},
"infra_step": true,
"name": "git fetch (swarming_client)"
},
{
"cmd": [
"git",
"checkout",
"-f",
"FETCH_HEAD"
],
"cwd": "[START_DIR]/swarming.client",
"infra_step": true,
"name": "git checkout (swarming_client)"
},
{
"cmd": [
"git",
"rev-parse",
"HEAD"
],
"cwd": "[START_DIR]/swarming.client",
"infra_step": true,
"name": "read revision",
"stdout": "/path/to/tmp/",
"~followup_annotations": [
"@@@STEP_TEXT@<br/>checked out 'deadbeef'<br/>@@@"
]
},
{
"cmd": [
"git",
"clean",
"-f",
"-d",
"-x"
],
"cwd": "[START_DIR]/swarming.client",
"infra_step": true,
"name": "git clean (swarming_client)"
},
{
"cmd": [
"git",
"submodule",
"sync"
],
"cwd": "[START_DIR]/swarming.client",
"infra_step": true,
"name": "submodule sync (swarming_client)"
},
{
"cmd": [
"git",
"submodule",
"update",
"--init",
"--recursive"
],
"cwd": "[START_DIR]/swarming.client",
"infra_step": true,
"name": "submodule update (swarming_client)"
},
{
"cmd": [
"cat"
],
"name": "read test spec",
"stdout": "/path/to/tmp/json",
"~followup_annotations": [
"@@@STEP_LOG_LINE@json.output@[@@@",
"@@@STEP_LOG_LINE@json.output@ \"test1\", @@@",
"@@@STEP_LOG_LINE@json.output@ \"test2\", @@@",
"@@@STEP_LOG_LINE@json.output@ \"test_exparchive\"@@@",
"@@@STEP_LOG_LINE@json.output@]@@@",
"@@@STEP_LOG_END@json.output@@@"
]
},
{
"cmd": [
"python",
"-u",
"RECIPE_MODULE[build::isolate]/resources/find_isolated_tests.py",
"--build-dir",
"RECIPE_PACKAGE_REPO[build]",
"--output-json",
"/path/to/tmp/json"
],
"name": "find isolated tests",
"~followup_annotations": [
"@@@STEP_LOG_LINE@json.output@{@@@",
"@@@STEP_LOG_LINE@json.output@ \"test1\": \"[dummy hash for test1]\", @@@",
"@@@STEP_LOG_LINE@json.output@ \"test2\": \"[dummy hash for test2]\", @@@",
"@@@STEP_LOG_LINE@json.output@ \"test_exparchive\": \"[dummy hash for test_exparchive]\"@@@",
"@@@STEP_LOG_LINE@json.output@}@@@",
"@@@STEP_LOG_END@json.output@@@",
"@@@SET_BUILD_PROPERTY@swarm_hashes@{\"test1\": \"[dummy hash for test1]\", \"test2\": \"[dummy hash for test2]\", \"test_exparchive\": \"[dummy hash for test_exparchive]\"}@@@"
]
},
{
"cmd": [
"python",
"-u",
"RECIPE_MODULE[build::isolate]/resources/isolate.py",
"[START_DIR]/swarming.client",
"archive",
"--dump-json",
"/path/to/tmp/json",
"--isolate-server",
"https://isolateserver-dev.appspot.com",
"--eventlog-endpoint",
"prod",
"--blacklist",
"*.pyc",
"--blacklist",
"*.swp",
"--blacklist",
".git",
"--service-account-json",
"chromium_builder",
"--isolate",
"RECIPE_PACKAGE_REPO[build]/test_exparchive.isolate",
"--isolated",
"RECIPE_PACKAGE_REPO[build]/test_exparchive.isolated"
],
"name": "isolate test_exparchive",
"~followup_annotations": [
"@@@STEP_LOG_LINE@json.output@{@@@",
"@@@STEP_LOG_LINE@json.output@ \"test_exparchive\": \"[dummy hash for test_exparchive]\"@@@",
"@@@STEP_LOG_LINE@json.output@}@@@",
"@@@STEP_LOG_END@json.output@@@"
]
},
{
"cmd": [
"python",
"-u",
"RECIPE_MODULE[build::isolate]/resources/isolate.py",
"[START_DIR]/swarming.client",
"batcharchive",
"--dump-json",
"/path/to/tmp/json",
"--isolate-server",
"https://isolateserver-dev.appspot.com",
"--eventlog-endpoint",
"prod",
"--blacklist",
"*.pyc",
"--blacklist",
"*.swp",
"--blacklist",
".git",
"--service-account-json",
"chromium_builder",
"RECIPE_PACKAGE_REPO[build]/test1.isolated.gen.json",
"RECIPE_PACKAGE_REPO[build]/test2.isolated.gen.json"
],
"name": "isolate tests",
"~followup_annotations": [
"@@@STEP_LOG_LINE@json.output@{@@@",
"@@@STEP_LOG_LINE@json.output@ \"test1\": \"[dummy hash for test1]\", @@@",
"@@@STEP_LOG_LINE@json.output@ \"test2\": \"[dummy hash for test2]\"@@@",
"@@@STEP_LOG_LINE@json.output@}@@@",
"@@@STEP_LOG_END@json.output@@@",
"@@@SET_BUILD_PROPERTY@swarm_hashes@{\"test1\": \"[dummy hash for test1]\", \"test2\": \"[dummy hash for test2]\", \"test_exparchive\": \"[dummy hash for test_exparchive]\"}@@@"
]
},
{
"jsonResult": null,
"name": "$result"
}
]