Skip to content

debugger,test: deflake resume failure test and add debug logs#63524

Open
joyeecheung wants to merge 1 commit into
nodejs:mainfrom
joyeecheung:deflake-resume
Open

debugger,test: deflake resume failure test and add debug logs#63524
joyeecheung wants to merge 1 commit into
nodejs:mainfrom
joyeecheung:deflake-resume

Conversation

@joyeecheung
Copy link
Copy Markdown
Member

On slow CI, the outer Debugger.resume can be picked up in the same drain pass as the Debugger.evaluateOnCallFrame, while V8 still considers the context paused. In this case both resume calls may succeed and the process can continue running from the setInterval until the timeout. Accept both probe failure and timeout as valid to accommodate this flakiness.

This patch also adds more debug logs to the probe mode to show more information in case it flakes again in the CI

Fixes: #63505

On slow CI, the outer Debugger.resume can be picked up in the
same drain pass as the Debugger.evaluateOnCallFrame, while V8
still considers the context paused. In this case both resume
calls may succeed and the process can continue running from
the setInterval until the timeout. Accept both probe failure
and timeout as valid to accommodate this flakiness.

This patch also adds more debug logs to the probe mode to
show more information in case it flakes again in the CI

Signed-off-by: Joyee Cheung <joyeec9h3@gmail.com>
@nodejs-github-bot nodejs-github-bot added debugger Issues and PRs related to the debugger subsystem. needs-ci PRs that need a full CI run. labels May 23, 2026
@nodejs-github-bot
Copy link
Copy Markdown
Collaborator

@atlowChemi atlowChemi added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label May 23, 2026
@codecov
Copy link
Copy Markdown

codecov Bot commented May 23, 2026

Codecov Report

❌ Patch coverage is 78.94737% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 90.31%. Comparing base (c9562dd) to head (e9cb3fc).
⚠️ Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
lib/internal/debugger/inspect_probe.js 78.94% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #63524      +/-   ##
==========================================
+ Coverage   90.30%   90.31%   +0.01%     
==========================================
  Files         730      730              
  Lines      234188   234206      +18     
  Branches    43919    43912       -7     
==========================================
+ Hits       211478   211527      +49     
+ Misses      14443    14402      -41     
- Partials     8267     8277      +10     
Files with missing lines Coverage Δ
lib/internal/debugger/inspect_probe.js 79.45% <78.94%> (-0.14%) ⬇️

... and 37 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@joyeecheung
Copy link
Copy Markdown
Member Author

joyeecheung commented May 23, 2026

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author ready PRs that have at least one approval, no pending requests for changes, and a CI started. debugger Issues and PRs related to the debugger subsystem. needs-ci PRs that need a full CI run.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

parallel/test-debugger-probe-failure-resume is flaky

4 participants