FORGE-68: run web unit test files in parallel #682
No reviewers
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
gmackie/ForgeGraph!682
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "FORGE-68-web-vitest-parallel"
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?
Issue: https://tasks.gmac.io/gmacko/issue/FORGE-68 · follow-up to #680
Why
After #680,
unit-webis the longest CI job (342s). 256s of that is onevitest runinapps/web, which hadfileParallelism: false: 245 files in a single worker. That setting came in with an unrelated feature commit (414ede6f, April) with no stated reason.Change
apps/web/vitest.config.ts:fileParallelism: true,maxWorkers: 3. The pin matters because vitest sizes its pool from the host's cores inside a container rather than the job's--cpuscap, and hetzner-worker gives a job 2 CPUs and 3 GB.Evidence (local, same machine)
Peak RSS of a worker ~480 MB.
tsc --noEmitand oxlint are clean.Risk
Parallel files can expose shared state (temp paths,
process.env). Three consecutive parallel runs were green. If CI shows order-dependent failures, revert this one line; nothing else depends on it. Expected CI effect (estimate):unit-webabout 342s → ~150s, makingchecks(~232s) the critical path.🤖 Generated with Claude Code
Preview environment is live: https://pr-682-forgegraph.forgegraf.com
Deployed
2087a878with the beta stage's environment. It redeploys on every push and is destroyed when this PR closes.Preview environment is live: https://pr-682-forgegraph.forgegraf.com
Deployed
2087a878with the beta stage's environment. It redeploys on every push and is destroyed when this PR closes.