[ci] Bump build_and_lint to 25 workers (#32674)
Increases number of workers for `build_and_lint`. --- [//]: # (BEGIN SAPLING FOOTER) Stack created with [Sapling](https://sapling-scm.com). Best reviewed with [ReviewStack](https://reviewstack.dev/facebook/react/pull/32674). * #32675 * __->__ #32674
lauren committed
Mar 19, 2025 at 15:41 UTC
891a6332e3dc9e6dae087170996afaea42898484
1 file changed
+20
-20
.github/workflows/runtime_build_and_test.yml
+20
-20
@@ -17,11 +17,11 @@ env:
17
SEGMENT_DOWNLOAD_TIMEOUT_MINS: 1
18
19
jobs:
20
- # ----- YARN CACHE -----
21
- # Centralize the yarn/node_modules cache so it is saved once and each subsequent job only needs to
20
+ # ----- NODE_MODULES CACHE -----
21
+ # Centralize the node_modules cache so it is saved once and each subsequent job only needs to
22
# restore the cache. Prevents race conditions where multiple workflows try to write to the cache.
23
- runtime_yarn_cache:
24
- name: Cache Runtime
23
+ runtime_node_modules_cache:
24
+ name: Cache Runtime node_modules
25
runs-on: ubuntu-latest
26
steps:
27
- uses: actions/checkout@v4
@@ -51,8 +51,8 @@ jobs:
51
**/node_modules
52
key: runtime-node_modules-v6-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
53
54
- runtime_compiler_yarn_cache:
55
- name: Cache Runtime, Compiler
54
+ runtime_compiler_node_modules_cache:
55
+ name: Cache Runtime, Compiler node_modules
56
runs-on: ubuntu-latest
57
steps:
58
- uses: actions/checkout@v4
@@ -105,7 +105,7 @@ jobs:
105
106
flow:
107
name: Flow check ${{ matrix.flow_inline_config_shortname }}
108
- needs: [discover_flow_inline_configs, runtime_yarn_cache]
108
+ needs: [discover_flow_inline_configs, runtime_node_modules_cache]
109
runs-on: ubuntu-latest
110
strategy:
111
fail-fast: false
@@ -136,7 +136,7 @@ jobs:
136
# ----- FIZZ -----
137
check_generated_fizz_runtime:
138
name: Confirm generated inline Fizz runtime is up to date
139
- needs: [runtime_yarn_cache]
139
+ needs: [runtime_node_modules_cache]
140
runs-on: ubuntu-latest
141
steps:
142
- uses: actions/checkout@v4
@@ -165,7 +165,7 @@ jobs:
165
# ----- FEATURE FLAGS -----
166
flags:
167
name: Check flags
168
- needs: [runtime_yarn_cache]
168
+ needs: [runtime_node_modules_cache]
169
runs-on: ubuntu-latest
170
steps:
171
- uses: actions/checkout@v4
@@ -192,7 +192,7 @@ jobs:
192
# ----- TESTS -----
193
test:
194
name: yarn test ${{ matrix.params }} (Shard ${{ matrix.shard }})
195
- needs: [runtime_compiler_yarn_cache]
195
+ needs: [runtime_compiler_node_modules_cache]
196
runs-on: ubuntu-latest
197
strategy:
198
fail-fast: false
@@ -252,13 +252,13 @@ jobs:
252
# ----- BUILD -----
253
build_and_lint:
254
name: yarn build and lint
255
- needs: [runtime_compiler_yarn_cache]
255
+ needs: [runtime_compiler_node_modules_cache]
256
runs-on: ubuntu-latest
257
strategy:
258
fail-fast: false
259
matrix:
260
# yml is dumb. update the --total arg to yarn build if you change the number of workers
261
- worker_id: [0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19]
261
+ worker_id: [0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24]
262
release_channel: [stable, experimental]
263
steps:
264
- uses: actions/checkout@v4
@@ -288,7 +288,7 @@ jobs:
288
if: steps.node_modules.outputs.cache-hit != 'true'
289
- run: yarn --cwd compiler install --frozen-lockfile
290
if: steps.node_modules.outputs.cache-hit != 'true'
291
- - run: yarn build --index=${{ matrix.worker_id }} --total=20 --r=${{ matrix.release_channel }} --ci
291
+ - run: yarn build --index=${{ matrix.worker_id }} --total=25 --r=${{ matrix.release_channel }} --ci
292
env:
293
CI: github
294
RELEASE_CHANNEL: ${{ matrix.release_channel }}
@@ -305,7 +305,7 @@ jobs:
305
306
test_build:
307
name: yarn test-build
308
- needs: [build_and_lint, runtime_compiler_yarn_cache]
308
+ needs: [build_and_lint, runtime_compiler_node_modules_cache]
309
strategy:
310
fail-fast: false
311
matrix:
@@ -380,7 +380,7 @@ jobs:
380
381
process_artifacts_combined:
382
name: Process artifacts combined
383
- needs: [build_and_lint, runtime_yarn_cache]
383
+ needs: [build_and_lint, runtime_node_modules_cache]
384
runs-on: ubuntu-latest
385
steps:
386
- uses: actions/checkout@v4
@@ -429,7 +429,7 @@ jobs:
429
430
check_error_codes:
431
name: Search build artifacts for unminified errors
432
- needs: [build_and_lint, runtime_yarn_cache]
432
+ needs: [build_and_lint, runtime_node_modules_cache]
433
runs-on: ubuntu-latest
434
steps:
435
- uses: actions/checkout@v4
@@ -466,7 +466,7 @@ jobs:
466
467
check_release_dependencies:
468
name: Check release dependencies
469
- needs: [build_and_lint, runtime_yarn_cache]
469
+ needs: [build_and_lint, runtime_node_modules_cache]
470
runs-on: ubuntu-latest
471
steps:
472
- uses: actions/checkout@v4
@@ -604,7 +604,7 @@ jobs:
604
# ----- DEVTOOLS -----
605
build_devtools_and_process_artifacts:
606
name: Build DevTools and process artifacts
607
- needs: [build_and_lint, runtime_yarn_cache]
607
+ needs: [build_and_lint, runtime_node_modules_cache]
608
runs-on: ubuntu-latest
609
strategy:
610
fail-fast: false
@@ -661,7 +661,7 @@ jobs:
661
662
run_devtools_e2e_tests:
663
name: Run DevTools e2e tests
664
- needs: [build_and_lint, runtime_yarn_cache]
664
+ needs: [build_and_lint, runtime_node_modules_cache]
665
runs-on: ubuntu-latest
666
steps:
667
- uses: actions/checkout@v4
@@ -700,7 +700,7 @@ jobs:
700
sizebot:
701
if: ${{ github.event_name == 'pull_request' && github.ref_name != 'main' && github.event.pull_request.base.ref == 'main' }}
702
name: Run sizebot
703
- needs: [build_and_lint, runtime_yarn_cache]
703
+ needs: [build_and_lint, runtime_node_modules_cache]
704
runs-on: ubuntu-latest
705
steps:
706
- uses: actions/checkout@v4