Skip to content

Commit 2a0328b

Browse files
committed
[ci] Bump all node_modules cache keys
I'm seeing a lot of instances of > Failed to save: Unable to reserve cache with key runtime-and-compiler-node_modules-v5-X64-Linux-e454609794aae66da9909c77dd6efa073eceff7f44d6527611f8465e102578b4, another job may be creating this cache. which is adding ~20 seconds to every step. Let's try to bust the cache following this [comment](actions/cache#485 (comment)) and see if that helps.
1 parent b0446ff commit 2a0328b

10 files changed

+31
-31
lines changed

.github/workflows/compiler_playground.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
with:
3939
path: |
4040
**/node_modules
41-
key: compiler-node_modules-v5-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('compiler/**/yarn.lock') }}
41+
key: compiler-node_modules-v6-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('compiler/**/yarn.lock') }}
4242
- run: yarn install --frozen-lockfile
4343
- run: npx playwright install --with-deps chromium
4444
- run: CI=true yarn test

.github/workflows/compiler_prereleases.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
with:
4949
path: |
5050
**/node_modules
51-
key: compiler-node_modules-v5-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('compiler/**/yarn.lock') }}
51+
key: compiler-node_modules-v6-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('compiler/**/yarn.lock') }}
5252
- run: yarn install --frozen-lockfile
5353
- name: Publish packages to npm
5454
run: |

.github/workflows/compiler_typescript.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
with:
4949
path: |
5050
**/node_modules
51-
key: compiler-node_modules-v5-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('compiler/**/yarn.lock') }}
51+
key: compiler-node_modules-v6-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('compiler/**/yarn.lock') }}
5252
- run: yarn install --frozen-lockfile
5353
- run: yarn workspace babel-plugin-react-compiler lint
5454

@@ -69,7 +69,7 @@ jobs:
6969
with:
7070
path: |
7171
**/node_modules
72-
key: compiler-node_modules-v5-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('compiler/**/yarn.lock') }}
72+
key: compiler-node_modules-v6-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('compiler/**/yarn.lock') }}
7373
- run: yarn install --frozen-lockfile
7474
- run: yarn workspace babel-plugin-react-compiler jest
7575

@@ -94,7 +94,7 @@ jobs:
9494
with:
9595
path: |
9696
**/node_modules
97-
key: compiler-node_modules-v5-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('compiler/**/yarn.lock') }}
97+
key: compiler-node_modules-v6-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('compiler/**/yarn.lock') }}
9898
- run: yarn install --frozen-lockfile
9999
- run: xvfb-run -a yarn workspace ${{ matrix.workspace_name }} test
100100
if: runner.os == 'Linux' && matrix.workspace_name == 'react-forgive'

.github/workflows/devtools_regression_tests.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
with:
3232
path: |
3333
**/node_modules
34-
key: runtime-release-node_modules-v5-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock', 'scripts/release/yarn.lock') }}
34+
key: runtime-release-node_modules-v6-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock', 'scripts/release/yarn.lock') }}
3535
- name: Ensure clean build directory
3636
run: rm -rf build
3737
- run: yarn install --frozen-lockfile
@@ -65,7 +65,7 @@ jobs:
6565
with:
6666
path: |
6767
**/node_modules
68-
key: runtime-node_modules-v5-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
68+
key: runtime-node_modules-v6-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
6969
- name: Ensure clean build directory
7070
run: rm -rf build
7171
- run: yarn install --frozen-lockfile
@@ -123,7 +123,7 @@ jobs:
123123
with:
124124
path: |
125125
**/node_modules
126-
key: runtime-node_modules-v5-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
126+
key: runtime-node_modules-v6-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
127127
- run: yarn install --frozen-lockfile
128128
- name: Restore all archived build artifacts
129129
uses: actions/download-artifact@v4
@@ -158,7 +158,7 @@ jobs:
158158
with:
159159
path: |
160160
**/node_modules
161-
key: runtime-node_modules-v5-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
161+
key: runtime-node_modules-v6-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
162162
- run: yarn install --frozen-lockfile
163163
- name: Restore all archived build artifacts
164164
uses: actions/download-artifact@v4

.github/workflows/runtime_build_and_test.yml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ jobs:
5757
with:
5858
path: |
5959
**/node_modules
60-
key: runtime-node_modules-v5-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
60+
key: runtime-node_modules-v6-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
6161
- name: Ensure clean build directory
6262
run: rm -rf build
6363
- run: yarn install --frozen-lockfile
@@ -82,7 +82,7 @@ jobs:
8282
with:
8383
path: |
8484
**/node_modules
85-
key: runtime-node_modules-v5-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
85+
key: runtime-node_modules-v6-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
8686
- name: Ensure clean build directory
8787
run: rm -rf build
8888
- run: yarn install --frozen-lockfile
@@ -109,7 +109,7 @@ jobs:
109109
with:
110110
path: |
111111
**/node_modules
112-
key: runtime-node_modules-v5-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
112+
key: runtime-node_modules-v6-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
113113
- name: Ensure clean build directory
114114
run: rm -rf build
115115
- run: yarn install --frozen-lockfile
@@ -165,7 +165,7 @@ jobs:
165165
with:
166166
path: |
167167
**/node_modules
168-
key: runtime-and-compiler-node_modules-v5-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock', 'compiler/yarn.lock') }}
168+
key: runtime-and-compiler-node_modules-v6-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock', 'compiler/yarn.lock') }}
169169
- name: Ensure clean build directory
170170
run: rm -rf build
171171
- run: yarn install --frozen-lockfile
@@ -203,7 +203,7 @@ jobs:
203203
with:
204204
path: |
205205
**/node_modules
206-
key: runtime-and-compiler-node_modules-v5-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock', 'compiler/yarn.lock') }}
206+
key: runtime-and-compiler-node_modules-v6-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock', 'compiler/yarn.lock') }}
207207
- name: Ensure clean build directory
208208
run: rm -rf build
209209
- run: yarn install --frozen-lockfile
@@ -281,7 +281,7 @@ jobs:
281281
with:
282282
path: |
283283
**/node_modules
284-
key: runtime-and-compiler-node_modules-v5-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock', 'compiler/yarn.lock') }}
284+
key: runtime-and-compiler-node_modules-v6-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock', 'compiler/yarn.lock') }}
285285
- name: Ensure clean build directory
286286
run: rm -rf build
287287
- run: yarn install --frozen-lockfile
@@ -315,7 +315,7 @@ jobs:
315315
with:
316316
path: |
317317
**/node_modules
318-
key: runtime-node_modules-v5-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
318+
key: runtime-node_modules-v6-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
319319
- name: Ensure clean build directory
320320
run: rm -rf build
321321
- run: yarn install --frozen-lockfile
@@ -363,7 +363,7 @@ jobs:
363363
with:
364364
path: |
365365
**/node_modules
366-
key: runtime-node_modules-v5-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
366+
key: runtime-node_modules-v6-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
367367
- name: Ensure clean build directory
368368
run: rm -rf build
369369
- run: yarn install --frozen-lockfile
@@ -399,7 +399,7 @@ jobs:
399399
with:
400400
path: |
401401
**/node_modules
402-
key: runtime-node_modules-v5-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
402+
key: runtime-node_modules-v6-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
403403
- name: Ensure clean build directory
404404
run: rm -rf build
405405
- run: yarn install --frozen-lockfile
@@ -432,7 +432,7 @@ jobs:
432432
with:
433433
path: |
434434
**/node_modules
435-
key: fixtures_dom-node_modules-v5-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
435+
key: fixtures_dom-node_modules-v6-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
436436
- name: Ensure clean build directory
437437
run: rm -rf build
438438
- run: yarn --cwd fixtures/dom install --frozen-lockfile
@@ -475,7 +475,7 @@ jobs:
475475
with:
476476
path: |
477477
**/node_modules
478-
key: fixtures_flight-node_modules-v5-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
478+
key: fixtures_flight-node_modules-v6-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
479479
- name: Ensure clean build directory
480480
run: rm -rf build
481481
- run: yarn install --frozen-lockfile
@@ -538,7 +538,7 @@ jobs:
538538
with:
539539
path: |
540540
**/node_modules
541-
key: runtime-node_modules-v5-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
541+
key: runtime-node_modules-v6-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
542542
- name: Ensure clean build directory
543543
run: rm -rf build
544544
- run: yarn install --frozen-lockfile
@@ -590,7 +590,7 @@ jobs:
590590
with:
591591
path: |
592592
**/node_modules
593-
key: runtime-node_modules-v5-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
593+
key: runtime-node_modules-v6-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
594594
- name: Ensure clean build directory
595595
run: rm -rf build
596596
- run: yarn install --frozen-lockfile
@@ -628,7 +628,7 @@ jobs:
628628
with:
629629
path: |
630630
**/node_modules
631-
key: runtime-node_modules-v5-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
631+
key: runtime-node_modules-v6-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
632632
- name: Ensure clean build directory
633633
run: rm -rf build
634634
- run: yarn --cwd scripts/release install --frozen-lockfile

.github/workflows/runtime_commit_artifacts.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ jobs:
8080
with:
8181
path: |
8282
**/node_modules
83-
key: runtime-release-node_modules-v5-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock', 'scripts/release/yarn.lock') }}
83+
key: runtime-release-node_modules-v6-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock', 'scripts/release/yarn.lock') }}
8484
- name: Ensure clean build directory
8585
run: rm -rf build
8686
- run: yarn install --frozen-lockfile

.github/workflows/runtime_eslint_plugin_e2e.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
with:
4545
path: |
4646
**/node_modules
47-
key: runtime-and-compiler-eslint_e2e-node_modules-v5-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock', 'compiler/yarn.lock') }}
47+
key: runtime-and-compiler-eslint_e2e-node_modules-v6-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock', 'compiler/yarn.lock') }}
4848
- name: Ensure clean build directory
4949
run: rm -rf build
5050
- run: yarn install --frozen-lockfile

.github/workflows/runtime_prereleases.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
with:
4242
path: |
4343
**/node_modules
44-
key: runtime-release-node_modules-v5-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock', 'scripts/release/yarn.lock') }}
44+
key: runtime-release-node_modules-v6-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock', 'scripts/release/yarn.lock') }}
4545
- name: Ensure clean build directory
4646
run: rm -rf build
4747
- run: yarn install --frozen-lockfile

.github/workflows/runtime_releases_from_npm_manual.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ jobs:
7373
with:
7474
path: |
7575
**/node_modules
76-
key: runtime-release-node_modules-v5-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock', 'scripts/release/yarn.lock') }}
76+
key: runtime-release-node_modules-v6-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock', 'scripts/release/yarn.lock') }}
7777
- name: Ensure clean build directory
7878
run: rm -rf build
7979
- run: yarn install --frozen-lockfile

.github/workflows/shared_lint.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
with:
3131
path: |
3232
**/node_modules
33-
key: shared-lint-node_modules-v5-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
33+
key: shared-lint-node_modules-v6-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
3434
- name: Ensure clean build directory
3535
run: rm -rf build
3636
- run: yarn install --frozen-lockfile
@@ -51,7 +51,7 @@ jobs:
5151
with:
5252
path: |
5353
**/node_modules
54-
key: shared-lint-node_modules-v5-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
54+
key: shared-lint-node_modules-v6-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
5555
- name: Ensure clean build directory
5656
run: rm -rf build
5757
- run: yarn install --frozen-lockfile
@@ -72,7 +72,7 @@ jobs:
7272
with:
7373
path: |
7474
**/node_modules
75-
key: shared-lint-node_modules-v5-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
75+
key: shared-lint-node_modules-v6-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
7676
- name: Ensure clean build directory
7777
run: rm -rf build
7878
- run: yarn install --frozen-lockfile
@@ -93,7 +93,7 @@ jobs:
9393
with:
9494
path: |
9595
**/node_modules
96-
key: shared-lint-node_modules-v5-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
96+
key: shared-lint-node_modules-v6-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
9797
- name: Ensure clean build directory
9898
run: rm -rf build
9999
- run: yarn install --frozen-lockfile

0 commit comments

Comments
 (0)