OPT2 — Uncached Large Downloads
TL;DR: Big downloads (like Playwright browsers) are re-fetched over the network every run because nothing caches them — cache them once and reuse.
Anti-pattern: Downloading large binaries (browsers, SDKs, toolchains) on every run without caching them.
Detection heuristic:
- Look for
npx playwright installwithout a precedingactions/cachestep keyed on the Playwright version - Look for SDK/toolchain download steps without caching
# Check if playwright install is preceded by a cache restore
# Parse workflow YAML and check step ordering within each jobFix: Add actions/cache with a version-pinned key before the install step, or use the tool's built-in cache mechanism (e.g., Playwright's PLAYWRIGHT_BROWSERS_PATH).