Skip to content

test: implement http test optimizations - #65926

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

test: implement http test optimizations#65926
jasnell wants to merge 1 commit into
nodejs:mainfrom
jasnell:jasnell/http-test-time-fixes

Conversation

@jasnell

@jasnell jasnell commented Sep 9, 2026

Copy link
Copy Markdown
Member

Reviewing the performance of http tests in the smartos CI runs revealed that a handful of HTTP related tests are running way longer than they should, with some hitting upwards of 66 seconds!

  • Ten HTTP/HTTPS tests now close connections deterministically instead of waiting 66 seconds.
  • Two HTTP/2 tests use an explicit 64KiB stream window and 3MB payload, while restoring timeout assertions.
  • Estimated SmartOS CI saving: about 4.5 minutes at -j4.

@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
Comment thread test/parallel/test-http-insecure-parser.js Outdated
@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 (e398ab4).
⚠️ Report is 9 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #65926      +/-   ##
==========================================
- Coverage   92.40%   90.18%   -2.23%     
==========================================
  Files         417      771     +354     
  Lines      188989   265444   +76455     
  Branches    28924    50438   +21514     
==========================================
+ Hits       174642   239379   +64737     
- Misses      14015    17020    +3005     
- Partials      332     9045    +8713     

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.

Reviewing the performance of http tests in the smartos
CI runs revealed that a handful of HTTP related tests
are running way longer than they should, with some hitting
upwards of 66 seconds!

- Ten HTTP/HTTPS tests now close connections
  deterministically instead of waiting 66 seconds.
- Two HTTP/2 tests use an explicit 64KiB stream window
  and 3MB payload, while restoring timeout assertions.
- Estimated SmartOS CI saving: about 4.5 minutes at -j4.

Signed-off-by: James M Snell <jasnell@gmail.com>
Assisted-by: Opencode
@jasnell
jasnell force-pushed the jasnell/http-test-time-fixes branch from 7db2aad to e398ab4 Compare September 9, 2026 05:19
@jasnell
jasnell requested a review from mcollina September 9, 2026 05:19
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

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