mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #8032] [Feature]: Shard Node regressions, enable NODE_COMPILE_CACHE and exclude the regression harness from CodeQL #7528
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#7528
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 21, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/8032
Originally assigned to: @Promansis on GitHub.
What problem does this solve?
Since #7971 the
complete-node-regressionsjob runs 968 regression files in a worker pool, which brought it from ~35 min down to 11–20 min (median ~16–17 min over the 58 runs since merge). It is still the longest job on most PRs together with CodeQL, and it is CPU-bound on the 4-vCPUubuntu-latestrunner: a local run pinned to 4 cores takes the same time with 4 and 8 workers, so more workers on one runner cannot help.Measured on the merged runs and local profiles:
packages/sharedandpackages/serversources is ~60% of the CPU time; the median regression file runs in 2.0 s of which only a fraction is the test itself.javascript-typescriptanalysis takes 9–12 min on PRs.scripts/regressionsis ~30% of the extracted lines of code (358k LOC, 956 files) and is test harness code that never ships.complete-node-regressions(~13–17 min); the native macOS build and container matrix are the next ceiling at ~10–13 min.Proposed solution
Three independent, revertible tooling changes in one PR, each in its own commit:
--shard <i>/<n>option toscripts/run-regressions.mjsthat deals files from the existing slow-first order, run it as a matrix of 3 jobs, and keep a gate job namedcomplete-node-regressionsthatneedsthe shards and fails when any shard failed, was cancelled or was skipped, so the required check keeps its name. Expected job time ~5–7 min.NODE_COMPILE_CACHEfor the regression job so Node caches compiled bytecode across the 968 processes within one job. Measured 10–15% per-file saving locally; no functional risk (a cache miss just compiles normally).paths-ignoreforscripts/regressions(test harness) via a config on the init step. Expected ~2.5–3.5 min off the JavaScript analysis. Theactionsleg still scans.github/workflows.Local
pnpm regressionbehaviour is unchanged; sharding only applies when--shardis passed.Alternatives considered
--concurrency 4and8on 4 pinned cores).Additional context
.github/workflows/playwright.ymljobcomplete-node-regressions; CodeQL:.github/workflows/codeql.yml.scripts/regressions, so excluding it closes nothing.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 21, 2026):
Taking this one (Promansis, via Claude Code). Branch:
chore(ci)/regression-shards.