ci(web): cut web CI time — desktop-only PR Playwright suite, single vite build per merge path #1376

Merged
chris merged 1 commit from ci/web-test-speed into main 2026-10-25 14:55:10 +01:00
Owner

Why

Web CI was the slow lane on every merge to main and every web PR:

  • PR web tests ran all 62 specs × both Playwright projects (desktop + mobile, retries: 2) behind the host-wide heavy-test lock → roughly double wall time.
  • The web bundle was built twice per relevant change: once in smoke-web/Check web/fallback (npm run check && npm run build, measured ~57 s of vite build) and again inside the deploy image build (measured ~94 s).

What

  1. apps/web/package.json: new test:ci script = playwright test --project=desktop. npm run test (both projects) stays for local use and the nightly.
  2. build-deploy.yml PR "Run web tests" step uses test:ci. Mobile-project coverage moves to the nightly.
  3. smoke-web, scoped "Check web" and "Check fallback web build inputs" drop npm run build — svelte-check/paraglide only. The vite build happens exactly once, in the deploy image build itself.
  4. daily-full-tests.yml renamed its web step to "Web Playwright suite (all projects, full suite nightly)" and keeps npm run build && npm run test unchanged (it needs the build for the preview server; drop the redundant npm run check there).

Expected effect (measured from run 5581)

  • Merge path web-relevant change: −~57 s (one vite build instead of two) → smoke-web ~98 s → ~40 s; deploy starts earlier.
  • Web PR: ~half Playwright wall time (one project instead of two) + check-only smoke.
  • Nightly: unchanged coverage (full suite, both projects).

Verification

  • YAML + JSON validated locally.
  • Post-merge: check next web-relevant run's Smoke web step time and next web PR's Run scoped PR tests.
## Why Web CI was the slow lane on every merge to main and every web PR: - PR web tests ran all 62 specs × **both** Playwright projects (desktop + mobile, retries: 2) behind the host-wide heavy-test lock → roughly double wall time. - The web bundle was built **twice** per relevant change: once in `smoke-web`/`Check web`/fallback (`npm run check && npm run build`, measured ~57 s of vite build) and again inside the deploy image build (measured ~94 s). ## What 1. `apps/web/package.json`: new `test:ci` script = `playwright test --project=desktop`. `npm run test` (both projects) stays for local use and the nightly. 2. `build-deploy.yml` PR "Run web tests" step uses `test:ci`. Mobile-project coverage moves to the nightly. 3. `smoke-web`, scoped "Check web" and "Check fallback web build inputs" drop `npm run build` — svelte-check/paraglide only. The vite build happens exactly once, in the deploy image build itself. 4. `daily-full-tests.yml` renamed its web step to "Web Playwright suite (all projects, full suite nightly)" and keeps `npm run build && npm run test` unchanged (it needs the build for the preview server; drop the redundant `npm run check` there). ## Expected effect (measured from run 5581) - Merge path web-relevant change: −~57 s (one vite build instead of two) → smoke-web ~98 s → ~40 s; deploy starts earlier. - Web PR: ~half Playwright wall time (one project instead of two) + check-only smoke. - Nightly: unchanged coverage (full suite, both projects). ## Verification - YAML + JSON validated locally. - Post-merge: check next web-relevant run's `Smoke web` step time and next web PR's `Run scoped PR tests`.
ci(web): cut web CI time — desktop-only PR Playwright suite, single vite build per merge path
All checks were successful
Wiki Sync / Sync wiki from docs (push) Has been skipped
Build and Deploy / Detect changed services and test scopes (push) Successful in 5s
Build and Deploy / Smoke API and media worker (push) Has been skipped
Build and Deploy / Smoke web (push) Has been skipped
Build and Deploy / Smoke ML worker (push) Has been skipped
Build and Deploy / Smoke people worker (push) Has been skipped
Build and Deploy / Build postgres image (push) Has been skipped
Build and Deploy / Build Android CI image (push) Has been skipped
Build and Deploy / Build plants worker image (push) Has been skipped
Build and Deploy / Build converter worker image (push) Has been skipped
Build and Deploy / Android unit tests and debug APK (push) Has been skipped
Build and Deploy / Deploy postgres (push) Has been skipped
Build and Deploy / Build API image (push) Has been skipped
Build and Deploy / Build media worker image (push) Has been skipped
Build and Deploy / Build ML worker image (push) Has been skipped
Build and Deploy / Build people worker image (push) Has been skipped
Build and Deploy / Build web image (push) Has been skipped
Build and Deploy / Deploy API (push) Has been skipped
Build and Deploy / Deploy web (push) Has been skipped
Build and Deploy / Deploy media worker (push) Has been skipped
Build and Deploy / Deploy ML worker (push) Has been skipped
Build and Deploy / Deploy plants worker (push) Has been skipped
Build and Deploy / Deploy people worker (push) Has been skipped
Build and Deploy / Deploy converter worker (push) Has been skipped
Build and Deploy / Deploy review instance (push) Has been skipped
Build and Deploy / Clean Docker build artifacts (push) Has been skipped
Build and Deploy / Run scoped PR tests (push) Successful in 2m13s
148e817225
PR web suite ran all 62 specs across both Playwright projects (desktop +
mobile) with retries; mobile doubles wall time on every web PR. CI now
runs `npm run test:ci` (= --project=desktop) on PRs; the full two-project
suite stays nightly in daily-full-tests.

The web bundle was built twice per relevant change (smoke-web/check step
+ again inside the deploy image build, ~57s + ~94s of vite build).
Check/fallback steps now run svelte-check only; the vite build happens
exactly once in the deploy image build, and nightly keeps its own build
for the Playwright preview server.
chris merged commit c225d67eab into main 2026-10-25 14:55:10 +01:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
chris/memories!1376
No description provided.