Skip to content

[codex] update Playwright e2e runner and improve speed to completion#1829

Merged
Uarmagan merged 1 commit into
mainfrom
chore/update-playwright-ci
May 29, 2026
Merged

[codex] update Playwright e2e runner and improve speed to completion#1829
Uarmagan merged 1 commit into
mainfrom
chore/update-playwright-ci

Conversation

@Uarmagan
Copy link
Copy Markdown
Contributor

@Uarmagan Uarmagan commented May 29, 2026

Summary

This PR updates the e2e runner to the latest Playwright release and keeps the GitHub Actions browser environment aligned with it.

It also makes the PR e2e workflow less likely to block indefinitely by canceling stale runs, adding job/step time limits, and running inside the official Playwright container instead of installing Linux browser dependencies on every run.

Why

Recent PR e2e runs were sometimes getting stuck before tests started, specifically during the Playwright browser setup step. Moving to the Playwright container and adding explicit limits should make normal runs faster to start and prevent stuck setup from consuming hours.

The first containerized CI run exposed one extra environment prerequisite: oven-sh/setup-bun needs unzip, which the Playwright image does not include by default. This PR now installs that small prerequisite before setting up Bun.

Changes

  • Upgrade @playwright/test to 1.60.0 in package.json and bun.lock.
  • Update the e2e workflow to use mcr.microsoft.com/playwright:v1.60.0-noble.
  • Add PR-run concurrency so newer commits cancel older e2e runs for the same PR.
  • Add a 15-minute job timeout, a 3-minute browser verification timeout, and an 8-minute e2e step timeout.
  • Install unzip before oven-sh/setup-bun inside the Playwright container.
  • Replace playwright install --with-deps chromium with a short browser verification step, since the container already includes the browser dependencies.

Validation

  • npm view @playwright/test dist-tags.latest version confirmed 1.60.0.
  • Verified the mcr.microsoft.com/playwright:v1.60.0-noble image exists for Linux runners.
  • bun install --frozen-lockfile
  • bunx playwright --version -> 1.60.0
  • bunx playwright install chromium
  • bunx playwright test --list -> 44 tests
  • TanStack hotkey tests: 40 passed
  • bun run type-check
  • CI=1 bun run test:e2e -> 41 passed, 3 skipped
  • bun lint
  • git diff --check
  • GitHub Actions e2e run after the container prerequisite fix: passed

@Uarmagan Uarmagan force-pushed the chore/update-playwright-ci branch from e7bb5fb to 3d1d779 Compare May 29, 2026 22:51
@Uarmagan Uarmagan changed the title [codex] update Playwright e2e runner [codex] update Playwright e2e runner and improve speed to completion May 29, 2026
@Uarmagan Uarmagan marked this pull request as ready for review May 29, 2026 22:57
@Uarmagan Uarmagan merged commit 10eefcc into main May 29, 2026
9 checks passed
@Uarmagan Uarmagan deleted the chore/update-playwright-ci branch May 29, 2026 22:57
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