test: unflake debugger and REPL tests#64718
Open
mcollina wants to merge 1 commit into
Open
Conversation
avivkeller
approved these changes
Jul 24, 2026
Member
There was a problem hiding this comment.
LGTM, but note that the flake won't be entirely resolved until https://chromium-review.googlesource.com/c/v8/v8/+/8123081 lands1
Footnotes
-
Running async, as you've done, makes this far more unlikely, but there's still a (albeit <0.1% chance, per my testing) chance of it catching itself, if GC occurs at a poor time ↩
Collaborator
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #64718 +/- ##
========================================
Coverage 90.15% 90.15%
========================================
Files 741 743 +2
Lines 242251 242408 +157
Branches 45624 45650 +26
========================================
+ Hits 218391 218533 +142
- Misses 15351 15367 +16
+ Partials 8509 8508 -1 🚀 New features to boost your workflow:
|
Member
|
Run the debugger function-formatting checks against an auto-resumed, long-lived target so they do not depend on initial-break rendering. Use a synchronous VM evaluator for the REPL handleError test. Submit the throwing input separately and wait for clean REPL teardown. Signed-off-by: Matteo Collina <hello@matteocollina.com>
mcollina
force-pushed
the
fix-macos-test-flakes
branch
from
July 25, 2026 08:01
58ed4da to
dd871fa
Compare
avivkeller
approved these changes
Jul 25, 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.
Refs: https://github.com/nodejs/node/actions/runs/30080039199/job/89439279468?pr=64339
The macOS job exposed two independent test races:
test-debugger-extract-function-nameonly checks formatting from theexeccommand, but synchronized on an unrelated initial-break message. Run it
against an auto-resumed, long-lived target and synchronize directly on the
debugger prompt instead.
test-repl-user-error-handlercould receive an inspectorPromise was collectedevaluation error before the user error it intended toassert. Give this focused
handleErrortest a synchronous VM evaluator,submit the throwing and follow-up expressions separately, and await clean
REPL teardown.
Validation:
python3 tools/test.py parallel/test-debugger-extract-function-name parallel/test-repl-user-error-handler