borenet | 61013b2 | 2016-10-20 11:38:30 -0700 | [diff] [blame] | 1 | [ |
| 2 | { |
| 3 | "cmd": [ |
| 4 | "python", |
| 5 | "-u", |
| 6 | "\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", |
| 7 | "[CUSTOM_/_B_WORK]", |
| 8 | "511" |
| 9 | ], |
Eric Boren | a159085 | 2017-03-20 12:48:31 -0400 | [diff] [blame^] | 10 | "infra_step": true, |
borenet | 61013b2 | 2016-10-20 11:38:30 -0700 | [diff] [blame] | 11 | "name": "makedirs checkout_path", |
| 12 | "~followup_annotations": [ |
| 13 | "@@@STEP_LOG_LINE@python.inline@@@@", |
| 14 | "@@@STEP_LOG_LINE@python.inline@import sys, os@@@", |
| 15 | "@@@STEP_LOG_LINE@python.inline@path = sys.argv[1]@@@", |
| 16 | "@@@STEP_LOG_LINE@python.inline@mode = int(sys.argv[2])@@@", |
| 17 | "@@@STEP_LOG_LINE@python.inline@if not os.path.isdir(path):@@@", |
| 18 | "@@@STEP_LOG_LINE@python.inline@ if os.path.exists(path):@@@", |
| 19 | "@@@STEP_LOG_LINE@python.inline@ print \"%s exists but is not a dir\" % path@@@", |
| 20 | "@@@STEP_LOG_LINE@python.inline@ sys.exit(1)@@@", |
| 21 | "@@@STEP_LOG_LINE@python.inline@ os.makedirs(path, mode)@@@", |
| 22 | "@@@STEP_LOG_END@python.inline@@@" |
| 23 | ] |
| 24 | }, |
| 25 | { |
| 26 | "cmd": [ |
| 27 | "python", |
| 28 | "-u", |
borenet | 8fa7470 | 2016-10-25 05:26:14 -0700 | [diff] [blame] | 29 | "RECIPE_MODULE[depot_tools::bot_update]/resources/bot_update.py", |
borenet | 61013b2 | 2016-10-20 11:38:30 -0700 | [diff] [blame] | 30 | "--spec", |
borenet | 8fa7470 | 2016-10-25 05:26:14 -0700 | [diff] [blame] | 31 | "cache_dir = '[CUSTOM_/_B_CACHE]'\nsolutions = [{'deps_file': '.DEPS.git', 'managed': False, 'name': 'skia', 'url': 'https://skia.googlesource.com/skia.git'}]", |
| 32 | "--patch_root", |
| 33 | "skia", |
| 34 | "--revision_mapping_file", |
| 35 | "{\"skia\": \"got_revision\"}", |
| 36 | "--git-cache-dir", |
| 37 | "[CUSTOM_/_B_CACHE]", |
| 38 | "--output_json", |
| 39 | "/path/to/tmp/json", |
| 40 | "--revision", |
| 41 | "skia@abc123", |
| 42 | "--output_manifest" |
borenet | 61013b2 | 2016-10-20 11:38:30 -0700 | [diff] [blame] | 43 | ], |
| 44 | "cwd": "[CUSTOM_/_B_WORK]", |
| 45 | "env": { |
| 46 | "BUILDTYPE": "Release", |
| 47 | "CHROME_HEADLESS": "1", |
Eric Boren | 1b5b944 | 2017-02-21 09:43:05 -0500 | [diff] [blame] | 48 | "GIT_HTTP_LOW_SPEED_LIMIT": "1000", |
| 49 | "GIT_HTTP_LOW_SPEED_TIME": "300", |
borenet | 61013b2 | 2016-10-20 11:38:30 -0700 | [diff] [blame] | 50 | "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]", |
Ravi Mistry | 9bcca6a | 2016-11-21 16:06:19 -0500 | [diff] [blame] | 51 | "SKIA_OUT": "[START_DIR]/out" |
borenet | 61013b2 | 2016-10-20 11:38:30 -0700 | [diff] [blame] | 52 | }, |
Eric Boren | a159085 | 2017-03-20 12:48:31 -0400 | [diff] [blame^] | 53 | "infra_step": true, |
borenet | 8fa7470 | 2016-10-25 05:26:14 -0700 | [diff] [blame] | 54 | "name": "bot_update", |
borenet | 61013b2 | 2016-10-20 11:38:30 -0700 | [diff] [blame] | 55 | "~followup_annotations": [ |
borenet | 8fa7470 | 2016-10-25 05:26:14 -0700 | [diff] [blame] | 56 | "@@@STEP_TEXT@Some step text@@@", |
borenet | 61013b2 | 2016-10-20 11:38:30 -0700 | [diff] [blame] | 57 | "@@@STEP_LOG_LINE@json.output@{@@@", |
borenet | 8fa7470 | 2016-10-25 05:26:14 -0700 | [diff] [blame] | 58 | "@@@STEP_LOG_LINE@json.output@ \"did_run\": true, @@@", |
| 59 | "@@@STEP_LOG_LINE@json.output@ \"fixed_revisions\": {@@@", |
| 60 | "@@@STEP_LOG_LINE@json.output@ \"skia\": \"abc123\"@@@", |
| 61 | "@@@STEP_LOG_LINE@json.output@ }, @@@", |
| 62 | "@@@STEP_LOG_LINE@json.output@ \"manifest\": {@@@", |
| 63 | "@@@STEP_LOG_LINE@json.output@ \"skia\": {@@@", |
| 64 | "@@@STEP_LOG_LINE@json.output@ \"repository\": \"https://fake.org/skia.git\", @@@", |
borenet | 61013b2 | 2016-10-20 11:38:30 -0700 | [diff] [blame] | 65 | "@@@STEP_LOG_LINE@json.output@ \"revision\": \"9046e2e693bb92a76e972b694580e5d17ad10748\"@@@", |
| 66 | "@@@STEP_LOG_LINE@json.output@ }@@@", |
borenet | 8fa7470 | 2016-10-25 05:26:14 -0700 | [diff] [blame] | 67 | "@@@STEP_LOG_LINE@json.output@ }, @@@", |
| 68 | "@@@STEP_LOG_LINE@json.output@ \"patch_failure\": false, @@@", |
| 69 | "@@@STEP_LOG_LINE@json.output@ \"patch_root\": \"skia\", @@@", |
| 70 | "@@@STEP_LOG_LINE@json.output@ \"properties\": {@@@", |
| 71 | "@@@STEP_LOG_LINE@json.output@ \"got_revision\": \"9046e2e693bb92a76e972b694580e5d17ad10748\", @@@", |
| 72 | "@@@STEP_LOG_LINE@json.output@ \"got_revision_cp\": \"refs/heads/master@{#164710}\"@@@", |
| 73 | "@@@STEP_LOG_LINE@json.output@ }, @@@", |
| 74 | "@@@STEP_LOG_LINE@json.output@ \"root\": \"skia\", @@@", |
| 75 | "@@@STEP_LOG_LINE@json.output@ \"step_text\": \"Some step text\"@@@", |
borenet | 61013b2 | 2016-10-20 11:38:30 -0700 | [diff] [blame] | 76 | "@@@STEP_LOG_LINE@json.output@}@@@", |
| 77 | "@@@STEP_LOG_END@json.output@@@", |
borenet | 8fa7470 | 2016-10-25 05:26:14 -0700 | [diff] [blame] | 78 | "@@@SET_BUILD_PROPERTY@got_revision@\"9046e2e693bb92a76e972b694580e5d17ad10748\"@@@", |
| 79 | "@@@SET_BUILD_PROPERTY@got_revision_cp@\"refs/heads/master@{#164710}\"@@@" |
borenet | 61013b2 | 2016-10-20 11:38:30 -0700 | [diff] [blame] | 80 | ] |
| 81 | }, |
| 82 | { |
| 83 | "cmd": [ |
borenet | 61013b2 | 2016-10-20 11:38:30 -0700 | [diff] [blame] | 84 | "go", |
| 85 | "get", |
| 86 | "-u", |
Eric Boren | 58bf693 | 2016-11-16 10:49:52 -0500 | [diff] [blame] | 87 | "-t", |
borenet | 61013b2 | 2016-10-20 11:38:30 -0700 | [diff] [blame] | 88 | "go.skia.org/infra/..." |
| 89 | ], |
| 90 | "env": { |
| 91 | "GOPATH": "[CUSTOM_/_B_WORK]/gopath" |
| 92 | }, |
| 93 | "name": "update go pkgs", |
| 94 | "~followup_annotations": [ |
| 95 | "step returned non-zero exit code: 1", |
| 96 | "@@@STEP_FAILURE@@@" |
| 97 | ] |
| 98 | }, |
| 99 | { |
| 100 | "cmd": [ |
| 101 | "go", |
| 102 | "get", |
| 103 | "-u", |
Eric Boren | 58bf693 | 2016-11-16 10:49:52 -0500 | [diff] [blame] | 104 | "-t", |
borenet | 61013b2 | 2016-10-20 11:38:30 -0700 | [diff] [blame] | 105 | "go.skia.org/infra/..." |
| 106 | ], |
| 107 | "env": { |
| 108 | "GOPATH": "[CUSTOM_/_B_WORK]/gopath" |
| 109 | }, |
| 110 | "name": "update go pkgs (attempt 2)" |
| 111 | }, |
| 112 | { |
| 113 | "cmd": [ |
| 114 | "python", |
| 115 | "[CUSTOM_/_B_WORK]/skia/infra/bots/infra_tests.py" |
| 116 | ], |
| 117 | "cwd": "[CUSTOM_/_B_WORK]/skia", |
| 118 | "env": { |
| 119 | "GOPATH": "[CUSTOM_/_B_WORK]/gopath" |
| 120 | }, |
| 121 | "name": "infra_tests" |
| 122 | }, |
| 123 | { |
| 124 | "name": "$result", |
| 125 | "recipe_result": null, |
| 126 | "status_code": 0 |
| 127 | } |
| 128 | ] |