Repository navigation
feat(workflow): persist .opencheck-cache + Playwright browsers between runs - #19
Open
omerhochman wants to merge 1 commit into
Open
omerhochman wants to merge 1 commit into
omerhochman wants to merge 1 commit into
Conversation
…n runs
Add opt-in (on by default) actions/cache integration to the reusable
workflow. Skipping LLM re-derivation when nothing material has changed
brings warm runs from ~minutes to ~seconds, and avoids re-downloading
the ~150 MB Playwright browser bundle on every invocation.
New inputs (both backward-compatible):
- cache: boolean = true — gates both cache steps
- cache-key-extra: string = "" — appended to step-cache key so
consumers can wire in app-source invalidation (e.g.
hashFiles('src/**')), guarding against opencheck's LLM self-healing
routing past real regressions when the cache outlives a UI change
Playwright cache key is OS-only (reusable workflow can't see consumer
lockfile); step-cache key includes runner.os, hashFiles(config), and
cache-key-extra with restore-key fallbacks.
omerhochman
force-pushed
the
claude/add-cache-steps-workflow-Bx42S
branch
from
May 16, 2026 14:48
9f44531 to
0a57853
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Every CI run re-downloads
~/.cache/ms-playwright(~150 MB of Playwright browser binaries) and re-derives every step via the LLM because.opencheck-cacheis.gitignored — the cached-replay value prop is lost in CI.Fix
Add two
actions/cachesteps gated by a newcache: trueinput (backward compatible).node_modules/ bun caches are owned by the consumer's composite action;actions/cacheat the workflow layer is the only place we can fix this without stomping consumer strategies.actions/cachestanza.oven-sh/setup-bundoesn't cache Playwright browsers,@playwright/mcp's postinstall re-fetches if missing, and.opencheck-cacheis.gitignored so it never persists between runs.cache: falsereverts exactly to today's behavior,cache-key-extralets consumers append app-source hashes (e.g.hashFiles('src/**')).cache: falseproduces zero cache steps in the run log; restore-key fallback prevents 100% cold-miss after first warm run;cache-key-extrais the documented escape hatch for opencheck's LLM self-healing routing past real regressions on stale UI.