Skip to content

test(tasks): fix flaky worker idle assertion - #264

Merged
ivanwang-coder merged 1 commit into
dev/mantle-v1.7.0from
fix/v170-worker-map-test
Nov 19, 2026
Merged

ivanwang-coder merged 1 commit into
dev/mantle-v1.7.0from
fix/v170-worker-map-test

Conversation

@ivanwang-coder

Copy link
Copy Markdown

Summary

  • Fix an intermittent failure in worker_map_try_spawn_busy seen in the release PR #236 CI job. The worker sends the result before decrementing its pending count, so the immediate resubmission can still see it as busy.
  • Keep the assertion that a busy worker rejects work and verify that it accepts and completes the next task within five seconds.

Verification

  • Reproduced worker should be idle locally before the patch. The patched test passed 100 consecutive runs, and all 55 reth-tasks tests passed with all features enabled.
  • just test-ci passed. Nextest reported 380 passed and 3 skipped.
  • Workspace formatting, just clippy, and just test-doc passed.
  • Independent Claude Code static review found no blocking issues.

@ivanwang-coder
ivanwang-coder merged commit 12b897d into dev/mantle-v1.7.0 Nov 19, 2026
2 checks passed
@ivanwang-coder
ivanwang-coder deleted the fix/v170-worker-map-test branch November 19, 2026 06:54
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.

1 participant