@@ -91,61 +91,22 @@ jobs:
91
91
- *restore_node_modules
92
92
- run : node ./scripts/tasks/flow-ci
93
93
94
- RELEASE_CHANNEL_stable_yarn_build :
94
+ scrape_warning_messages :
95
95
docker : *docker
96
96
environment : *environment
97
- parallelism : *TEST_PARALLELISM
98
- steps :
99
- - checkout
100
- - run : yarn workspaces info | head -n -1 > workspace_info.txt
101
- - *restore_node_modules
102
- - run :
103
- environment :
104
- RELEASE_CHANNEL : stable
105
- command : |
106
- ./scripts/circleci/add_build_info_json.sh
107
- ./scripts/circleci/update_package_versions.sh
108
- yarn build
109
- - run : echo "stable" >> build/RELEASE_CHANNEL
110
- - persist_to_workspace :
111
- root : build
112
- paths :
113
- - RELEASE_CHANNEL
114
- - facebook-www
115
- - facebook-react-native
116
- - facebook-relay
117
- - node_modules
118
- - react-native
119
- - dist
120
- - sizes/*.json
121
97
122
- yarn_build :
123
- docker : *docker
124
- environment : *environment
125
- parallelism : 20
126
98
steps :
127
99
- checkout
128
100
- run : yarn workspaces info | head -n -1 > workspace_info.txt
129
101
- *restore_node_modules
130
102
- run :
131
- environment :
132
- RELEASE_CHANNEL : experimental
133
103
command : |
134
- ./scripts/circleci/add_build_info_json.sh
135
- ./scripts/circleci/update_package_versions.sh
136
- yarn build
137
- - run : echo "experimental" >> build/RELEASE_CHANNEL
104
+ mkdir -p ./build
105
+ node ./scripts/print-warnings/print-warnings.js > build/WARNINGS
138
106
- persist_to_workspace :
139
- root : build
107
+ root : .
140
108
paths :
141
- - RELEASE_CHANNEL
142
- - facebook-www
143
- - facebook-react-native
144
- - facebook-relay
145
- - node_modules
146
- - react-native
147
- - dist
148
- - sizes/*.json
109
+ - build
149
110
150
111
yarn_build_combined :
151
112
docker : *docker
@@ -159,7 +120,7 @@ jobs:
159
120
- persist_to_workspace :
160
121
root : .
161
122
paths :
162
- - build2
123
+ - build
163
124
164
125
get_base_build :
165
126
docker : *docker
@@ -174,7 +135,15 @@ jobs:
174
135
git fetch origin main
175
136
cd ./scripts/release && yarn && cd ../../
176
137
scripts/release/download-experimental-build.js --commit=$(git merge-base HEAD origin/main)
177
- mv ./build2 ./base-build
138
+ mv ./build ./base-build
139
+ - run :
140
+ # TODO: The `download-experimental-build` script copies the npm
141
+ # packages into the `node_modules` directory. This is a historical
142
+ # quirk of how the release script works. Let's pretend they
143
+ # don't exist.
144
+ name : Delete extraneous files
145
+ command : rm -rf ./base-build/node_modules
146
+
178
147
- persist_to_workspace :
179
148
root : .
180
149
paths :
@@ -189,11 +158,15 @@ jobs:
189
158
at : .
190
159
- run : yarn workspaces info | head -n -1 > workspace_info.txt
191
160
- *restore_node_modules
192
- - run : echo "<< pipeline.git.revision >>" >> build2 /COMMIT_SHA
161
+ - run : echo "<< pipeline.git.revision >>" >> build /COMMIT_SHA
193
162
# Compress build directory into a single tarball for easy download
194
- - run : tar -zcvf ./build2.tgz ./build2
163
+ - run : tar -zcvf ./build.tgz ./build
164
+ # TODO: Migrate scripts to use `build` directory instead of `build2`
165
+ - run : cp ./build.tgz ./build2.tgz
195
166
- store_artifacts :
196
167
path : ./build2.tgz
168
+ - store_artifacts :
169
+ path : ./build.tgz
197
170
198
171
sizebot :
199
172
docker : *docker
@@ -202,7 +175,7 @@ jobs:
202
175
- checkout
203
176
- attach_workspace :
204
177
at : .
205
- - run : echo "<< pipeline.git.revision >>" >> build2 /COMMIT_SHA
178
+ - run : echo "<< pipeline.git.revision >>" >> build /COMMIT_SHA
206
179
- run : yarn workspaces info | head -n -1 > workspace_info.txt
207
180
- *restore_node_modules
208
181
- run :
@@ -213,9 +186,9 @@ jobs:
213
186
environment : *environment
214
187
steps :
215
188
- checkout
216
- - attach_workspace : *attach_workspace
189
+ - attach_workspace :
190
+ at : .
217
191
- run : yarn workspaces info | head -n -1 > workspace_info.txt
218
- - *restore_yarn_cache
219
192
- *restore_node_modules
220
193
- run :
221
194
name : Install Packages
@@ -227,48 +200,6 @@ jobs:
227
200
- store_artifacts :
228
201
path : ./build/devtools.tgz
229
202
230
- build_devtools_scheduling_profiler :
231
- docker : *docker
232
- environment : *environment
233
- steps :
234
- - checkout
235
- - attach_workspace : *attach_workspace
236
- - run : yarn workspaces info | head -n -1 > workspace_info.txt
237
- - *restore_yarn_cache
238
- - *restore_node_modules
239
- - run :
240
- name : Install Packages
241
- command : yarn --frozen-lockfile --cache-folder ~/.cache/yarn
242
- - run :
243
- name : Build and archive
244
- command : |
245
- mkdir -p build/devtools
246
- cd packages/react-devtools-scheduling-profiler
247
- yarn build
248
- cd dist
249
- tar -zcvf ../../../build/devtools-scheduling-profiler.tgz .
250
- - store_artifacts :
251
- path : ./build/devtools-scheduling-profiler.tgz
252
- - persist_to_workspace :
253
- root : packages/react-devtools-scheduling-profiler
254
- paths :
255
- - dist
256
-
257
- deploy_devtools_scheduling_profiler :
258
- docker : *docker
259
- environment : *environment
260
- steps :
261
- - checkout
262
- - attach_workspace :
263
- at : packages/react-devtools-scheduling-profiler
264
- - run : yarn workspaces info | head -n -1 > workspace_info.txt
265
- - *restore_node_modules
266
- - run :
267
- name : Deploy
268
- command : |
269
- cd packages/react-devtools-scheduling-profiler
270
- yarn vercel deploy dist --prod --confirm --token $SCHEDULING_PROFILER_DEPLOY_VERCEL_TOKEN
271
-
272
203
yarn_lint_build :
273
204
docker : *docker
274
205
environment : *environment
@@ -306,14 +237,18 @@ jobs:
306
237
at : .
307
238
- run : yarn workspaces info | head -n -1 > workspace_info.txt
308
239
- *restore_node_modules
240
+ - run :
241
+ name : Install nested packages from Yarn cache
242
+ command : yarn --frozen-lockfile --cache-folder ~/.cache/yarn
309
243
- run : yarn test --build <<parameters.args>> --ci
310
244
311
245
RELEASE_CHANNEL_stable_yarn_test_dom_fixtures :
312
246
docker : *docker
313
247
environment : *environment
314
248
steps :
315
249
- checkout
316
- - attach_workspace : *attach_workspace
250
+ - attach_workspace :
251
+ at : .
317
252
- run : yarn workspaces info | head -n -1 > workspace_info.txt
318
253
- *restore_node_modules
319
254
- run :
@@ -381,40 +316,6 @@ jobs:
381
316
382
317
workflows :
383
318
version : 2
384
- stable :
385
- unless : << pipeline.parameters.prerelease_commit_sha >>
386
- jobs :
387
- - setup
388
- - yarn_lint :
389
- requires :
390
- - setup
391
- - RELEASE_CHANNEL_stable_yarn_build :
392
- requires :
393
- - setup
394
- - RELEASE_CHANNEL_stable_yarn_test_dom_fixtures :
395
- requires :
396
- - RELEASE_CHANNEL_stable_yarn_build
397
-
398
- experimental :
399
- unless : << pipeline.parameters.prerelease_commit_sha >>
400
- jobs :
401
- - setup
402
- - yarn_build :
403
- requires :
404
- - setup
405
- - build_devtools_and_process_artifacts :
406
- requires :
407
- - yarn_build
408
- - build_devtools_scheduling_profiler :
409
- requires :
410
- - yarn_build
411
- - deploy_devtools_scheduling_profiler :
412
- requires :
413
- - build_devtools_scheduling_profiler
414
- filters :
415
- branches :
416
- only :
417
- - main
418
319
419
320
# New workflow that will replace "stable" and "experimental"
420
321
build_and_test :
@@ -429,6 +330,9 @@ workflows:
429
330
- sync_reconciler_forks :
430
331
requires :
431
332
- setup
333
+ - yarn_lint :
334
+ requires :
335
+ - setup
432
336
- yarn_test :
433
337
requires :
434
338
- setup
@@ -453,11 +357,16 @@ workflows:
453
357
454
358
# TODO: Test more persistent configurations?
455
359
- ' -r=stable --env=development --persistent'
360
+ - ' -r=experimental --env=development --persistent'
456
361
- yarn_build_combined :
457
362
requires :
458
363
- setup
364
+ - scrape_warning_messages :
365
+ requires :
366
+ - setup
459
367
- process_artifacts_combined :
460
368
requires :
369
+ - scrape_warning_messages
461
370
- yarn_build_combined
462
371
- yarn_test_build :
463
372
requires :
@@ -505,6 +414,13 @@ workflows:
505
414
- yarn_lint_build :
506
415
requires :
507
416
- yarn_build_combined
417
+ - RELEASE_CHANNEL_stable_yarn_test_dom_fixtures :
418
+ requires :
419
+ - yarn_build_combined
420
+ - build_devtools_and_process_artifacts :
421
+ requires :
422
+ - yarn_build_combined
423
+
508
424
fuzz_tests :
509
425
unless : << pipeline.parameters.prerelease_commit_sha >>
510
426
triggers :
0 commit comments