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

Side by Side Diff: infra/bots/recipes/swarm_compile.expected/Build-Ubuntu-GCC-x86_64-Release-PDFium.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_/_B_WORK]", 7 "[CUSTOM_/_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_/_B_CACHE]'\nsolutions = [{'deps_file': '.DEPS.git', 'managed': False, 'name': 'skia', 'url': 'https://skia.googlesource.com/skia.gi t'}, {'deps_file': '.DEPS.git', 'managed': False, 'name': 'pdfium', 'url': 'http s://pdfium.googlesource.com/pdfium.git'}]" 30 "cache_dir = '[CUSTOM_/_B_CACHE]'\nsolutions = [{'deps_file': '.DEPS.git', 'managed': False, 'name': 'skia', 'url': 'https://skia.googlesource.com/skia.gi t'}, {'deps_file': '.DEPS.git', 'managed': False, 'name': 'pdfium', 'url': 'http s://pdfium.googlesource.com/pdfium.git'}]",
31 "--patch_root",
32 "skia",
33 "--revision_mapping_file",
34 "{\"skia\": \"got_revision\"}",
35 "--git-cache-dir",
36 "[CUSTOM_/_B_CACHE]",
37 "--output_json",
38 "/path/to/tmp/json",
39 "--revision",
40 "pdfium@origin/master",
41 "--revision",
42 "skia@abc123",
43 "--output_manifest"
32 ], 44 ],
33 "cwd": "[CUSTOM_/_B_WORK]", 45 "cwd": "[CUSTOM_/_B_WORK]",
34 "env": { 46 "env": {
35 "BUILDTYPE": "Release", 47 "BUILDTYPE": "Release",
36 "CHROME_HEADLESS": "1", 48 "CHROME_HEADLESS": "1",
37 "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]", 49 "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]",
38 "SKIA_OUT": "[CUSTOM_/_B_WORK]/skia/out/Build-Ubuntu-GCC-x86_64-Release-PD Fium" 50 "SKIA_OUT": "[CUSTOM_/_B_WORK]/skia/out/Build-Ubuntu-GCC-x86_64-Release-PD Fium"
39 }, 51 },
40 "name": "gclient setup" 52 "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 "-j8",
52 "--reset",
53 "--force",
54 "--upstream",
55 "--no-nag-max",
56 "--delete_unversioned_trees",
57 "--revision",
58 "skia@abc123",
59 "--revision",
60 "pdfium@origin/master",
61 "--output-json",
62 "/path/to/tmp/json"
63 ],
64 "cwd": "[CUSTOM_/_B_WORK]",
65 "env": {
66 "BUILDTYPE": "Release",
67 "CHROME_HEADLESS": "1",
68 "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]:RECIPE_PACKAGE_REPO[dep ot_tools]",
69 "SKIA_OUT": "[CUSTOM_/_B_WORK]/skia/out/Build-Ubuntu-GCC-x86_64-Release-PD Fium"
70 },
71 "name": "gclient sync",
72 "~followup_annotations": [ 53 "~followup_annotations": [
54 "@@@STEP_TEXT@Some step text@@@",
73 "@@@STEP_LOG_LINE@json.output@{@@@", 55 "@@@STEP_LOG_LINE@json.output@{@@@",
74 "@@@STEP_LOG_LINE@json.output@ \"solutions\": {@@@", 56 "@@@STEP_LOG_LINE@json.output@ \"did_run\": true, @@@",
75 "@@@STEP_LOG_LINE@json.output@ \"pdfium/\": {@@@", 57 "@@@STEP_LOG_LINE@json.output@ \"fixed_revisions\": {@@@",
76 "@@@STEP_LOG_LINE@json.output@ \"revision\": \"d69d97171c17fdb12a52f7 8847e2ee2f0594eff1\"@@@", 58 "@@@STEP_LOG_LINE@json.output@ \"pdfium\": \"origin/master\", @@@",
77 "@@@STEP_LOG_LINE@json.output@ }, @@@", 59 "@@@STEP_LOG_LINE@json.output@ \"skia\": \"abc123\"@@@",
78 "@@@STEP_LOG_LINE@json.output@ \"skia/\": {@@@", 60 "@@@STEP_LOG_LINE@json.output@ }, @@@",
61 "@@@STEP_LOG_LINE@json.output@ \"manifest\": {@@@",
62 "@@@STEP_LOG_LINE@json.output@ \"skia\": {@@@",
63 "@@@STEP_LOG_LINE@json.output@ \"repository\": \"https://fake.org/ski a.git\", @@@",
79 "@@@STEP_LOG_LINE@json.output@ \"revision\": \"9046e2e693bb92a76e972b 694580e5d17ad10748\"@@@", 64 "@@@STEP_LOG_LINE@json.output@ \"revision\": \"9046e2e693bb92a76e972b 694580e5d17ad10748\"@@@",
80 "@@@STEP_LOG_LINE@json.output@ }@@@", 65 "@@@STEP_LOG_LINE@json.output@ }@@@",
81 "@@@STEP_LOG_LINE@json.output@ }@@@", 66 "@@@STEP_LOG_LINE@json.output@ }, @@@",
67 "@@@STEP_LOG_LINE@json.output@ \"patch_failure\": false, @@@",
68 "@@@STEP_LOG_LINE@json.output@ \"patch_root\": \"skia\", @@@",
69 "@@@STEP_LOG_LINE@json.output@ \"properties\": {@@@",
70 "@@@STEP_LOG_LINE@json.output@ \"got_revision\": \"9046e2e693bb92a76e97 2b694580e5d17ad10748\", @@@",
71 "@@@STEP_LOG_LINE@json.output@ \"got_revision_cp\": \"refs/heads/master @{#164710}\"@@@",
72 "@@@STEP_LOG_LINE@json.output@ }, @@@",
73 "@@@STEP_LOG_LINE@json.output@ \"root\": \"skia\", @@@",
74 "@@@STEP_LOG_LINE@json.output@ \"step_text\": \"Some step text\"@@@",
82 "@@@STEP_LOG_LINE@json.output@}@@@", 75 "@@@STEP_LOG_LINE@json.output@}@@@",
83 "@@@STEP_LOG_END@json.output@@@", 76 "@@@STEP_LOG_END@json.output@@@",
84 "@@@SET_BUILD_PROPERTY@got_revision@\"9046e2e693bb92a76e972b694580e5d17ad1 0748\"@@@" 77 "@@@SET_BUILD_PROPERTY@got_revision@\"9046e2e693bb92a76e972b694580e5d17ad1 0748\"@@@",
78 "@@@SET_BUILD_PROPERTY@got_revision_cp@\"refs/heads/master@{#164710}\"@@@"
85 ] 79 ]
86 }, 80 },
87 { 81 {
88 "cmd": [ 82 "cmd": [
89 "python",
90 "-u",
91 "RECIPE_PACKAGE_REPO[depot_tools]/gclient.py",
92 "recurse",
93 "git",
94 "config",
95 "user.name",
96 "local_bot"
97 ],
98 "cwd": "[CUSTOM_/_B_WORK]",
99 "env": {
100 "BUILDTYPE": "Release",
101 "CHROME_HEADLESS": "1",
102 "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]:RECIPE_PACKAGE_REPO[dep ot_tools]:RECIPE_PACKAGE_REPO[depot_tools]",
103 "SKIA_OUT": "[CUSTOM_/_B_WORK]/skia/out/Build-Ubuntu-GCC-x86_64-Release-PD Fium"
104 },
105 "name": "gclient recurse (git config user.name)"
106 },
107 {
108 "cmd": [
109 "python",
110 "-u",
111 "RECIPE_PACKAGE_REPO[depot_tools]/gclient.py",
112 "recurse",
113 "git",
114 "config",
115 "user.email",
116 "local_bot@example.com"
117 ],
118 "cwd": "[CUSTOM_/_B_WORK]",
119 "env": {
120 "BUILDTYPE": "Release",
121 "CHROME_HEADLESS": "1",
122 "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]:RECIPE_PACKAGE_REPO[dep ot_tools]:RECIPE_PACKAGE_REPO[depot_tools]:RECIPE_PACKAGE_REPO[depot_tools]",
123 "SKIA_OUT": "[CUSTOM_/_B_WORK]/skia/out/Build-Ubuntu-GCC-x86_64-Release-PD Fium"
124 },
125 "name": "gclient recurse (git config user.email)"
126 },
127 {
128 "cmd": [
129 "gclient", 83 "gclient",
130 "runhook", 84 "runhook",
131 "gn_linux64" 85 "gn_linux64"
132 ], 86 ],
133 "cwd": "[CUSTOM_/_B_WORK]/pdfium", 87 "cwd": "[CUSTOM_/_B_WORK]/pdfium",
134 "env": { 88 "env": {
135 "BUILDTYPE": "Release", 89 "BUILDTYPE": "Release",
136 "CHROME_HEADLESS": "1", 90 "CHROME_HEADLESS": "1",
137 "GYP_DEFINES": "", 91 "GYP_DEFINES": "",
138 "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]:RECIPE_PACKAGE_REPO[dep ot_tools]:RECIPE_PACKAGE_REPO[depot_tools]:RECIPE_PACKAGE_REPO[depot_tools]", 92 "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]",
139 "SKIA_OUT": "[CUSTOM_/_B_WORK]/skia/out/Build-Ubuntu-GCC-x86_64-Release-PD Fium" 93 "SKIA_OUT": "[CUSTOM_/_B_WORK]/skia/out/Build-Ubuntu-GCC-x86_64-Release-PD Fium"
140 }, 94 },
141 "name": "runhook" 95 "name": "runhook"
142 }, 96 },
143 { 97 {
144 "cmd": [ 98 "cmd": [
145 "python", 99 "python",
146 "build/linux/sysroot_scripts/install-sysroot.py", 100 "build/linux/sysroot_scripts/install-sysroot.py",
147 "--arch=amd64" 101 "--arch=amd64"
148 ], 102 ],
149 "cwd": "[CUSTOM_/_B_WORK]/pdfium", 103 "cwd": "[CUSTOM_/_B_WORK]/pdfium",
150 "env": { 104 "env": {
151 "BUILDTYPE": "Release", 105 "BUILDTYPE": "Release",
152 "CHROME_HEADLESS": "1", 106 "CHROME_HEADLESS": "1",
153 "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]:RECIPE_PACKAGE_REPO[dep ot_tools]:RECIPE_PACKAGE_REPO[depot_tools]:RECIPE_PACKAGE_REPO[depot_tools]", 107 "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]",
154 "SKIA_OUT": "[CUSTOM_/_B_WORK]/skia/out/Build-Ubuntu-GCC-x86_64-Release-PD Fium" 108 "SKIA_OUT": "[CUSTOM_/_B_WORK]/skia/out/Build-Ubuntu-GCC-x86_64-Release-PD Fium"
155 }, 109 },
156 "name": "sysroot" 110 "name": "sysroot"
157 }, 111 },
158 { 112 {
159 "cmd": [ 113 "cmd": [
160 "gn", 114 "gn",
161 "gen", 115 "gen",
162 "out/skia", 116 "out/skia",
163 "--args=pdf_use_skia=true pdf_is_standalone=true clang_use_chrome_plugins= false is_component_build=false is_debug=false" 117 "--args=pdf_use_skia=true pdf_is_standalone=true clang_use_chrome_plugins= false is_component_build=false is_debug=false"
164 ], 118 ],
165 "cwd": "[CUSTOM_/_B_WORK]/pdfium", 119 "cwd": "[CUSTOM_/_B_WORK]/pdfium",
166 "env": { 120 "env": {
167 "BUILDTYPE": "Release", 121 "BUILDTYPE": "Release",
168 "CHROME_HEADLESS": "1", 122 "CHROME_HEADLESS": "1",
169 "CHROMIUM_BUILDTOOLS_PATH": "[CUSTOM_/_B_WORK]/pdfium/buildtools", 123 "CHROMIUM_BUILDTOOLS_PATH": "[CUSTOM_/_B_WORK]/pdfium/buildtools",
170 "GYP_DEFINES": "", 124 "GYP_DEFINES": "",
171 "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]",
172 "SKIA_OUT": "[CUSTOM_/_B_WORK]/skia/out/Build-Ubuntu-GCC-x86_64-Release-PD Fium" 126 "SKIA_OUT": "[CUSTOM_/_B_WORK]/skia/out/Build-Ubuntu-GCC-x86_64-Release-PD Fium"
173 }, 127 },
174 "name": "gn_gen" 128 "name": "gn_gen"
175 }, 129 },
176 { 130 {
177 "cmd": [ 131 "cmd": [
178 "python", 132 "python",
179 "-u", 133 "-u",
180 "\nimport shutil\nimport sys\nshutil.copy(sys.argv[1], sys.argv[2])\n", 134 "\nimport shutil\nimport sys\nshutil.copy(sys.argv[1], sys.argv[2])\n",
181 "[CUSTOM_/_B_WORK]/pdfium/DEPS", 135 "[CUSTOM_/_B_WORK]/pdfium/DEPS",
(...skipping 13 matching lines...) Expand all
195 }, 149 },
196 { 150 {
197 "cmd": [ 151 "cmd": [
198 "gclient", 152 "gclient",
199 "sync" 153 "sync"
200 ], 154 ],
201 "cwd": "[CUSTOM_/_B_WORK]/pdfium", 155 "cwd": "[CUSTOM_/_B_WORK]/pdfium",
202 "env": { 156 "env": {
203 "BUILDTYPE": "Release", 157 "BUILDTYPE": "Release",
204 "CHROME_HEADLESS": "1", 158 "CHROME_HEADLESS": "1",
205 "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]:RECIPE_PACKAGE_REPO[dep ot_tools]:RECIPE_PACKAGE_REPO[depot_tools]:RECIPE_PACKAGE_REPO[depot_tools]", 159 "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]",
206 "SKIA_OUT": "[CUSTOM_/_B_WORK]/skia/out/Build-Ubuntu-GCC-x86_64-Release-PD Fium" 160 "SKIA_OUT": "[CUSTOM_/_B_WORK]/skia/out/Build-Ubuntu-GCC-x86_64-Release-PD Fium"
207 }, 161 },
208 "name": "sync_pdfium" 162 "name": "sync_pdfium"
209 }, 163 },
210 { 164 {
211 "cmd": [ 165 "cmd": [
212 "ninja", 166 "ninja",
213 "-C", 167 "-C",
214 "out/skia", 168 "out/skia",
215 "-j100" 169 "-j100"
216 ], 170 ],
217 "cwd": "[CUSTOM_/_B_WORK]/pdfium", 171 "cwd": "[CUSTOM_/_B_WORK]/pdfium",
218 "env": { 172 "env": {
219 "BUILDTYPE": "Release", 173 "BUILDTYPE": "Release",
220 "CHROME_HEADLESS": "1", 174 "CHROME_HEADLESS": "1",
221 "CHROMIUM_BUILDTOOLS_PATH": "[CUSTOM_/_B_WORK]/pdfium/buildtools", 175 "CHROMIUM_BUILDTOOLS_PATH": "[CUSTOM_/_B_WORK]/pdfium/buildtools",
222 "GYP_DEFINES": "", 176 "GYP_DEFINES": "",
223 "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]:RECIPE_PACKAGE_REPO[dep ot_tools]:RECIPE_PACKAGE_REPO[depot_tools]:RECIPE_PACKAGE_REPO[depot_tools]", 177 "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]",
224 "SKIA_OUT": "[CUSTOM_/_B_WORK]/skia/out/Build-Ubuntu-GCC-x86_64-Release-PD Fium" 178 "SKIA_OUT": "[CUSTOM_/_B_WORK]/skia/out/Build-Ubuntu-GCC-x86_64-Release-PD Fium"
225 }, 179 },
226 "name": "build_pdfium" 180 "name": "build_pdfium"
227 }, 181 },
228 { 182 {
229 "cmd": [ 183 "cmd": [
230 "python", 184 "python",
231 "-u", 185 "-u",
232 "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", 186 "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",
233 "[CUSTOM_/_B_WORK]/skia/out/Build-Ubuntu-GCC-x86_64-Release-PDFium/Release ", 187 "[CUSTOM_/_B_WORK]/skia/out/Build-Ubuntu-GCC-x86_64-Release-PDFium/Release ",
(...skipping 27 matching lines...) Expand all
261 "@@@STEP_LOG_LINE@python.inline@ shutil.move(f, dst_path)@@@", 215 "@@@STEP_LOG_LINE@python.inline@ shutil.move(f, dst_path)@@@",
262 "@@@STEP_LOG_END@python.inline@@@" 216 "@@@STEP_LOG_END@python.inline@@@"
263 ] 217 ]
264 }, 218 },
265 { 219 {
266 "name": "$result", 220 "name": "$result",
267 "recipe_result": null, 221 "recipe_result": null,
268 "status_code": 0 222 "status_code": 0
269 } 223 }
270 ] 224 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698