Skip to content

Commit dc3dc13

Browse files
mydeaclaude
andcommitted
fix(ci): Bust dependency cache and re-add enableCrossOsArchive
Add v2 prefix to dependency cache key to bust stale caches that were saved without enableCrossOsArchive. Re-add the flag to all cache steps so new caches are saved in cross-OS format from the start. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 13f5e8b commit dc3dc13

5 files changed

Lines changed: 8 additions & 1 deletion

File tree

.github/actions/install-dependencies/action.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ runs:
2020
with:
2121
path: ${{ env.CACHED_DEPENDENCY_PATHS }}
2222
key: ${{ steps.compute_lockfile_hash.outputs.hash }}
23+
enableCrossOsArchive: true
2324

2425
- name: Install dependencies
2526
if: steps.cache_dependencies.outputs.cache-hit != 'true'

.github/actions/restore-cache/action.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ runs:
1515
with:
1616
path: ${{ env.CACHED_DEPENDENCY_PATHS }}
1717
key: ${{ inputs.dependency_cache_key }}
18+
enableCrossOsArchive: true
1819

1920
- name: Restore build artifacts
2021
uses: actions/download-artifact@v7

.github/workflows/build.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -902,6 +902,7 @@ jobs:
902902
with:
903903
path: ${{ github.workspace }}/packages/*/*.tgz
904904
key: ${{ env.BUILD_CACHE_TARBALL_KEY }}
905+
enableCrossOsArchive: true
905906

906907
- name: Determine which E2E test applications should be run
907908
id: matrix
@@ -982,6 +983,7 @@ jobs:
982983
with:
983984
path: ${{ github.workspace }}/packages/*/*.tgz
984985
key: ${{ env.BUILD_CACHE_TARBALL_KEY }}
986+
enableCrossOsArchive: true
985987

986988
- name: Build tarballs if not cached
987989
if: steps.restore-tarball-cache.outputs.cache-hit != 'true'
@@ -1100,6 +1102,7 @@ jobs:
11001102
with:
11011103
path: ${{ github.workspace }}/packages/*/*.tgz
11021104
key: ${{ env.BUILD_CACHE_TARBALL_KEY }}
1105+
enableCrossOsArchive: true
11031106

11041107
- name: Build tarballs if not cached
11051108
if: steps.restore-tarball-cache.outputs.cache-hit != 'true'

.github/workflows/canary.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ jobs:
5959
with:
6060
path: ${{ env.CACHED_BUILD_PATHS }}
6161
key: canary-${{ env.HEAD_COMMIT }}
62+
enableCrossOsArchive: true
6263
- name: Install dependencies
6364
run: yarn install
6465
- name: Build packages
@@ -161,6 +162,7 @@ jobs:
161162
with:
162163
path: ${{ env.CACHED_BUILD_PATHS }}
163164
key: canary-${{ env.HEAD_COMMIT }}
165+
enableCrossOsArchive: true
164166

165167
- name: Get node version
166168
id: versions

scripts/dependency-hash-key.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ function outputDependencyCacheKey() {
3636
// We log the output in a way that the GitHub Actions can append it to the output
3737
// We prefix it with `dependencies-` so it is easier to identify in the logs
3838
// eslint-disable-next-line no-console
39-
console.log(`hash=dependencies-${hash}`);
39+
console.log(`hash=v2-dependencies-${hash}`);
4040
}
4141

4242
function getNormalizedDependencies(packageJson, workspacePackageNames) {

0 commit comments

Comments
 (0)