mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #8038] [Feature]: Split ruleset-combat-director.regression.ts so the pool can run its halves side by side #7534
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#7534
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 @Promansis on GitHub (Oct 22, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/8038
Originally assigned to: @Promansis on GitHub.
What problem does this solve?
scripts/regressions/ruleset-combat-director.regression.tsis one 1,857-line file that runs 123 s alone and 131–300 s inside the 4-worker CI pool, which makes it the longest single unit in the Node regression lane. Because one file is one process, the pool cannot spread it: shard 1 ofcomplete-node-regressionsis only as fast as this file plus its queue. The file already has a natural seam: itsconsole.log("… passed.")sits at line 1394, after which four more sections run (contests, Engine-played party windows, dice-pool fights, initiative as a number). Measured solo: 47 s up to that line, 76 s after it.Do this only if #8036 (cache the live-less sheet evaluation per command) does not land, or if the file still exceeds about 120 s in the pool afterwards. With that cache the whole file runs in 60 s solo and the split is not worth its extra process.
Proposed solution
engineUnit,start/started,view,bestiaryOfand the other helpers) toscripts/regressions/fixtures/ruleset-combat-director-fixtures.ts, followingfixtures/avatar-2d-fixtures.ts. Helper files there are not discovered by the runner (only*.regression.{ts,mjs,js}are).ruleset-combat-director.regression.ts(sections up to the currentconsole.log) and move the four sections after it intoruleset-combat-director-engine-play.regression.tswith its own closingconsole.log. No assertion is changed, added or removed;git diff --statshould show the moved lines and the import block only.scripts/run-regressions.mjsregressionTimeoutMs: give the new file its own entry (about 240 s for the 76 s half, 180 s for the 47 s half, both at the pool's 2.3× worst case) and updateregression-timeout-policy.regression.mjsaccordingly. Its "each shard takes one of the three slowest files" assertion derives the slowest set from the policy, so it keeps holding without edits.--list --sharddealing is slow-first, so the two halves land in different shards automatically. Confirm on the PR run that the threenode-regressions i/3durations are closer together than before (shard 1 was 5–7 min against 4–6 for the others).Proof:
node scripts/run-regressions.mjs --filter ruleset-combat-directorruns both files;--filter regression-timeout-policypasses; the two shard listings show the files on different shards.Alternatives considered
Additional context
packages/sharedandpackages/servermodules, so the split costs one extra process start (about 1.5 s CPU) and nothing else.Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:
@Promansis commented on GitHub (Oct 22, 2026):
Not needed. With #8036 merged (PR #8045),
ruleset-combat-director.regression.tsruns in about 55 s inside the 4-worker CI pool, against 131–300 s before:e9ebf9a8d54b2246b2stagingat1172159e9The 124 s run was a slow runner, not the file: every slow file took longer in that job (
server-signal-shutdown58.0 s against 40.6–43.7 s,native-export-memory42.6 s against 21.4–26.1 s), and the job took 17 min against 11–12 min. This issue's bar was about 120 s in the pool, so the split is not worth its extra process. Reopen it if the director climbs back over that bar.