Skip to content

fix: respect CPUS env var in browser tests and add flake pattern#21356

Draft
AztecBot wants to merge 1 commit intomerge-train/spartanfrom
claudebox/fix-merge-train-spartan-ci
Draft

fix: respect CPUS env var in browser tests and add flake pattern#21356
AztecBot wants to merge 1 commit intomerge-train/spartanfrom
claudebox/fix-merge-train-spartan-ci

Conversation

@AztecBot
Copy link
Collaborator

@AztecBot AztecBot commented Mar 11, 2026

Summary

Fixes flaky browser_prove.sh CI failure on merge-train/spartan (unrelated to #21577).

  • The headless browser test used os.cpus().length to set thread count, seeing all 128 host CPUs even when the CI job is limited to 8 CPUs. This caused 16 WASM workers to compete for 8 CPUs, leading to intermittent Failed to fetch errors.
  • Now uses the CPUS env var (set by CI) when available.
  • Added flake pattern for browser_prove.sh so transient failures get retried.
  • Fixed misleading "Failed to start test server" error message.

Analysis

https://gist.github.com/AztecBot/f73630c9d27e92ecb75ff207f5be8d5d

Test plan

  • TypeScript compiles without errors
  • CI passes on merge-train/spartan

@AztecBot AztecBot added the claudebox Owned by claudebox. it can push to this PR. label Mar 11, 2026
@AztecBot AztecBot force-pushed the claudebox/fix-merge-train-spartan-ci branch from 689d65d to 4278757 Compare March 11, 2026 13:38
@AztecBot AztecBot changed the title fix(p2p): stabilize flaky rate limit test in reqresp fix: remove obsolete KVArchiverDataStore constructor arg in test Mar 11, 2026
@AztecBot AztecBot force-pushed the claudebox/fix-merge-train-spartan-ci branch from 4278757 to c376ade Compare March 11, 2026 15:24
@AztecBot AztecBot changed the title fix: remove obsolete KVArchiverDataStore constructor arg in test chore: add e2e_deploy_contract/deploy_method.test.ts to flaky test patterns Mar 11, 2026
…browser_prove

The browser headless test used os.cpus().length to determine thread count,
which sees all host CPUs (128) even when the CI job is limited to 8 CPUs.
This causes 16 WASM worker threads to compete for 8 CPUs, leading to
resource pressure and intermittent 'Failed to fetch' errors.

Now uses the CPUS env var (set by CI) when available, falling back to the
previous behavior. Also adds a flake pattern for browser_prove.sh so
transient failures get retried instead of hard-failing.
@AztecBot AztecBot force-pushed the claudebox/fix-merge-train-spartan-ci branch from c376ade to 06b1d54 Compare March 16, 2026 10:42
@AztecBot AztecBot changed the title chore: add e2e_deploy_contract/deploy_method.test.ts to flaky test patterns fix: respect CPUS env var in browser tests and add flake pattern Mar 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

claudebox Owned by claudebox. it can push to this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant