Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(97)

Side by Side Diff: infra/bots/recipes/swarm_compile.expected/recipe_with_gerrit_patch.json

Issue 2448973002: Change recipes to use bot_update (Closed)
Patch Set: Clean Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 [ 1 [
2 { 2 {
3 "cmd": [ 3 "cmd": [
4 "python", 4 "python",
5 "-u", 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", 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_C:\\_B_WORK]", 7 "[CUSTOM_C:\\_B_WORK]",
8 "511" 8 "511"
9 ], 9 ],
10 "name": "makedirs checkout_path", 10 "name": "makedirs checkout_path",
11 "~followup_annotations": [ 11 "~followup_annotations": [
12 "@@@STEP_LOG_LINE@python.inline@@@@", 12 "@@@STEP_LOG_LINE@python.inline@@@@",
13 "@@@STEP_LOG_LINE@python.inline@import sys, os@@@", 13 "@@@STEP_LOG_LINE@python.inline@import sys, os@@@",
14 "@@@STEP_LOG_LINE@python.inline@path = sys.argv[1]@@@", 14 "@@@STEP_LOG_LINE@python.inline@path = sys.argv[1]@@@",
15 "@@@STEP_LOG_LINE@python.inline@mode = int(sys.argv[2])@@@", 15 "@@@STEP_LOG_LINE@python.inline@mode = int(sys.argv[2])@@@",
16 "@@@STEP_LOG_LINE@python.inline@if not os.path.isdir(path):@@@", 16 "@@@STEP_LOG_LINE@python.inline@if not os.path.isdir(path):@@@",
17 "@@@STEP_LOG_LINE@python.inline@ if os.path.exists(path):@@@", 17 "@@@STEP_LOG_LINE@python.inline@ if os.path.exists(path):@@@",
18 "@@@STEP_LOG_LINE@python.inline@ print \"%s exists but is not a dir\" % path@@@", 18 "@@@STEP_LOG_LINE@python.inline@ print \"%s exists but is not a dir\" % path@@@",
19 "@@@STEP_LOG_LINE@python.inline@ sys.exit(1)@@@", 19 "@@@STEP_LOG_LINE@python.inline@ sys.exit(1)@@@",
20 "@@@STEP_LOG_LINE@python.inline@ os.makedirs(path, mode)@@@", 20 "@@@STEP_LOG_LINE@python.inline@ os.makedirs(path, mode)@@@",
21 "@@@STEP_LOG_END@python.inline@@@" 21 "@@@STEP_LOG_END@python.inline@@@"
22 ] 22 ]
23 }, 23 },
24 { 24 {
25 "cmd": [ 25 "cmd": [
26 "python", 26 "python",
27 "-u", 27 "-u",
28 "RECIPE_PACKAGE_REPO[depot_tools]\\gclient.py", 28 "RECIPE_MODULE[depot_tools::bot_update]\\resources\\bot_update.py",
29 "config",
30 "--spec", 29 "--spec",
31 "cache_dir = '[CUSTOM_C:\\\\_B_CACHE]'\nsolutions = [{'deps_file': '.DEPS. git', 'managed': False, 'name': 'skia', 'url': 'https://skia.googlesource.com/sk ia.git'}]" 30 "cache_dir = '[CUSTOM_C:\\\\_B_CACHE]'\nsolutions = [{'deps_file': '.DEPS. git', 'managed': False, 'name': 'skia', 'url': 'https://skia.googlesource.com/sk ia.git'}]",
31 "--patch_root",
32 "skia",
33 "--revision_mapping_file",
34 "{\"skia\": \"got_revision\"}",
35 "--git-cache-dir",
36 "[CUSTOM_C:\\_B_CACHE]",
37 "--gerrit_repo",
38 "skia",
39 "--gerrit_ref",
40 "refs/changes/00/2100/2",
41 "--output_json",
42 "/path/to/tmp/json",
43 "--revision",
44 "skia@abc123",
45 "--output_manifest"
32 ], 46 ],
33 "cwd": "[CUSTOM_C:\\_B_WORK]", 47 "cwd": "[CUSTOM_C:\\_B_WORK]",
34 "env": { 48 "env": {
35 "BUILDTYPE": "Debug", 49 "BUILDTYPE": "Debug",
36 "CHROME_HEADLESS": "1", 50 "CHROME_HEADLESS": "1",
37 "PATH": "%(PATH)s;RECIPE_PACKAGE_REPO[depot_tools]", 51 "PATH": "%(PATH)s;RECIPE_PACKAGE_REPO[depot_tools]",
38 "SKIA_OUT": "[CUSTOM_C:\\_B_WORK]\\skia\\out\\Build-Win-MSVC-x86-Debug-Try bot" 52 "SKIA_OUT": "[CUSTOM_C:\\_B_WORK]\\skia\\out\\Build-Win-MSVC-x86-Debug-Try bot"
39 }, 53 },
40 "name": "gclient setup" 54 "name": "bot_update",
41 },
42 {
43 "cmd": [
44 "python",
45 "-u",
46 "RECIPE_PACKAGE_REPO[depot_tools]\\gclient.py",
47 "sync",
48 "--verbose",
49 "--with_branch_heads",
50 "--nohooks",
51 "-j2",
52 "--reset",
53 "--force",
54 "--upstream",
55 "--no-nag-max",
56 "--delete_unversioned_trees",
57 "--revision",
58 "skia@abc123",
59 "--output-json",
60 "/path/to/tmp/json"
61 ],
62 "cwd": "[CUSTOM_C:\\_B_WORK]",
63 "env": {
64 "BUILDTYPE": "Debug",
65 "CHROME_HEADLESS": "1",
66 "PATH": "%(PATH)s;RECIPE_PACKAGE_REPO[depot_tools];RECIPE_PACKAGE_REPO[dep ot_tools]",
67 "SKIA_OUT": "[CUSTOM_C:\\_B_WORK]\\skia\\out\\Build-Win-MSVC-x86-Debug-Try bot"
68 },
69 "name": "gclient sync",
70 "~followup_annotations": [ 55 "~followup_annotations": [
56 "@@@STEP_TEXT@Some step text@@@",
71 "@@@STEP_LOG_LINE@json.output@{@@@", 57 "@@@STEP_LOG_LINE@json.output@{@@@",
72 "@@@STEP_LOG_LINE@json.output@ \"solutions\": {@@@", 58 "@@@STEP_LOG_LINE@json.output@ \"did_run\": true, @@@",
73 "@@@STEP_LOG_LINE@json.output@ \"skia/\": {@@@", 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/ski a.git\", @@@",
74 "@@@STEP_LOG_LINE@json.output@ \"revision\": \"9046e2e693bb92a76e972b 694580e5d17ad10748\"@@@", 65 "@@@STEP_LOG_LINE@json.output@ \"revision\": \"9046e2e693bb92a76e972b 694580e5d17ad10748\"@@@",
75 "@@@STEP_LOG_LINE@json.output@ }@@@", 66 "@@@STEP_LOG_LINE@json.output@ }@@@",
76 "@@@STEP_LOG_LINE@json.output@ }@@@", 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\": \"9046e2e693bb92a76e97 2b694580e5d17ad10748\", @@@",
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\"@@@",
77 "@@@STEP_LOG_LINE@json.output@}@@@", 76 "@@@STEP_LOG_LINE@json.output@}@@@",
78 "@@@STEP_LOG_END@json.output@@@", 77 "@@@STEP_LOG_END@json.output@@@",
79 "@@@SET_BUILD_PROPERTY@got_revision@\"9046e2e693bb92a76e972b694580e5d17ad1 0748\"@@@" 78 "@@@SET_BUILD_PROPERTY@got_revision@\"9046e2e693bb92a76e972b694580e5d17ad1 0748\"@@@",
79 "@@@SET_BUILD_PROPERTY@got_revision_cp@\"refs/heads/master@{#164710}\"@@@"
80 ] 80 ]
81 }, 81 },
82 { 82 {
83 "cmd": [ 83 "cmd": [
84 "python", 84 "python",
85 "-u", 85 "-u",
86 "RECIPE_PACKAGE_REPO[depot_tools]\\gclient.py",
87 "recurse",
88 "git",
89 "config",
90 "user.name",
91 "local_bot"
92 ],
93 "cwd": "[CUSTOM_C:\\_B_WORK]",
94 "env": {
95 "BUILDTYPE": "Debug",
96 "CHROME_HEADLESS": "1",
97 "PATH": "%(PATH)s;RECIPE_PACKAGE_REPO[depot_tools];RECIPE_PACKAGE_REPO[dep ot_tools];RECIPE_PACKAGE_REPO[depot_tools]",
98 "SKIA_OUT": "[CUSTOM_C:\\_B_WORK]\\skia\\out\\Build-Win-MSVC-x86-Debug-Try bot"
99 },
100 "name": "gclient recurse (git config user.name)"
101 },
102 {
103 "cmd": [
104 "python",
105 "-u",
106 "RECIPE_PACKAGE_REPO[depot_tools]\\gclient.py",
107 "recurse",
108 "git",
109 "config",
110 "user.email",
111 "local_bot@example.com"
112 ],
113 "cwd": "[CUSTOM_C:\\_B_WORK]",
114 "env": {
115 "BUILDTYPE": "Debug",
116 "CHROME_HEADLESS": "1",
117 "PATH": "%(PATH)s;RECIPE_PACKAGE_REPO[depot_tools];RECIPE_PACKAGE_REPO[dep ot_tools];RECIPE_PACKAGE_REPO[depot_tools];RECIPE_PACKAGE_REPO[depot_tools]",
118 "SKIA_OUT": "[CUSTOM_C:\\_B_WORK]\\skia\\out\\Build-Win-MSVC-x86-Debug-Try bot"
119 },
120 "name": "gclient recurse (git config user.email)"
121 },
122 {
123 "cmd": [
124 "python",
125 "-u",
126 "RECIPE_MODULE[depot_tools::bot_update]\\resources\\apply_gerrit.py",
127 "--gerrit_repo",
128 "skia",
129 "--gerrit_ref",
130 "refs/changes/00/2100/2",
131 "--root",
132 "[CUSTOM_C:\\_B_WORK]\\skia"
133 ],
134 "env": {
135 "PATH": "%(PATH)s;RECIPE_PACKAGE_REPO[depot_tools]"
136 },
137 "name": "apply_gerrit"
138 },
139 {
140 "cmd": [
141 "python",
142 "-u",
143 "\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", 86 "\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",
144 "[SLAVE_BUILD]\\tmp", 87 "[SLAVE_BUILD]\\tmp",
145 "511" 88 "511"
146 ], 89 ],
147 "name": "makedirs tmp_dir", 90 "name": "makedirs tmp_dir",
148 "~followup_annotations": [ 91 "~followup_annotations": [
149 "@@@STEP_LOG_LINE@python.inline@@@@", 92 "@@@STEP_LOG_LINE@python.inline@@@@",
150 "@@@STEP_LOG_LINE@python.inline@import sys, os@@@", 93 "@@@STEP_LOG_LINE@python.inline@import sys, os@@@",
151 "@@@STEP_LOG_LINE@python.inline@path = sys.argv[1]@@@", 94 "@@@STEP_LOG_LINE@python.inline@path = sys.argv[1]@@@",
152 "@@@STEP_LOG_LINE@python.inline@mode = int(sys.argv[2])@@@", 95 "@@@STEP_LOG_LINE@python.inline@mode = int(sys.argv[2])@@@",
153 "@@@STEP_LOG_LINE@python.inline@if not os.path.isdir(path):@@@", 96 "@@@STEP_LOG_LINE@python.inline@if not os.path.isdir(path):@@@",
154 "@@@STEP_LOG_LINE@python.inline@ if os.path.exists(path):@@@", 97 "@@@STEP_LOG_LINE@python.inline@ if os.path.exists(path):@@@",
155 "@@@STEP_LOG_LINE@python.inline@ print \"%s exists but is not a dir\" % path@@@", 98 "@@@STEP_LOG_LINE@python.inline@ print \"%s exists but is not a dir\" % path@@@",
156 "@@@STEP_LOG_LINE@python.inline@ sys.exit(1)@@@", 99 "@@@STEP_LOG_LINE@python.inline@ sys.exit(1)@@@",
157 "@@@STEP_LOG_LINE@python.inline@ os.makedirs(path, mode)@@@", 100 "@@@STEP_LOG_LINE@python.inline@ os.makedirs(path, mode)@@@",
158 "@@@STEP_LOG_END@python.inline@@@" 101 "@@@STEP_LOG_END@python.inline@@@"
159 ] 102 ]
160 }, 103 },
161 { 104 {
162 "cmd": [ 105 "cmd": [
163 "python", 106 "python",
164 "-u", 107 "-u",
165 "[CUSTOM_C:\\_B_WORK]\\skia\\bin\\fetch-gn" 108 "[CUSTOM_C:\\_B_WORK]\\skia\\bin\\fetch-gn"
166 ], 109 ],
167 "cwd": "[CUSTOM_C:\\_B_WORK]\\skia", 110 "cwd": "[CUSTOM_C:\\_B_WORK]\\skia",
168 "env": { 111 "env": {
169 "PATH": "%(PATH)s;RECIPE_PACKAGE_REPO[depot_tools];RECIPE_PACKAGE_REPO[dep ot_tools];RECIPE_PACKAGE_REPO[depot_tools];RECIPE_PACKAGE_REPO[depot_tools]" 112 "PATH": "%(PATH)s;RECIPE_PACKAGE_REPO[depot_tools]"
170 }, 113 },
171 "name": "fetch-gn" 114 "name": "fetch-gn"
172 }, 115 },
173 { 116 {
174 "cmd": [ 117 "cmd": [
175 "gn.bat", 118 "gn.bat",
176 "gen", 119 "gen",
177 "[CUSTOM_C:\\_B_WORK]\\skia\\out\\Build-Win-MSVC-x86-Debug-Trybot\\Debug", 120 "[CUSTOM_C:\\_B_WORK]\\skia\\out\\Build-Win-MSVC-x86-Debug-Trybot\\Debug",
178 "--args=target_cpu=\"x86\" windk=\"[SLAVE_BUILD]\\t\\depot_tools\\win_tool chain\\vs_files\\95ddda401ec5678f15eeed01d2bee08fcbc5ee97\"" 121 "--args=target_cpu=\"x86\" windk=\"[SLAVE_BUILD]\\t\\depot_tools\\win_tool chain\\vs_files\\95ddda401ec5678f15eeed01d2bee08fcbc5ee97\""
179 ], 122 ],
180 "cwd": "[CUSTOM_C:\\_B_WORK]\\skia", 123 "cwd": "[CUSTOM_C:\\_B_WORK]\\skia",
181 "env": { 124 "env": {
182 "PATH": "%(PATH)s;RECIPE_PACKAGE_REPO[depot_tools];RECIPE_PACKAGE_REPO[dep ot_tools];RECIPE_PACKAGE_REPO[depot_tools];RECIPE_PACKAGE_REPO[depot_tools]" 125 "PATH": "%(PATH)s;RECIPE_PACKAGE_REPO[depot_tools]"
183 }, 126 },
184 "name": "gn gen" 127 "name": "gn gen"
185 }, 128 },
186 { 129 {
187 "cmd": [ 130 "cmd": [
188 "ninja.exe", 131 "ninja.exe",
189 "-C", 132 "-C",
190 "[CUSTOM_C:\\_B_WORK]\\skia\\out\\Build-Win-MSVC-x86-Debug-Trybot\\Debug" 133 "[CUSTOM_C:\\_B_WORK]\\skia\\out\\Build-Win-MSVC-x86-Debug-Trybot\\Debug"
191 ], 134 ],
192 "cwd": "[CUSTOM_C:\\_B_WORK]\\skia", 135 "cwd": "[CUSTOM_C:\\_B_WORK]\\skia",
193 "env": { 136 "env": {
194 "PATH": "%(PATH)s;RECIPE_PACKAGE_REPO[depot_tools];RECIPE_PACKAGE_REPO[dep ot_tools];RECIPE_PACKAGE_REPO[depot_tools];RECIPE_PACKAGE_REPO[depot_tools]" 137 "PATH": "%(PATH)s;RECIPE_PACKAGE_REPO[depot_tools]"
195 }, 138 },
196 "name": "ninja" 139 "name": "ninja"
197 }, 140 },
198 { 141 {
199 "cmd": [ 142 "cmd": [
200 "python", 143 "python",
201 "-u", 144 "-u",
202 "import errno\nimport glob\nimport os\nimport shutil\nimport sys\n\nsrc = sys.argv[1]\ndst = sys.argv[2]\nbuild_products_whitelist = ['dm', 'dm.exe', 'get _images_from_skps', 'get_images_from_skps.exe', 'nanobench', 'nanobench.exe', '* .so', '*.dll', '*.dylib', 'skia_launcher', 'lib/*.so', 'iOSShell.app', 'iOSShell .ipa', 'visualbench', 'visualbench.exe', 'vulkan-1.dll']\n\ntry:\n os.makedirs( dst)\nexcept OSError as e:\n if e.errno != errno.EEXIST:\n raise\n\nfor patt ern in build_products_whitelist:\n path = os.path.join(src, pattern)\n for f i n glob.glob(path):\n dst_path = os.path.join(dst, os.path.relpath(f, src))\n if not os.path.isdir(os.path.dirname(dst_path)):\n os.makedirs(os.path.d irname(dst_path))\n print 'Copying build product %s to %s' % (f, dst_path)\n shutil.move(f, dst_path)\n", 145 "import errno\nimport glob\nimport os\nimport shutil\nimport sys\n\nsrc = sys.argv[1]\ndst = sys.argv[2]\nbuild_products_whitelist = ['dm', 'dm.exe', 'get _images_from_skps', 'get_images_from_skps.exe', 'nanobench', 'nanobench.exe', '* .so', '*.dll', '*.dylib', 'skia_launcher', 'lib/*.so', 'iOSShell.app', 'iOSShell .ipa', 'visualbench', 'visualbench.exe', 'vulkan-1.dll']\n\ntry:\n os.makedirs( dst)\nexcept OSError as e:\n if e.errno != errno.EEXIST:\n raise\n\nfor patt ern in build_products_whitelist:\n path = os.path.join(src, pattern)\n for f i n glob.glob(path):\n dst_path = os.path.join(dst, os.path.relpath(f, src))\n if not os.path.isdir(os.path.dirname(dst_path)):\n os.makedirs(os.path.d irname(dst_path))\n print 'Copying build product %s to %s' % (f, dst_path)\n shutil.move(f, dst_path)\n",
203 "[CUSTOM_C:\\_B_WORK]\\skia\\out\\Build-Win-MSVC-x86-Debug-Trybot\\Debug", 146 "[CUSTOM_C:\\_B_WORK]\\skia\\out\\Build-Win-MSVC-x86-Debug-Trybot\\Debug",
204 "[CUSTOM_[SWARM_OUT_DIR]]\\out\\Debug" 147 "[CUSTOM_[SWARM_OUT_DIR]]\\out\\Debug"
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 "@@@STEP_LOG_LINE@python.inline@ pass@@@", 192 "@@@STEP_LOG_LINE@python.inline@ pass@@@",
250 "@@@STEP_LOG_END@python.inline@@@" 193 "@@@STEP_LOG_END@python.inline@@@"
251 ] 194 ]
252 }, 195 },
253 { 196 {
254 "name": "$result", 197 "name": "$result",
255 "recipe_result": null, 198 "recipe_result": null,
256 "status_code": 0 199 "status_code": 0
257 } 200 }
258 ] 201 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698