Skip to content

test: deflake recent CI failures - #66722

Open
panva wants to merge 6 commits into
nodejs:mainfrom
panva:reliability-deflake-2026-10-14
Open

panva wants to merge 6 commits into
nodejs:mainfrom
panva:reliability-deflake-2026-10-14

Conversation

@panva

@panva panva commented Oct 14, 2026

Copy link
Copy Markdown
Member

Deflake tests appearing in the October 10–14 reliability reports:

  • parallel/test-net-autoselectfamily-local-port
  • report/test-report-process-timeout-worker
  • parallel/test-inspector-debug-end
  • parallel/test-fastutf8stream-periodicflush
  • parallel/test-sqlite-statement
  • SharedIsolateTest.EnvironmentsComeAndGoWhileSiblingsRun

Refs: nodejs/reliability#1686
Refs: nodejs/reliability#1687
Refs: nodejs/reliability#1690

Assisted-by: Codex

panva added 6 commits October 14, 2026 11:37
Reserve the source port with a dual-stack listener and keep it open
until the destination server is listening. This prevents choosing an
occupied IPv6 port or letting the destination reuse the source port.

Refs: nodejs/reliability#1686
Signed-off-by: Filip Skokan <panva.ip@gmail.com>
Assisted-by: Codex
Retry attempts that did not reach the blocked Worker before parsing
their report. A timeout during startup can force exit before the report
is complete. Keep the report and exit assertions once startup is ready.

Refs: nodejs/reliability#1687
Signed-off-by: Filip Skokan <panva.ip@gmail.com>
Assisted-by: Codex
The self-directed debug signal restarts the inspector asynchronously.
Wait for the replacement server to listen before asking the child to
exit, instead of racing startup against a zero-delay timer.

Refs: nodejs/reliability#1687
Signed-off-by: Filip Skokan <panva.ip@gmail.com>
Assisted-by: Codex
Keep the event loop alive until the periodic write drains and let the
test runner enforce the timeout. A one-second deadline can expire while
asynchronous file I/O is still pending on a busy CI machine.

Refs: nodejs/reliability#1690
Signed-off-by: Filip Skokan <panva.ip@gmail.com>
Assisted-by: Codex
The oversized-string cases allocate hundreds of megabytes and can make
the ordinary statement test time out under parallel suite load. Move
all five cases unchanged to the sequential pummel suite, which also
allows more time for intensive tests.

Refs: nodejs/reliability#1690
Signed-off-by: Filip Skokan <panva.ip@gmail.com>
Assisted-by: Codex
Ten thousand non-blocking loop turns can finish before the Worker has
started. Use a thirty-second deadline and yield between turns while
waiting for its exit, preserving the expected exit-code assertion.

Refs: nodejs/reliability#1687
Signed-off-by: Filip Skokan <panva.ip@gmail.com>
Assisted-by: Codex
@panva panva added flaky-test Issues and PRs involving tests that fail intermittently in CI. commit-queue-rebase PRs the Commit Queue should land as multiple self-contained commits. labels Oct 14, 2026
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/sqlite

@nodejs-github-bot nodejs-github-bot added needs-ci PRs that need a full CI run. report Issues and PRs related to Node.js diagnostic reports. test Issues and PRs related to Node.js core tests and test infrastructure. labels Oct 14, 2026
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@panva panva added the author ready PRs with CI started, the required approvals, and no outstanding review comments. label Oct 14, 2026
@codecov

codecov Bot commented Oct 14, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.47%. Comparing base (dd7235c) to head (ab9e085).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #66722      +/-   ##
==========================================
- Coverage   90.48%   90.47%   -0.02%     
==========================================
  Files         791      791              
  Lines      277204   277204              
  Branches    53311    53310       -1     
==========================================
- Hits       250841   250788      -53     
- Misses      16760    16812      +52     
- Partials     9603     9604       +1     

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

@mcollina mcollina left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@araujogui araujogui left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@panva panva added the commit-queue PRs queued for automated landing through the Commit Queue. label Oct 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author ready PRs with CI started, the required approvals, and no outstanding review comments. commit-queue PRs queued for automated landing through the Commit Queue. commit-queue-rebase PRs the Commit Queue should land as multiple self-contained commits. flaky-test Issues and PRs involving tests that fail intermittently in CI. needs-ci PRs that need a full CI run. report Issues and PRs related to Node.js diagnostic reports. test Issues and PRs related to Node.js core tests and test infrastructure.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants