[GH-ISSUE #5637] Trim browser-lane wall time further: per-shard server gating and a fourth webkit shard #3120

Closed
opened 2026-10-21 05:59:47 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @kolacheee on GitHub (Aug 29, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/5637

Originally assigned to: @kolacheee on GitHub.

What happens

Even after #5622's sharding, browser lanes can take ~10 minutes. The breakdown per shard job is ~2–3 min fixed setup, ~1–1.5 min app-server boot, and ~5–6 min of tests — sharding only divides the last chunk. Two further cuts, both approved for implementation (a third idea — caching node_modules directly and skipping the --with-deps apt step on browser-cache hits — is deliberately deferred unless lanes still feel slow after these two):

1. Boot only the server pair the shard actually uses (~30–60s per shard, no behavior risk).

e2e/start-servers.mjs unconditionally boots BOTH the desktop pair (5178/7971) and the mobile pair (5179/7972), but each Playwright project only ever talks to one of them. Plan: a PLAYWRIGHT_ONLY_PROJECT=desktop|mobile env var — when set, start-servers.mjs boots just that pair, and playwright.config.ts points the webServer readiness URL at that pair's client port. Unset (local runs) keeps today's boot-both behavior verbatim. The CI shard jobs pass the value matching their project.

2. Per-lane shard counts — raise the slowest lane.

The matrix wall time is the slowest single shard, and mobile-webkit is consistently the slow lane (WebKit-on-Linux). The shard matrix is already per-lane, so webkit goes from 3 to 4 shards while both chromium lanes stay at 3. Expected webkit wall: ~17–18 min of tests / 4 + reduced overhead ≈ 7–8 min.

Constraints carried over from #5622

  • The fan-in jobs keep their exact names (desktop-chromium, mobile-chromium, mobile-webkit) for branch protection; only shard-job names change (mobile-webkit 1/4, …).
  • The --fully-parallel --workers=1 sharding invocation and the skip gate are untouched.
  • Verify no test reaches across to the other project's ports before gating the boot (a grep for the literal ports/baseURLs in e2e/).

Follow-up to #5622.

Originally created by @kolacheee on GitHub (Aug 29, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/5637 Originally assigned to: @kolacheee on GitHub. **What happens** Even after #5622's sharding, browser lanes can take ~10 minutes. The breakdown per shard job is ~2–3 min fixed setup, ~1–1.5 min app-server boot, and ~5–6 min of tests — sharding only divides the last chunk. Two further cuts, both approved for implementation (a third idea — caching node_modules directly and skipping the `--with-deps` apt step on browser-cache hits — is deliberately deferred unless lanes still feel slow after these two): **1. Boot only the server pair the shard actually uses (~30–60s per shard, no behavior risk).** `e2e/start-servers.mjs` unconditionally boots BOTH the desktop pair (5178/7971) and the mobile pair (5179/7972), but each Playwright project only ever talks to one of them. Plan: a `PLAYWRIGHT_ONLY_PROJECT=desktop|mobile` env var — when set, `start-servers.mjs` boots just that pair, and `playwright.config.ts` points the webServer readiness URL at that pair's client port. Unset (local runs) keeps today's boot-both behavior verbatim. The CI shard jobs pass the value matching their project. **2. Per-lane shard counts — raise the slowest lane.** The matrix wall time is the slowest single shard, and mobile-webkit is consistently the slow lane (WebKit-on-Linux). The shard matrix is already per-lane, so webkit goes from 3 to 4 shards while both chromium lanes stay at 3. Expected webkit wall: ~17–18 min of tests / 4 + reduced overhead ≈ 7–8 min. **Constraints carried over from #5622** - The fan-in jobs keep their exact names (`desktop-chromium`, `mobile-chromium`, `mobile-webkit`) for branch protection; only shard-job names change (`mobile-webkit 1/4`, …). - The `--fully-parallel --workers=1` sharding invocation and the skip gate are untouched. - Verify no test reaches across to the other project's ports before gating the boot (a grep for the literal ports/baseURLs in `e2e/`). Follow-up to #5622.
Sign in to join this conversation.
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
Pasta-Devs/Marinara-Engine#3120
No description provided.