Skip to content

test: improve sequential test performance - #65928

Open
jasnell wants to merge 1 commit into
nodejs:mainfrom
jasnell:jasnell/sequential-test-fixes
Open

test: improve sequential test performance#65928
jasnell wants to merge 1 commit into
nodejs:mainfrom
jasnell:jasnell/sequential-test-fixes

Conversation

@jasnell

@jasnell jasnell commented Sep 9, 2026

Copy link
Copy Markdown
Member

Make a couple of sequential tests clean up eagerly to reduce runtime. Potentially saves in the range of 5-12 seconds per run on some CI jobs.

Make a couple of sequential tests clean up eagerly
to reduce runtime.

Signed-off-by: James M Snell <jasnell@gmail.com>
Assisted-by: Opencode
@jasnell
jasnell requested review from aduh95 and mcollina September 9, 2026 06:04
@nodejs-github-bot nodejs-github-bot added needs-ci PRs that need a full CI run. test Issues and PRs related to Node.js core tests and test infrastructure. labels Sep 9, 2026
@codecov

codecov Bot commented Sep 9, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.18%. Comparing base (cb9b870) to head (e52279d).
⚠️ Report is 9 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #65928      +/-   ##
==========================================
- Coverage   92.40%   90.18%   -2.23%     
==========================================
  Files         417      771     +354     
  Lines      188989   265451   +76462     
  Branches    28924    50454   +21530     
==========================================
+ Hits       174642   239404   +64762     
- Misses      14015    17018    +3003     
- Partials      332     9029    +8697     

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

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@jasnell
jasnell requested a review from codebytere September 9, 2026 13:35
// Family autoselection might be skipped if only a single address is returned by DNS.
const actualError = Array.isArray(error.errors) ? error.errors[0] : error;

net.createConnection({ host: common.localhostIPv4, port }).on('error', common.mustCallAtLeast((error) => {

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.

Suggested change
net.createConnection({ host: common.localhostIPv4, port }).on('error', common.mustCallAtLeast((error) => {
net.createConnection({ host: common.localhostIPv4, port }).on('error', common.mustCall((error) => {

if (rounds === ROUNDS) return check();
rounds++;
pummel();
}, 0));

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.

Suggested change
}));

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

Labels

needs-ci PRs that need a full CI run. 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.

3 participants