1717 SEGMENT_DOWNLOAD_TIMEOUT_MINS : 1
1818
1919jobs :
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
2222 # 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
2525 runs-on : ubuntu-latest
2626 steps :
2727 - uses : actions/checkout@v4
5151 **/node_modules
5252 key : runtime-node_modules-v6-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
5353
54- runtime_compiler_yarn_cache :
55- name : Cache Runtime, Compiler
54+ runtime_compiler_node_modules_cache :
55+ name : Cache Runtime, Compiler node_modules
5656 runs-on : ubuntu-latest
5757 steps :
5858 - uses : actions/checkout@v4
@@ -105,7 +105,7 @@ jobs:
105105
106106 flow :
107107 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 ]
109109 runs-on : ubuntu-latest
110110 strategy :
111111 fail-fast : false
@@ -136,7 +136,7 @@ jobs:
136136 # ----- FIZZ -----
137137 check_generated_fizz_runtime :
138138 name : Confirm generated inline Fizz runtime is up to date
139- needs : [runtime_yarn_cache ]
139+ needs : [runtime_node_modules_cache ]
140140 runs-on : ubuntu-latest
141141 steps :
142142 - uses : actions/checkout@v4
@@ -165,7 +165,7 @@ jobs:
165165 # ----- FEATURE FLAGS -----
166166 flags :
167167 name : Check flags
168- needs : [runtime_yarn_cache ]
168+ needs : [runtime_node_modules_cache ]
169169 runs-on : ubuntu-latest
170170 steps :
171171 - uses : actions/checkout@v4
@@ -192,7 +192,7 @@ jobs:
192192 # ----- TESTS -----
193193 test :
194194 name : yarn test ${{ matrix.params }} (Shard ${{ matrix.shard }})
195- needs : [runtime_compiler_yarn_cache ]
195+ needs : [runtime_compiler_node_modules_cache ]
196196 runs-on : ubuntu-latest
197197 strategy :
198198 fail-fast : false
@@ -252,13 +252,13 @@ jobs:
252252 # ----- BUILD -----
253253 build_and_lint :
254254 name : yarn build and lint
255- needs : [runtime_compiler_yarn_cache ]
255+ needs : [runtime_compiler_node_modules_cache ]
256256 runs-on : ubuntu-latest
257257 strategy :
258258 fail-fast : false
259259 matrix :
260260 # 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 ]
262262 release_channel : [stable, experimental]
263263 steps :
264264 - uses : actions/checkout@v4
@@ -288,7 +288,7 @@ jobs:
288288 if : steps.node_modules.outputs.cache-hit != 'true'
289289 - run : yarn --cwd compiler install --frozen-lockfile
290290 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
292292 env :
293293 CI : github
294294 RELEASE_CHANNEL : ${{ matrix.release_channel }}
@@ -305,7 +305,7 @@ jobs:
305305
306306 test_build :
307307 name : yarn test-build
308- needs : [build_and_lint, runtime_compiler_yarn_cache ]
308+ needs : [build_and_lint, runtime_compiler_node_modules_cache ]
309309 strategy :
310310 fail-fast : false
311311 matrix :
@@ -380,7 +380,7 @@ jobs:
380380
381381 process_artifacts_combined :
382382 name : Process artifacts combined
383- needs : [build_and_lint, runtime_yarn_cache ]
383+ needs : [build_and_lint, runtime_node_modules_cache ]
384384 runs-on : ubuntu-latest
385385 steps :
386386 - uses : actions/checkout@v4
@@ -429,7 +429,7 @@ jobs:
429429
430430 check_error_codes :
431431 name : Search build artifacts for unminified errors
432- needs : [build_and_lint, runtime_yarn_cache ]
432+ needs : [build_and_lint, runtime_node_modules_cache ]
433433 runs-on : ubuntu-latest
434434 steps :
435435 - uses : actions/checkout@v4
@@ -466,7 +466,7 @@ jobs:
466466
467467 check_release_dependencies :
468468 name : Check release dependencies
469- needs : [build_and_lint, runtime_yarn_cache ]
469+ needs : [build_and_lint, runtime_node_modules_cache ]
470470 runs-on : ubuntu-latest
471471 steps :
472472 - uses : actions/checkout@v4
@@ -604,7 +604,7 @@ jobs:
604604 # ----- DEVTOOLS -----
605605 build_devtools_and_process_artifacts :
606606 name : Build DevTools and process artifacts
607- needs : [build_and_lint, runtime_yarn_cache ]
607+ needs : [build_and_lint, runtime_node_modules_cache ]
608608 runs-on : ubuntu-latest
609609 strategy :
610610 fail-fast : false
@@ -661,7 +661,7 @@ jobs:
661661
662662 run_devtools_e2e_tests :
663663 name : Run DevTools e2e tests
664- needs : [build_and_lint, runtime_yarn_cache ]
664+ needs : [build_and_lint, runtime_node_modules_cache ]
665665 runs-on : ubuntu-latest
666666 steps :
667667 - uses : actions/checkout@v4
@@ -700,7 +700,7 @@ jobs:
700700 sizebot :
701701 if : ${{ github.event_name == 'pull_request' && github.ref_name != 'main' && github.event.pull_request.base.ref == 'main' }}
702702 name : Run sizebot
703- needs : [build_and_lint, runtime_yarn_cache ]
703+ needs : [build_and_lint, runtime_node_modules_cache ]
704704 runs-on : ubuntu-latest
705705 steps :
706706 - uses : actions/checkout@v4
0 commit comments