2017-02-02 14:02:37 +00:00
|
|
|
[
|
|
|
|
{
|
|
|
|
"cmd": [
|
|
|
|
"python",
|
|
|
|
"-u",
|
2017-07-07 21:36:58 +00:00
|
|
|
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
|
|
|
|
"--json-output",
|
|
|
|
"/path/to/tmp/json",
|
|
|
|
"ensure-directory",
|
|
|
|
"--mode",
|
|
|
|
"0777",
|
|
|
|
"[START_DIR]/tmp_upload"
|
2017-02-02 14:02:37 +00:00
|
|
|
],
|
2017-03-20 16:48:31 +00:00
|
|
|
"infra_step": true,
|
2017-07-07 21:36:58 +00:00
|
|
|
"name": "makedirs tmp dir"
|
2017-02-02 14:02:37 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"cmd": [
|
|
|
|
"python",
|
|
|
|
"-u",
|
2017-07-07 21:36:58 +00:00
|
|
|
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
|
|
|
|
"--json-output",
|
|
|
|
"/path/to/tmp/json",
|
|
|
|
"copy",
|
2018-04-17 11:28:46 +00:00
|
|
|
"[START_DIR]/dm/dm.json",
|
2017-02-02 14:02:37 +00:00
|
|
|
"[START_DIR]/tmp_upload"
|
|
|
|
],
|
2017-07-07 21:36:58 +00:00
|
|
|
"infra_step": true,
|
2017-02-02 14:02:37 +00:00
|
|
|
"name": "copy dm.json"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cmd": [
|
|
|
|
"python",
|
|
|
|
"-u",
|
2017-07-07 21:36:58 +00:00
|
|
|
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
|
|
|
|
"--json-output",
|
|
|
|
"/path/to/tmp/json",
|
|
|
|
"copy",
|
2018-04-17 11:28:46 +00:00
|
|
|
"[START_DIR]/dm/verbose.log",
|
2017-02-02 14:02:37 +00:00
|
|
|
"[START_DIR]/tmp_upload"
|
|
|
|
],
|
2017-07-07 21:36:58 +00:00
|
|
|
"infra_step": true,
|
2017-02-02 14:02:37 +00:00
|
|
|
"name": "copy verbose.log"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cmd": [
|
|
|
|
"python",
|
|
|
|
"-u",
|
2017-07-07 21:36:58 +00:00
|
|
|
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
|
|
|
|
"--json-output",
|
|
|
|
"/path/to/tmp/json",
|
|
|
|
"remove",
|
2018-04-17 11:28:46 +00:00
|
|
|
"[START_DIR]/dm/dm.json"
|
2017-02-02 14:02:37 +00:00
|
|
|
],
|
2017-07-07 21:36:58 +00:00
|
|
|
"infra_step": true,
|
|
|
|
"name": "rm old dm.json"
|
2017-02-02 14:02:37 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"cmd": [
|
|
|
|
"python",
|
|
|
|
"-u",
|
2017-07-07 21:36:58 +00:00
|
|
|
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
|
|
|
|
"--json-output",
|
|
|
|
"/path/to/tmp/json",
|
|
|
|
"remove",
|
2018-04-17 11:28:46 +00:00
|
|
|
"[START_DIR]/dm/verbose.log"
|
2017-02-02 14:02:37 +00:00
|
|
|
],
|
2017-07-07 21:36:58 +00:00
|
|
|
"infra_step": true,
|
|
|
|
"name": "rm old verbose.log"
|
2017-02-02 14:02:37 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"cmd": [
|
|
|
|
"python",
|
|
|
|
"-u",
|
2017-06-16 17:10:22 +00:00
|
|
|
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
|
|
|
|
"--json-output",
|
|
|
|
"/path/to/tmp/json",
|
|
|
|
"glob",
|
2018-04-17 11:28:46 +00:00
|
|
|
"[START_DIR]/dm",
|
2017-06-16 17:10:22 +00:00
|
|
|
"*.png"
|
2017-02-02 14:02:37 +00:00
|
|
|
],
|
2017-03-20 16:48:31 +00:00
|
|
|
"infra_step": true,
|
2017-06-16 17:10:22 +00:00
|
|
|
"name": "find images",
|
|
|
|
"stdout": "/path/to/tmp/",
|
|
|
|
"~followup_annotations": [
|
2018-04-17 11:28:46 +00:00
|
|
|
"@@@STEP_LOG_LINE@glob@[START_DIR]/dm/someimage.png@@@",
|
2017-06-16 17:10:22 +00:00
|
|
|
"@@@STEP_LOG_END@glob@@@"
|
|
|
|
]
|
2017-02-02 14:02:37 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"cmd": [
|
|
|
|
"gsutil",
|
2018-01-16 21:06:09 +00:00
|
|
|
"-m",
|
2017-02-02 14:02:37 +00:00
|
|
|
"cp",
|
2018-04-17 11:28:46 +00:00
|
|
|
"[START_DIR]/dm/*.png",
|
2017-02-02 14:02:37 +00:00
|
|
|
"gs://skia-infra-gm/dm-images-v1"
|
|
|
|
],
|
|
|
|
"name": "upload images"
|
|
|
|
},
|
2017-06-16 17:10:22 +00:00
|
|
|
{
|
|
|
|
"cmd": [
|
|
|
|
"python",
|
|
|
|
"-u",
|
|
|
|
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
|
|
|
|
"--json-output",
|
|
|
|
"/path/to/tmp/json",
|
|
|
|
"glob",
|
2018-04-17 11:28:46 +00:00
|
|
|
"[START_DIR]/dm",
|
2017-06-16 17:10:22 +00:00
|
|
|
"*.pdf"
|
|
|
|
],
|
|
|
|
"infra_step": true,
|
|
|
|
"name": "find images (2)",
|
|
|
|
"stdout": "/path/to/tmp/",
|
|
|
|
"~followup_annotations": [
|
2018-04-17 11:28:46 +00:00
|
|
|
"@@@STEP_LOG_LINE@glob@[START_DIR]/dm/someimage.png@@@",
|
2017-06-16 17:10:22 +00:00
|
|
|
"@@@STEP_LOG_END@glob@@@"
|
|
|
|
]
|
|
|
|
},
|
2017-02-02 14:02:37 +00:00
|
|
|
{
|
|
|
|
"cmd": [
|
|
|
|
"gsutil",
|
|
|
|
"cp",
|
|
|
|
"-z",
|
|
|
|
"json,log",
|
|
|
|
"[START_DIR]/tmp_upload/*",
|
2017-09-26 18:11:15 +00:00
|
|
|
"gs://skia-infra-gm/trybot/dm-json-v1/2012/05/14/12/abc123/Test-Debian9-GCC-GCE-CPU-AVX2-x86_64-Debug/1337000001/456789/12"
|
2017-02-02 14:02:37 +00:00
|
|
|
],
|
|
|
|
"name": "upload JSON and logs"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "$result",
|
|
|
|
"recipe_result": null,
|
|
|
|
"status_code": 0
|
|
|
|
}
|
|
|
|
]
|