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",
|
2017-02-02 14:02:37 +00:00
|
|
|
"[START_DIR]/dm/dm.json",
|
|
|
|
"[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",
|
2017-02-02 14:02:37 +00:00
|
|
|
"[START_DIR]/dm/verbose.log",
|
|
|
|
"[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",
|
2017-02-02 14:02:37 +00:00
|
|
|
"[START_DIR]/dm/dm.json"
|
|
|
|
],
|
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",
|
2017-02-02 14:02:37 +00:00
|
|
|
"[START_DIR]/dm/verbose.log"
|
|
|
|
],
|
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",
|
|
|
|
"[START_DIR]/dm",
|
|
|
|
"*.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": [
|
|
|
|
"@@@STEP_LOG_LINE@glob@[START_DIR]/dm/someimage.png@@@",
|
|
|
|
"@@@STEP_LOG_END@glob@@@"
|
|
|
|
]
|
2017-02-02 14:02:37 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"cmd": [
|
|
|
|
"gsutil",
|
|
|
|
"cp",
|
2017-06-16 17:10:22 +00:00
|
|
|
"[START_DIR]/dm/*.png",
|
2017-02-02 14:02:37 +00:00
|
|
|
"gs://skia-infra-gm/dm-images-v1"
|
|
|
|
],
|
|
|
|
"name": "upload images",
|
|
|
|
"~followup_annotations": [
|
|
|
|
"step returned non-zero exit code: 1",
|
|
|
|
"@@@STEP_FAILURE@@@"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cmd": [
|
|
|
|
"gsutil",
|
|
|
|
"cp",
|
2017-06-16 17:10:22 +00:00
|
|
|
"[START_DIR]/dm/*.png",
|
2017-02-02 14:02:37 +00:00
|
|
|
"gs://skia-infra-gm/dm-images-v1"
|
|
|
|
],
|
|
|
|
"name": "upload images (attempt 2)",
|
|
|
|
"~followup_annotations": [
|
|
|
|
"step returned non-zero exit code: 1",
|
|
|
|
"@@@STEP_FAILURE@@@"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cmd": [
|
|
|
|
"gsutil",
|
|
|
|
"cp",
|
2017-06-16 17:10:22 +00:00
|
|
|
"[START_DIR]/dm/*.png",
|
2017-02-02 14:02:37 +00:00
|
|
|
"gs://skia-infra-gm/dm-images-v1"
|
|
|
|
],
|
|
|
|
"name": "upload images (attempt 3)",
|
|
|
|
"~followup_annotations": [
|
|
|
|
"step returned non-zero exit code: 1",
|
|
|
|
"@@@STEP_FAILURE@@@"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cmd": [
|
|
|
|
"gsutil",
|
|
|
|
"cp",
|
2017-06-16 17:10:22 +00:00
|
|
|
"[START_DIR]/dm/*.png",
|
2017-02-02 14:02:37 +00:00
|
|
|
"gs://skia-infra-gm/dm-images-v1"
|
|
|
|
],
|
|
|
|
"name": "upload images (attempt 4)",
|
|
|
|
"~followup_annotations": [
|
|
|
|
"step returned non-zero exit code: 1",
|
|
|
|
"@@@STEP_FAILURE@@@"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cmd": [
|
|
|
|
"gsutil",
|
|
|
|
"cp",
|
2017-06-16 17:10:22 +00:00
|
|
|
"[START_DIR]/dm/*.png",
|
2017-02-02 14:02:37 +00:00
|
|
|
"gs://skia-infra-gm/dm-images-v1"
|
|
|
|
],
|
|
|
|
"name": "upload images (attempt 5)",
|
|
|
|
"~followup_annotations": [
|
|
|
|
"step returned non-zero exit code: 1",
|
|
|
|
"@@@STEP_FAILURE@@@"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "$result",
|
|
|
|
"reason": "Step('upload images (attempt 5)') failed with return_code 1",
|
|
|
|
"recipe_result": null,
|
|
|
|
"status_code": 1
|
|
|
|
}
|
|
|
|
]
|