From 39a357489c1679b7170968af6ee7eadc820b0e3e Mon Sep 17 00:00:00 2001 From: BigSimmo <87357024+BigSimmo@users.noreply.github.com> Date: Thu, 2 Jul 2026 14:49:58 +0800 Subject: [PATCH] Harden Playwright cache restore behavior Remove broad restore-keys from Playwright browser caches so CI only restores exact lockfile-matched cache entries, reducing stale cache flakiness and cache poisoning surface. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> --- .github/workflows/ci.yml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4336120357..8a7a089db0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -82,8 +82,6 @@ jobs: with: path: ~/.cache/ms-playwright key: playwright-chromium-${{ runner.os }}-${{ hashFiles('package-lock.json') }} - restore-keys: | - playwright-chromium-${{ runner.os }}- - name: Install Chromium browser run: npx playwright install --with-deps chromium @@ -132,8 +130,6 @@ jobs: with: path: ~/.cache/ms-playwright key: playwright-${{ runner.os }}-${{ hashFiles('package-lock.json') }} - restore-keys: | - playwright-${{ runner.os }}- - name: Install Playwright browsers run: npx playwright install --with-deps