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.16%. Comparing base (0de4fcc) to head (f4e2bf6).
⚠️ Report is 12 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #65926      +/-   ##
==========================================
- Coverage   90.17%   90.16%   -0.01%     
==========================================
  Files         771      771              
  Lines      265470   265470              
  Branches    50463    50456       -7     
==========================================
- Hits       239383   239367      -16     
- Misses      17055    17059       +4     
- Partials     9032     9044      +12     

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

@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

@jasnell
jasnell force-pushed the jasnell/http-test-time-fixes branch from e398ab4 to c45267a Compare September 10, 2026 20:56
Comment thread test/sequential/test-http2-timeout-large-write-file.js
Comment thread test/sequential/test-http2-timeout-large-write.js
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 c901e00 to f4e2bf6 Compare September 10, 2026 22:35
@panva panva added author ready PRs with CI started, the required approvals, and no outstanding review comments. request-ci Add this label to start a Jenkins CI on a PR. Only starts once the PR has an approving review. labels Sep 11, 2026
@github-actions github-actions Bot removed the request-ci Add this label to start a Jenkins CI on a PR. Only starts once the PR has an approving review. label Sep 11, 2026
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@panva

panva commented Sep 11, 2026

Copy link
Copy Markdown
Member

A few more optimizations in #65980

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

6 participants