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

Side by Side Diff: infra/bots/recipes/swarm_presubmit.expected/presubmit.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
« no previous file with comments | « infra/bots/recipes/swarm_infra.expected/infra_tests.json ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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'}]" 30 "cache_dir = '[CUSTOM_/_B_CACHE]'\nsolutions = [{'deps_file': '.DEPS.git', 'managed': False, 'name': 'skia', 'url': 'https://skia.googlesource.com/skia.gi t'}]",
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 "skia@abc123",
41 "--output_manifest"
32 ], 42 ],
33 "cwd": "[CUSTOM_/_B_WORK]", 43 "cwd": "[CUSTOM_/_B_WORK]",
34 "env": { 44 "env": {
35 "BUILDTYPE": "Release", 45 "BUILDTYPE": "Release",
36 "CHROME_HEADLESS": "1", 46 "CHROME_HEADLESS": "1",
37 "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]", 47 "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]",
38 "SKIA_OUT": "[SLAVE_BUILD]/out" 48 "SKIA_OUT": "[SLAVE_BUILD]/out"
39 }, 49 },
40 "name": "gclient setup" 50 "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 "--output-json",
60 "/path/to/tmp/json"
61 ],
62 "cwd": "[CUSTOM_/_B_WORK]",
63 "env": {
64 "BUILDTYPE": "Release",
65 "CHROME_HEADLESS": "1",
66 "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]:RECIPE_PACKAGE_REPO[dep ot_tools]",
67 "SKIA_OUT": "[SLAVE_BUILD]/out"
68 },
69 "name": "gclient sync",
70 "~followup_annotations": [ 51 "~followup_annotations": [
52 "@@@STEP_TEXT@Some step text@@@",
71 "@@@STEP_LOG_LINE@json.output@{@@@", 53 "@@@STEP_LOG_LINE@json.output@{@@@",
72 "@@@STEP_LOG_LINE@json.output@ \"solutions\": {@@@", 54 "@@@STEP_LOG_LINE@json.output@ \"did_run\": true, @@@",
73 "@@@STEP_LOG_LINE@json.output@ \"skia/\": {@@@", 55 "@@@STEP_LOG_LINE@json.output@ \"fixed_revisions\": {@@@",
56 "@@@STEP_LOG_LINE@json.output@ \"skia\": \"abc123\"@@@",
57 "@@@STEP_LOG_LINE@json.output@ }, @@@",
58 "@@@STEP_LOG_LINE@json.output@ \"manifest\": {@@@",
59 "@@@STEP_LOG_LINE@json.output@ \"skia\": {@@@",
60 "@@@STEP_LOG_LINE@json.output@ \"repository\": \"https://fake.org/ski a.git\", @@@",
74 "@@@STEP_LOG_LINE@json.output@ \"revision\": \"9046e2e693bb92a76e972b 694580e5d17ad10748\"@@@", 61 "@@@STEP_LOG_LINE@json.output@ \"revision\": \"9046e2e693bb92a76e972b 694580e5d17ad10748\"@@@",
75 "@@@STEP_LOG_LINE@json.output@ }@@@", 62 "@@@STEP_LOG_LINE@json.output@ }@@@",
76 "@@@STEP_LOG_LINE@json.output@ }@@@", 63 "@@@STEP_LOG_LINE@json.output@ }, @@@",
64 "@@@STEP_LOG_LINE@json.output@ \"patch_failure\": false, @@@",
65 "@@@STEP_LOG_LINE@json.output@ \"patch_root\": \"skia\", @@@",
66 "@@@STEP_LOG_LINE@json.output@ \"properties\": {@@@",
67 "@@@STEP_LOG_LINE@json.output@ \"got_revision\": \"9046e2e693bb92a76e97 2b694580e5d17ad10748\", @@@",
68 "@@@STEP_LOG_LINE@json.output@ \"got_revision_cp\": \"refs/heads/master @{#164710}\"@@@",
69 "@@@STEP_LOG_LINE@json.output@ }, @@@",
70 "@@@STEP_LOG_LINE@json.output@ \"root\": \"skia\", @@@",
71 "@@@STEP_LOG_LINE@json.output@ \"step_text\": \"Some step text\"@@@",
77 "@@@STEP_LOG_LINE@json.output@}@@@", 72 "@@@STEP_LOG_LINE@json.output@}@@@",
78 "@@@STEP_LOG_END@json.output@@@", 73 "@@@STEP_LOG_END@json.output@@@",
79 "@@@SET_BUILD_PROPERTY@got_revision@\"9046e2e693bb92a76e972b694580e5d17ad1 0748\"@@@" 74 "@@@SET_BUILD_PROPERTY@got_revision@\"9046e2e693bb92a76e972b694580e5d17ad1 0748\"@@@",
75 "@@@SET_BUILD_PROPERTY@got_revision_cp@\"refs/heads/master@{#164710}\"@@@"
80 ] 76 ]
81 }, 77 },
82 { 78 {
83 "cmd": [ 79 "cmd": [
84 "python",
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_/_B_WORK]",
94 "env": {
95 "BUILDTYPE": "Release",
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": "[SLAVE_BUILD]/out"
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_/_B_WORK]",
114 "env": {
115 "BUILDTYPE": "Release",
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": "[SLAVE_BUILD]/out"
119 },
120 "name": "gclient recurse (git config user.email)"
121 },
122 {
123 "cmd": [
124 "git", 80 "git",
125 "checkout", 81 "checkout",
126 "-b", 82 "-b",
127 "tmp_00000000-0000-0000-0000-000000000000" 83 "tmp_00000000-0000-0000-0000-000000000000"
128 ], 84 ],
129 "cwd": "[CUSTOM_/_B_WORK]/skia", 85 "cwd": "[CUSTOM_/_B_WORK]/skia",
130 "name": "create git branch" 86 "name": "create git branch"
131 }, 87 },
132 { 88 {
133 "cmd": [ 89 "cmd": [
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 ], 136 ],
181 "cwd": "[CUSTOM_/_B_WORK]/skia", 137 "cwd": "[CUSTOM_/_B_WORK]/skia",
182 "name": "delete git branch" 138 "name": "delete git branch"
183 }, 139 },
184 { 140 {
185 "name": "$result", 141 "name": "$result",
186 "recipe_result": null, 142 "recipe_result": null,
187 "status_code": 0 143 "status_code": 0
188 } 144 }
189 ] 145 ]
OLDNEW
« no previous file with comments | « infra/bots/recipes/swarm_infra.expected/infra_tests.json ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698