From 9d0abd38329cfc0ad56d933b4c4965abba2ebf4c 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 059861427b..0a469f77d2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -108,8 +108,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 @@ -158,8 +156,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