Skip to content

test: allow half-open CONNECT tunnel sockets - #64973

Merged
trivikr merged 1 commit into
nodejs:mainfrom
trivikr:flaky-test-https-proxy-request-invalid-char-in-url
Aug 10, 2026
Merged

test: allow half-open CONNECT tunnel sockets#64973
trivikr merged 1 commit into
nodejs:mainfrom
trivikr:flaky-test-https-proxy-request-invalid-char-in-url

Conversation

@trivikr

@trivikr trivikr commented Aug 3, 2026

Copy link
Copy Markdown
Member

Refs: https://github.com/nodejs/reliability/issues?q=%22test-https-proxy-request-invalid-char-in-url%22

CONNECT tunnels are full-duplex. When the upstream socket receives a FIN while the client-to-upstream pipe is still draining, the default socket behavior can produce EPIPE or ECONNRESET errors.

Keep the upstream socket half-open so both directions can drain. Separate request logs from transport errors to verify that teardown completes without errors.


Assisted-by: codex:gpt-5.6-sol

@nodejs-github-bot nodejs-github-bot added needs-ci PRs that need a full CI run. test Issues and PRs related to the tests. labels Aug 3, 2026
@trivikr

trivikr commented Aug 3, 2026

Copy link
Copy Markdown
Member Author

@codecov

codecov Bot commented Aug 3, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.33%. Comparing base (ab95309) to head (780229b).
⚠️ Report is 3 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #64973   +/-   ##
=======================================
  Coverage   90.33%   90.33%           
=======================================
  Files         760      760           
  Lines      248523   248523           
  Branches    46904    46911    +7     
=======================================
  Hits       224505   224505           
+ Misses      15460    15454    -6     
- Partials     8558     8564    +6     

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

@lpinca lpinca added the request-ci Add this label to start a Jenkins CI on a PR. label Aug 4, 2026
@github-actions github-actions Bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Aug 4, 2026
@nodejs-github-bot

This comment was marked as outdated.

@nodejs-github-bot

This comment was marked as outdated.

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@trivikr trivikr added author ready PRs that have at least one approval, no pending requests for changes, and a CI started. commit-queue Add this label to land a pull request using GitHub Actions. labels Aug 9, 2026
@avivkeller avivkeller added commit-queue-failed An error occurred while landing this pull request using GitHub Actions. and removed commit-queue Add this label to land a pull request using GitHub Actions. labels Aug 9, 2026
@avivkeller

Copy link
Copy Markdown
Member
Commit Queue failed
- Loading data for nodejs/node/pull/64973
✔  Done loading data for nodejs/node/pull/64973
----------------------------------- PR info ------------------------------------
Title      test: allow half-open CONNECT tunnel sockets (#64973)
   ⚠  Could not retrieve the email or name of the PR author's from user's GitHub profile!
Branch     trivikr:flaky-test-https-proxy-request-invalid-char-in-url -> nodejs:main
Labels     test, author ready, needs-ci, commit-queue
Commits    1
 - test: allow half-open CONNECT tunnel sockets
Committers 1
 - Kamat, Trivikram <16024985+trivikr@users.noreply.github.com>
PR-URL: https://github.com/nodejs/node/pull/64973
Refs: https://github.com/nodejs/reliability/issues?q=%22test-https-proxy-request-invalid-char-in-url%22
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
------------------------------ Generated metadata ------------------------------
PR-URL: https://github.com/nodejs/node/pull/64973
Refs: https://github.com/nodejs/reliability/issues?q=%22test-https-proxy-request-invalid-char-in-url%22
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
--------------------------------------------------------------------------------
   ℹ  This PR was created on Mon, 03 Aug 2026 06:00:06 GMT
   ✔  Approvals: 1
   ✔  - Luigi Pinca (@lpinca): https://github.com/nodejs/node/pull/64973#pullrequestreview-4858130222
   ✘  This PR needs to wait 8 more hours to land (or 0 minutes if there is one more approval)
   ✔  Last GitHub CI successful
   ℹ  Last Full PR CI on 2026-08-06T05:55:30Z: https://ci.nodejs.org/job/node-test-pull-request/75553/
- Querying data for job/node-test-pull-request/75553/
✔  Build data downloaded
   ✔  Last Jenkins CI successful
--------------------------------------------------------------------------------
   ✔  Aborted `git node land` session in /Users/avivkeller/Documents/projects/nodejs/node/.ncu
/nodejs/node/actions/runs/

@avivkeller avivkeller added commit-queue Add this label to land a pull request using GitHub Actions. and removed commit-queue-failed An error occurred while landing this pull request using GitHub Actions. labels Aug 9, 2026
CONNECT tunnels are full-duplex. When the upstream socket receives a
FIN while the client-to-upstream pipe is still draining, the default
socket behavior can produce EPIPE or ECONNRESET errors.

Keep the upstream socket half-open so both directions can drain.
Separate request logs from transport errors to verify that teardown
completes without errors.

Signed-off-by: Kamat, Trivikram <16024985+trivikr@users.noreply.github.com>
Assisted-by: codex:gpt-5.6-sol
PR-URL: nodejs#64973
Refs: https://github.com/nodejs/reliability/issues?q=%22test-https-proxy-request-invalid-char-in-url%22
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
@trivikr
trivikr force-pushed the flaky-test-https-proxy-request-invalid-char-in-url branch from a83ef4f to 780229b Compare August 10, 2026 06:19
@trivikr
trivikr merged commit 780229b into nodejs:main Aug 10, 2026
18 of 19 checks passed
@trivikr

trivikr commented Aug 10, 2026

Copy link
Copy Markdown
Member Author

Landed in 780229b

@trivikr
trivikr deleted the flaky-test-https-proxy-request-invalid-char-in-url branch August 10, 2026 06:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author ready PRs that have at least one approval, no pending requests for changes, and a CI started. commit-queue Add this label to land a pull request using GitHub Actions. needs-ci PRs that need a full CI run. test Issues and PRs related to the tests.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants