Skip to content

Comments

fix: reduce test flakiness for node-bindings and network tests#3632

Merged
mattsse merged 1 commit intomainfrom
fix/flaky-tests
Feb 2, 2026
Merged

fix: reduce test flakiness for node-bindings and network tests#3632
mattsse merged 1 commit intomainfrom
fix/flaky-tests

Conversation

@mattsse
Copy link
Member

@mattsse mattsse commented Feb 1, 2026

Summary

Reduces CI flakiness by:

  1. Handling transport errors in test_pending_block_deser - The test now skips on any transport error (502, timeouts, connection failures) rather than just "no response" errors.

  2. Running alloy-node-bindings tests serially - Uses nextest's threads-required = "num-cpus" to prevent resource contention between heavy e2e tests.

  3. Adding retries for node-bindings tests - Exponential backoff with 3 retries for transient failures.

Fixes flaky CI failures like: https://github.com/alloy-rs/alloy/actions/runs/21563960416/job/62143557052

- Handle transport errors (502, timeouts) in test_pending_block_deser
- Run alloy-node-bindings tests serially via nextest to avoid resource contention
- Add retries with exponential backoff for node-bindings tests

Co-authored-by: Amp <[email protected]>
Amp-Thread-ID: https://ampcode.com/threads/T-019c1aa1-482f-774a-be9a-57cb99c44f08
@mattsse mattsse merged commit 64c4dc1 into main Feb 2, 2026
21 of 30 checks passed
@mattsse mattsse deleted the fix/flaky-tests branch February 2, 2026 10:41
@github-project-automation github-project-automation bot moved this to Done in Alloy Feb 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants