Skip to content

test: prevent parser reuse across close scenarios - #66017

Open
panva wants to merge 1 commit into
nodejs:mainfrom
panva:test-http-connection-list-race
Open

test: prevent parser reuse across close scenarios#66017
panva wants to merge 1 commit into
nodejs:mainfrom
panva:test-http-connection-list-race

Conversation

@panva

@panva panva commented Sep 13, 2026

Copy link
Copy Markdown
Member

Both cases replace parser cleanup methods. Faster socket cleanup can return a modified parser to the shared pool and close it before the other request uses it.

Run the immediate and deferred close cases in separate test files so each gets its own process and parser pool. Preserve both cleanup paths and all call-count assertions.

@panva panva added the flaky-test Issues and PRs involving tests that fail intermittently in CI. label Sep 13, 2026
@panva

panva commented Sep 13, 2026

Copy link
Copy Markdown
Member Author

Refs: https://ci.nodejs.org/job/node-test-commit-aix/65367/

test/parallel/test-http-server-connection-list-when-close.js

@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 13, 2026
Comment thread test/parallel/test-http-server-connection-list-when-close.js Outdated
@codecov

codecov Bot commented Sep 13, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.20%. Comparing base (6193e15) to head (8f8e07a).

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #66017      +/-   ##
==========================================
- Coverage   90.20%   90.20%   -0.01%     
==========================================
  Files         785      785              
  Lines      269347   269347              
  Branches    51509    51509              
==========================================
- Hits       242971   242956      -15     
- Misses      16890    16900      +10     
- Partials     9486     9491       +5     

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

Both cases replace parser cleanup methods. Faster socket cleanup can
return a modified parser to the shared pool and close it before the
other request uses it.

Run the immediate and deferred close cases in separate test files so
each gets its own process and parser pool. Preserve both cleanup paths
and all call-count assertions.

Signed-off-by: Filip Skokan <panva.ip@gmail.com>
Assisted-by: Codex
@panva
panva force-pushed the test-http-connection-list-race branch from 8f8e07a to 2fe4eb2 Compare September 13, 2026 20:36
@panva panva added 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 13, 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 13, 2026
@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

flaky-test Issues and PRs involving tests that fail intermittently in CI. 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.

4 participants