mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #5622] Speed up the browser CI matrix: shard the lanes, build once, and skip on unrelated PRs #3112
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#3112
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @kolacheee on GitHub (Aug 29, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/5622
Originally assigned to: @kolacheee on GitHub.
What happens
The Release Regression Matrix (playwright.yml) takes 15–21 minutes per browser lane on every PR — mobile-chromium ~15 min, mobile-webkit ~20 min — regardless of what the PR touches. A docs-only or installer-only PR waits the same 20 minutes as a client rewrite.
Why it's slow today (verified against the current workflow/config)
core-flows.e2e.tssuite serially in a single worker:fullyParallel: falsein playwright.config.ts (deliberate — tests share one app server's mutable fixtures within a run), one job per browser.on: pull_request / pushto staging, nothing else.Proposed work, in order of impact
--shard=1/3or1/4as extra matrix dimensions). This sidesteps thefullyParallel: falseconstraint cleanly: that setting guards test isolation within one run's shared server, but each shard job is its own runner booting its own server, so shards need no test-level isolation. 3 browsers × 3 shards ≈ ~6 minute wall time; ×4 approaches 5. Cost: more total runner-minutes (parallel), plus a blob-report merge step if unified reports are wanted.~/.cache/ms-playwright, keyed on the lockfile) if not already cached — the WebKit download alone is worth 1–2 min/job. (pnpm is already cached.)dorny/paths-filterorgit diff --name-only) that the browser jobsneeds:/if:on. Two constraints:paths:filter if these are required checks — a skipped workflow leaves required checks stuck as "Expected" and blocks merging. The in-workflow gate keeps the jobs reporting green in seconds instead.docs/**,**/*.md,CHANGELOG.md,win/installer/**,android/**(WebView shell),scripts/regressions/**(has its own lane), and workflow files outside the matrix itself. That covers the docs-i18n mirrors, installer, and launcher-adjacent PRs where the wait is most pointless.Optional policy variant (separate decision): tag a fast smoke subset for PRs (~3–4 min) and keep the full matrix on staging pushes (already running) plus a nightly. Full coverage would still gate what ships, but red lanes would surface post-merge — which cuts against the never-merge-over-red discipline #5589 restored, so this one deserves an explicit maintainer call rather than riding along.
Also worth doing first for free minutes: fixing the two #5618 flakes trims the retry waste out of every affected run.
Scope: contained to
.github/workflows/playwright.ymlplus a report-merge step; no test-content changes required for items 1–4.@kolacheee commented on GitHub (Aug 29, 2026):
Taking items 1–4 (kolacheee, agent-assisted) in a single workflow PR: shard the lanes, build once + artifact reuse, Playwright browser cache, and the in-workflow skip gate. The smoke-subset policy variant is explicitly out of scope per maintainer decision. PR incoming.