Skip to content

Commit 2c598ed

Browse files
committed
Revert "chore(ci): make cache keys deterministic and add cache debug logging"
This reverts commit b8e2474.
1 parent b8e2474 commit 2c598ed

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

.github/workflows/playwright-test.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,9 @@ jobs:
9090
path: |
9191
node_modules
9292
src/vendor
93-
key: ${{ runner.os }}-${{ inputs.test-mode }}-deps-${{ steps.deps-hash.outputs.deps_hash }}
93+
key: ${{ runner.os }}-${{ inputs.test-mode }}-deps-${{ steps.deps-hash.outputs.deps_hash }}-${{ github.run_id }}-${{ github.job }}
9494
restore-keys: |
9595
${{ runner.os }}-${{ inputs.test-mode }}-deps-${{ steps.deps-hash.outputs.deps_hash }}-
96-
${{ runner.os }}-${{ inputs.test-mode }}-deps-
9796
9897
- name: Install workflow dependencies
9998
if: steps.deps-cache.outputs.cache-matched-key == ''
@@ -106,7 +105,7 @@ jobs:
106105
path: |
107106
src/vendor
108107
node_modules
109-
key: ${{ runner.os }}-${{ inputs.test-mode }}-deps-${{ steps.deps-hash.outputs.deps_hash }}
108+
key: ${{ steps.deps-cache.outputs.cache-primary-key }}
110109

111110
- name: Wait for WordPress to be reachable
112111
run: |
@@ -206,10 +205,9 @@ jobs:
206205
with:
207206
path: |
208207
~/.cache/ms-playwright
209-
key: ${{ runner.os }}-playwright-browsers-${{ hashFiles('package-lock.json') }}
208+
key: ${{ runner.os }}-playwright-browsers-${{ hashFiles('package-lock.json') }}-${{ github.run_id }}-${{ github.job }}
210209
restore-keys: |
211210
${{ runner.os }}-playwright-browsers-${{ hashFiles('package-lock.json') }}-
212-
${{ runner.os }}-playwright-browsers-
213211
214212
- name: Install playwright/test
215213
if: steps.playwright-browsers-cache.outputs.cache-matched-key == ''
@@ -222,7 +220,7 @@ jobs:
222220
with:
223221
path: |
224222
~/.cache/ms-playwright
225-
key: ${{ runner.os }}-playwright-browsers-${{ hashFiles('package-lock.json') }}
223+
key: ${{ steps.playwright-browsers-cache.outputs.cache-primary-key }}
226224

227225
- name: Run Playwright tests
228226
env:

0 commit comments

Comments
 (0)