Skip to content

🤖 ci: cache Playwright browsers on macOS#3616

Merged
ThomasK33 merged 1 commit into
mainfrom
ci-playwright-k132
Jun 23, 2026
Merged

🤖 ci: cache Playwright browsers on macOS#3616
ThomasK33 merged 1 commit into
mainfrom
ci-playwright-k132

Conversation

@ThomasK33

Copy link
Copy Markdown
Member

Summary

Cache Playwright browser installs on the correct OS-specific paths and bound the shared setup step so CI fails fast if a browser download stalls.

Background

The macOS E2E job on PR #3610 got stuck inside setup-playwright after Chromium reached 100%. The existing cache path only covered Linux (~/.cache/ms-playwright), so macOS runners redownloaded browsers into ~/Library/Caches/ms-playwright on every cache miss instead of saving/restoring that directory.

Implementation

  • Cache the Linux, macOS, and Windows Playwright browser cache roots in .github/actions/setup-playwright.
  • Add runner.arch to the Playwright cache key so arm64/x64 browser caches stay separate.
  • Add a 10-minute timeout to each workflow callsite of the shared setup action.

Validation

  • make lint-actions
  • make static-check
  • git diff --check

Risks

Low. This only changes CI cache paths/keys and setup-step timeouts. The main behavior change is that a future stalled browser install fails in 10 minutes rather than blocking the workflow for hours.


Generated with mux • Model: openai:gpt-5.5 • Thinking: xhigh • Cost: 3451720{MUX_COSTS_USD:-unknown}

---

_Generated with `mux` • Model: `openai:gpt-5.5` • Thinking: `xhigh` • Cost: `3442216{MUX_COSTS_USD:-unknown}`_

<!-- mux-attribution: model=openai:gpt-5.5 thinking=xhigh costs=4.67 -->
@ThomasK33

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. More of your lovely PRs please.

Reviewed commit: 5e5c77d5fc

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@ThomasK33 ThomasK33 added this pull request to the merge queue Jun 23, 2026
Merged via the queue into main with commit dbdd9f5 Jun 23, 2026
24 checks passed
@ThomasK33 ThomasK33 deleted the ci-playwright-k132 branch June 23, 2026 17:00
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