3e2ffd74b5
Bug: skia:6704 Change-Id: Id3cefa643316e5676d2038a75240e16d929d6d63 Reviewed-on: https://skia-review.googlesource.com/20146 Commit-Queue: Eric Boren <borenet@google.com> Reviewed-by: Ravi Mistry <rmistry@google.com>
167 lines
4.3 KiB
JSON
167 lines
4.3 KiB
JSON
[
|
|
{
|
|
"cmd": [
|
|
"python",
|
|
"-u",
|
|
"\nimport sys, os\npath = sys.argv[1]\nmode = int(sys.argv[2])\nif not os.path.isdir(path):\n if os.path.exists(path):\n print \"%s exists but is not a dir\" % path\n sys.exit(1)\n os.makedirs(path, mode)\n",
|
|
"[START_DIR]/tmp_upload",
|
|
"511"
|
|
],
|
|
"infra_step": true,
|
|
"name": "makedirs tmp dir",
|
|
"~followup_annotations": [
|
|
"@@@STEP_LOG_LINE@python.inline@@@@",
|
|
"@@@STEP_LOG_LINE@python.inline@import sys, os@@@",
|
|
"@@@STEP_LOG_LINE@python.inline@path = sys.argv[1]@@@",
|
|
"@@@STEP_LOG_LINE@python.inline@mode = int(sys.argv[2])@@@",
|
|
"@@@STEP_LOG_LINE@python.inline@if not os.path.isdir(path):@@@",
|
|
"@@@STEP_LOG_LINE@python.inline@ if os.path.exists(path):@@@",
|
|
"@@@STEP_LOG_LINE@python.inline@ print \"%s exists but is not a dir\" % path@@@",
|
|
"@@@STEP_LOG_LINE@python.inline@ sys.exit(1)@@@",
|
|
"@@@STEP_LOG_LINE@python.inline@ os.makedirs(path, mode)@@@",
|
|
"@@@STEP_LOG_END@python.inline@@@"
|
|
]
|
|
},
|
|
{
|
|
"cmd": [
|
|
"python",
|
|
"-u",
|
|
"\nimport shutil\nimport sys\nshutil.copy(sys.argv[1], sys.argv[2])\n",
|
|
"[START_DIR]/dm/dm.json",
|
|
"[START_DIR]/tmp_upload"
|
|
],
|
|
"name": "copy dm.json"
|
|
},
|
|
{
|
|
"cmd": [
|
|
"python",
|
|
"-u",
|
|
"\nimport shutil\nimport sys\nshutil.copy(sys.argv[1], sys.argv[2])\n",
|
|
"[START_DIR]/dm/verbose.log",
|
|
"[START_DIR]/tmp_upload"
|
|
],
|
|
"name": "copy verbose.log"
|
|
},
|
|
{
|
|
"cmd": [
|
|
"python",
|
|
"-u",
|
|
"\nimport os\nimport sys\nos.remove(sys.argv[1])\n",
|
|
"[START_DIR]/dm/dm.json"
|
|
],
|
|
"name": "rm old dm.json",
|
|
"~followup_annotations": [
|
|
"@@@STEP_LOG_LINE@python.inline@@@@",
|
|
"@@@STEP_LOG_LINE@python.inline@import os@@@",
|
|
"@@@STEP_LOG_LINE@python.inline@import sys@@@",
|
|
"@@@STEP_LOG_LINE@python.inline@os.remove(sys.argv[1])@@@",
|
|
"@@@STEP_LOG_END@python.inline@@@"
|
|
]
|
|
},
|
|
{
|
|
"cmd": [
|
|
"python",
|
|
"-u",
|
|
"\nimport os\nimport sys\nos.remove(sys.argv[1])\n",
|
|
"[START_DIR]/dm/verbose.log"
|
|
],
|
|
"name": "rm old verbose.log",
|
|
"~followup_annotations": [
|
|
"@@@STEP_LOG_LINE@python.inline@@@@",
|
|
"@@@STEP_LOG_LINE@python.inline@import os@@@",
|
|
"@@@STEP_LOG_LINE@python.inline@import sys@@@",
|
|
"@@@STEP_LOG_LINE@python.inline@os.remove(sys.argv[1])@@@",
|
|
"@@@STEP_LOG_END@python.inline@@@"
|
|
]
|
|
},
|
|
{
|
|
"cmd": [
|
|
"python",
|
|
"-u",
|
|
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
|
|
"--json-output",
|
|
"/path/to/tmp/json",
|
|
"glob",
|
|
"[START_DIR]/dm",
|
|
"*.png"
|
|
],
|
|
"infra_step": true,
|
|
"name": "find images",
|
|
"stdout": "/path/to/tmp/",
|
|
"~followup_annotations": [
|
|
"@@@STEP_LOG_LINE@glob@[START_DIR]/dm/someimage.png@@@",
|
|
"@@@STEP_LOG_END@glob@@@"
|
|
]
|
|
},
|
|
{
|
|
"cmd": [
|
|
"gsutil",
|
|
"cp",
|
|
"[START_DIR]/dm/*.png",
|
|
"gs://skia-infra-gm/dm-images-v1"
|
|
],
|
|
"name": "upload images",
|
|
"~followup_annotations": [
|
|
"step returned non-zero exit code: 1",
|
|
"@@@STEP_FAILURE@@@"
|
|
]
|
|
},
|
|
{
|
|
"cmd": [
|
|
"gsutil",
|
|
"cp",
|
|
"[START_DIR]/dm/*.png",
|
|
"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",
|
|
"[START_DIR]/dm/*.png",
|
|
"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",
|
|
"[START_DIR]/dm/*.png",
|
|
"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",
|
|
"[START_DIR]/dm/*.png",
|
|
"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
|
|
}
|
|
] |