mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #5638] [MERGED] ci: boot only each shard's server pair and give webkit a fourth shard #6863
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#6863
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?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/5638
Author: @kolacheee
Created: 8/29/2026
Status: ✅ Merged
Merged: 8/29/2026
Merged by: @kolacheee
Base:
staging← Head:feat/shard-speed-2📝 Commits (1)
69115bfci: boot only each shard's server pair and give webkit a fourth shard📊 Changes
4 files changed (+31 additions, -7 deletions)
View changed files
📝
.github/actions/playwright-shard/action.yml(+5 -0)📝
.github/workflows/playwright.yml(+8 -3)📝
e2e/start-servers.mjs(+14 -3)📝
playwright.config.ts(+4 -1)📄 Description
Closes #5637. The two approved follow-ups to #5622's sharding; the node_modules/apt-caching idea is deferred per maintainer decision and not included.
What changed
1. Each shard boots only the server pair its tests talk to.
start-servers.mjsbooted both the desktop (5178/7971) and mobile (5179/7972) client/server pairs in every shard, though each Playwright project only ever uses one — verified by grep that no test reaches across to the other pair's ports. CI shards now setPLAYWRIGHT_ONLY_PROJECT(plumbed through a new composite-action input),start-servers.mjsboots just that pair, and the PlaywrightwebServerreadiness URL follows the same variable — required, since a mobile-only shard would otherwise wait forever on the desktop URL. Unset keeps the boot-both behavior byte-for-byte, so local runs are untouched. Saves roughly 30–60 s of boot per shard plus runner memory.2. Mobile-webkit gets a fourth shard. The matrix wall time is the slowest single shard, and WebKit-on-Linux is consistently the slowest lane. Its matrix goes to 4 shards (distribution verified: 50/49/49/49) while both chromium lanes stay at 3. Shard-job names change (
mobile-webkit 1/4, …); themobile-webkitfan-in keeps its exact name for branch protection, unchanged.Expected result: webkit wall time from ~10 min toward ~7, chromium lanes shave their boot time.
Validation done
--shard=k/4distribution checkedPLAYWRIGHT_ONLY_PROJECT=desktopand a mobile-executing test under=mobile, both green (the mobile pair's readiness URL switch is what the second one proves)Manually verify (for the human contributor)
mobile-webkitwall time against a recent 3-shard runpnpm regression:uistill boots both pairs and passes as beforeSummary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.