Repository navigation
Conversation
The test expected fixed thread ids, but a thread id is allocated when a Worker is constructed. The `idle` Worker could construct its `nested` Worker before the main thread constructed its third Worker, so the two swapped ids. Create the Worker that creates another Worker last, so that all ids are allocated in a fixed order. Refs: nodejs#67712 Signed-off-by: inoway46 <inoueyuya416@gmail.com> Assisted-by: Claude Code
inoway46
marked this pull request as ready for review
November 26, 2026 04:44
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #67783 +/- ##
==========================================
- Coverage 90.50% 90.49% -0.02%
==========================================
Files 805 805
Lines 285778 285806 +28
Branches 55174 55176 +2
==========================================
- Hits 258654 258631 -23
- Misses 17217 17263 +46
- Partials 9907 9912 +5 🚀 New features to boost your workflow:
|
jasnell
approved these changes
Nov 26, 2026
Collaborator
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The test hard-coded thread ids, but the
idleWorker could create itsnestedWorker before the main thread created its last Worker, swapping their ids. This createsidlelast so the ids are fixed.Before the fix, it failed 9/300 on macOS (300/300 with an injected delay). After the fix, it passed 300/300 in every case: https://github.com/inoway46/node/actions/runs/45648605932
Failed runs: 1, 2, 3
Refs: #67712