Skip to content

ci: key the browser cache on the Playwright version alone#182

Merged
ardetrick merged 2 commits into
mainfrom
ci/playwright-version-cache-key
Jul 5, 2026
Merged

ci: key the browser cache on the Playwright version alone#182
ardetrick merged 2 commits into
mainfrom
ci/playwright-version-cache-key

Conversation

@ardetrick

Copy link
Copy Markdown
Owner

Hashing the whole catalog meant any dependency bump paid the 60s cold browser install; the key now uses the Playwright version itself. Also fixes the canary, which had silently kept the original build.gradle.kts-based key when the chromium-only change landed — it still carried the stale-cache bug (a Playwright bump would restore old browsers that PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD refuses to replace).

🤖 Generated with Claude Code

ardetrick added 2 commits July 5, 2026 15:44
Hashing the whole version catalog meant any dependency bump paid the
60s cold browser install; the key now uses the Playwright version
itself, so the cache only invalidates when the browsers actually
change. Also answers the old inline comment wondering whether a
smarter key exists.
The canary still carried the original key on reference-app/
build.gradle.kts — the earlier chromium-only change silently missed it
because its text differed — so it kept the stale-cache bug: a
Playwright bump would restore old browsers that
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD then refuses to replace. Now keyed on
the Playwright version like the CI workflow.
@ardetrick ardetrick merged commit 93f3127 into main Jul 5, 2026
5 checks passed
@ardetrick ardetrick deleted the ci/playwright-version-cache-key branch July 5, 2026 20:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant