Skip to content

fix(p2p): fix flaky file store tx collection tests#20318

Merged
spalladino merged 1 commit intomerge-train/spartanfrom
palla/fix-file-store-tx-collection-tests
Feb 9, 2026
Merged

fix(p2p): fix flaky file store tx collection tests#20318
spalladino merged 1 commit intomerge-train/spartanfrom
palla/fix-file-store-tx-collection-tests

Conversation

@spalladino
Copy link
Contributor

Summary

  • Mock Math.random in FileStoreTxCollection tests to ensure deterministic file store iteration order
  • The downloadTx method picks a random starting index for round-robin across file stores, which caused two tests to intermittently fail depending on which store was tried first

Test plan

  • All 6 tests in file_store_tx_collection.test.ts pass consistently

🤖 Generated with Claude Code

Mock Math.random in FileStoreTxCollection tests to ensure deterministic
file store iteration order, preventing intermittent failures caused by
random start index in downloadTx.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@spalladino spalladino enabled auto-merge (squash) February 9, 2026 22:16
@AztecBot
Copy link
Collaborator

AztecBot commented Feb 9, 2026

Flakey Tests

🤖 says: This CI run detected 1 tests that failed, but were tolerated due to a .test_patterns.yml entry.

\033FLAKED\033 (8;;http://ci.aztec-labs.com/3b428040ce4e47bd�3b428040ce4e47bd8;;�):  yarn-project/end-to-end/scripts/run_test.sh simple src/e2e_p2p/duplicate_proposal_slash.test.ts (496s) (code: 1) group:e2e-p2p-epoch-flakes

@spalladino spalladino merged commit e6f1bf2 into merge-train/spartan Feb 9, 2026
11 checks passed
@spalladino spalladino deleted the palla/fix-file-store-tx-collection-tests branch February 9, 2026 22:30
github-merge-queue bot pushed a commit that referenced this pull request Feb 10, 2026
BEGIN_COMMIT_OVERRIDE
chore: add new retention policy to cloudflare R2 (#20276)
fix: k8s enricher opt-in (#20279)
feat(slasher): add duplicate attestation slashing (#20218)
chore: improve HA e2e (#20280)
chore(test): fix p2p integration test (#20283)
chore(claude): minor changes to claude md and rules (#20284)
chore(test): fix p2p message propagation test build error (#20289)
chore(claude): add actor info to analyze-logs (#20290)
feat: tx file store source for tx collector (#20165)
chore(test): fix validator integration test (#20288)
chore(e2e): remove setup with remote env in e2e tests (#20294)
chore: fix test flakes (#20295)
chore: user-perceived latency explorer (#20298)
fix(p2p): fix flaky file store tx collection tests (#20318)
chore(spartan): add mbps-net env definition (#20308)
fix(validator): do not process proposals from self (#20314)
chore(ci): track history in merge-trains (#20321)
fix(e2e): enable broadcastEquivocatedProposals in duplicate proposal
slash test (#20320)
chore: use respective get endpoints for rollup test instead of only
port-forward (#20327)
END_COMMIT_OVERRIDE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants