Skip to content

fix: remove jest-mock-extended from worker processes + fix parallelize_strict silent failures#21821

Merged
ludamad merged 2 commits intomerge-train/spartanfrom
claudebox/fix-bench-test-and-parallelize
Mar 19, 2026
Merged

fix: remove jest-mock-extended from worker processes + fix parallelize_strict silent failures#21821
ludamad merged 2 commits intomerge-train/spartanfrom
claudebox/fix-bench-test-and-parallelize

Conversation

@AztecBot
Copy link
Collaborator

Summary

Fixes two bugs:

  1. Bench test workers crash on startup: p2p_client_testbench_worker.ts and proposal_tx_collector_worker.ts import jest-mock-extended, which depends on @jest/globals. Since workers run as plain Node processes (forked via child_process.fork()), not inside Jest, @jest/globals throws immediately and all workers SIGSEGV. Fix: replace mock<EpochCache>() with the existing createMockEpochCache() from test-helpers.

  2. parallelize_strict silently swallows failures: run_tests | tee $output runs run_tests in a subshell due to the pipe. Background jobs started inside that subshell are invisible to the parent shell's wait -n. When a job fails, exit 1 kills only the subshell; the parent sees no jobs and exits 0. Fix: use process substitution (> >(tee)) so run_tests runs in the current shell and failures propagate.

Test plan

  • Bench test p2p_client.proposal_tx_collector.bench.test.ts should no longer crash on worker startup
  • parallelize_strict should now properly fail when a benchmark fails

ClaudeBox log: https://claudebox.work/s/6ba298b4e9b52aa5?run=3

@AztecBot AztecBot added ci-draft Run CI on draft PRs. claudebox Owned by claudebox. it can push to this PR. labels Mar 19, 2026
@ludamad ludamad marked this pull request as ready for review March 19, 2026 22:41
@ludamad ludamad requested a review from charlielye as a code owner March 19, 2026 22:41
@ludamad ludamad merged commit 939571b into merge-train/spartan Mar 19, 2026
11 checks passed
@ludamad ludamad deleted the claudebox/fix-bench-test-and-parallelize branch March 19, 2026 22:41
github-merge-queue bot pushed a commit that referenced this pull request Mar 20, 2026
BEGIN_COMMIT_OVERRIDE
feat(p2p): add tx validator for contract instance deployment addresses
(#21771)
fix: always deploy IRM for testnet (#21755)
fix: avoid mutating caller's array via splice in snapshot sync (A-718)
(#21759)
chore: update network logs skill (#21785)
feat(archiver): validate contract instance addresses before storing
(#21787)
fix: ensure no division by 0 (#21786)
feat: support private fork releases via ci-release (#21778)
fix: restrict scenario deployments to only nightly (#21798)
fix(stdlib): zero-pad bufferFromFields when declared length exceeds
payload (#21802)
test(protocol-contracts): verify max-size bytecode fits in contract
class log (#21818)
fix: wire BOT_DA_GAS_LIMIT through helm/terraform for staging-public
(#21809)
fix: remove jest-mock-extended from worker processes + fix
parallelize_strict silent failures (#21821)
fix(archiver): throw on duplicate contract class or instance additions
(#21799)
chore: remove broadcasted function events (#21805)
fix: sync dateProvider from anvil stdout on every mined block (#21829)
fix(sequencer): use wall-clock time instead of L1 block timestamp for
slot estimation (#21769)
fix: use correct EthCheatCodes method name in epochs_missed_l1_slot test
(#21848)
feat(p2p): add tx validator for contract class id verification (#21788)
feat: publisher funding (#21631)
feat: batch chonk verifier TS integration (#21823)
fix(sequencer): remove l1 block timestamp check (#21853)
fix: use local IVC inputs for batch_verifier bench test (#21857)
fix(p2p): centralize gossipsub penalization and fix inconsistencies
(#21863)
chore: publish GitHub releases to AztecProtocol/barretenberg (#21775)
END_COMMIT_OVERRIDE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci-draft Run CI on draft PRs. claudebox Owned by claudebox. it can push to this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants