Skip to content

Comments

test: increase debugger waitFor timeout on macOS and Windows#61902

Open
mcollina wants to merge 1 commit intonodejs:mainfrom
mcollina:fix-flaky-debugger-restart-message
Open

test: increase debugger waitFor timeout on macOS and Windows#61902
mcollina wants to merge 1 commit intonodejs:mainfrom
mcollina:fix-flaky-debugger-restart-message

Conversation

@mcollina
Copy link
Member

@mcollina mcollina commented Feb 20, 2026

Summary

  • Increase the macOS/Windows debugger test timeout from 15s to 30s

The test-debugger-restart-message test is flaky on macOS CI. The Debugger.on('paused') handler in the inspect REPL prints the "break in" message only after an async Debugger.getScriptSource CDP round-trip to V8 completes. On loaded macOS CI machines, this round-trip can exceed the 15s timeout.

The timeout has already been bumped twice (5s→10s in #56970, 10s→15s for macOS in #60367). platformTimeout() applies no multiplier for macOS, so the raw ms value is the actual timeout. Doubling to 30s provides adequate headroom.

Test plan

  • test-debugger-restart-message passes locally
  • CI passes on macOS

The test-debugger-restart-message test is flaky on macOS CI because the
Debugger.getScriptSource CDP round-trip in the initial break handler
can be slow under CI load, causing the 15s timeout to be exceeded.

Increase the macOS/Windows timeout from 15s to 30s to provide adequate
headroom.
@nodejs-github-bot nodejs-github-bot added needs-ci PRs that need a full CI run. test Issues and PRs related to the tests. labels Feb 20, 2026
@codecov
Copy link

codecov bot commented Feb 20, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.77%. Comparing base (ae2ffce) to head (bc6562f).
⚠️ Report is 105 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #61902      +/-   ##
==========================================
+ Coverage   89.75%   89.77%   +0.01%     
==========================================
  Files         674      674              
  Lines      204416   204886     +470     
  Branches    39285    39377      +92     
==========================================
+ Hits       183472   183929     +457     
  Misses      13227    13227              
- Partials     7717     7730      +13     

see 78 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.

@legendecas legendecas added the request-ci Add this label to start a Jenkins CI on a PR. label Feb 20, 2026
@github-actions github-actions bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Feb 20, 2026
@nodejs-github-bot
Copy link
Collaborator

@mcollina mcollina added request-ci Add this label to start a Jenkins CI on a PR. author ready PRs that have at least one approval, no pending requests for changes, and a CI started. labels Feb 20, 2026
@github-actions github-actions bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Feb 20, 2026
@nodejs-github-bot
Copy link
Collaborator

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. needs-ci PRs that need a full CI run. test Issues and PRs related to the tests.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants