Skip to content

test: check the TLS server name on address-family fallback locally - #67595

Closed
tamird wants to merge 1 commit into
nodejs:mainfrom
tamird:proposal/tls-autoselectfamily-loopback
Closed

tamird wants to merge 1 commit into
nodejs:mainfrom
tamird:proposal/tls-autoselectfamily-loopback

Conversation

@tamird

@tamird tamird commented Nov 18, 2026

Copy link
Copy Markdown
Contributor

The TLS address-selection test connects to nodejs.org twice. A reset
can fail the test before the handshake completes, and the addresses
returned by DNS determine whether the client ever tries a second one.

Run a TLS server on IPv4 loopback. With address-family selection
enabled, return IPv6 loopback first so the client has to switch TCP
handles. Check which server name reaches the server and keep certificate
verification enabled on the client.

Refs: #46679
Assisted-by: Codex

@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 Nov 18, 2026
The TLS address-selection test connects to nodejs.org twice. A reset
can fail the test before the handshake completes, and the addresses
returned by DNS determine whether the client ever tries a second one.

Run a TLS server on IPv4 loopback. With address-family selection
enabled, return IPv6 loopback first so the client has to switch TCP
handles. Check which server name reaches the server and keep certificate
verification enabled on the client.

Refs: nodejs#46679
Assisted-by: Codex
Signed-off-by: Tamir Duberstein <tamird@gmail.com>
@tamird
tamird force-pushed the proposal/tls-autoselectfamily-loopback branch from d4e54a1 to 15c2edb Compare November 18, 2026 23:14
@codecov

codecov Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.70%. Comparing base (b7df44b) to head (15c2edb).
⚠️ Report is 135 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #67595      +/-   ##
==========================================
- Coverage   90.73%   90.70%   -0.03%     
==========================================
  Files         801      801              
  Lines      280787   280787              
  Branches    54221    54202      -19     
==========================================
- Hits       254765   254700      -65     
- Misses      16203    16261      +58     
- Partials     9819     9826       +7     

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

@tamird

tamird commented Nov 19, 2026

Copy link
Copy Markdown
Contributor Author

Is this ready to land? The test-internet failure appears to be unrelated.

@jakecastelli

Copy link
Copy Markdown
Member

I have rerun the GHA for the Test internet job, once its green, we will need a full CI run before we can land it.

@tamird

tamird commented Nov 19, 2026

Copy link
Copy Markdown
Contributor Author

Could you start full CI now that test-internet is green?

Posted by Codex on behalf of @tamird.

@jakecastelli jakecastelli 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 Nov 20, 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 Nov 20, 2026
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@tamird

tamird commented Nov 21, 2026

Copy link
Copy Markdown
Contributor Author

Is it normal for CI to take over a day?

@jakecastelli

Copy link
Copy Markdown
Member

CI actually passed - it was just a glitch with the reporting to Github

@jakecastelli jakecastelli added the author ready PRs with CI started, the required approvals, and no outstanding review comments. label Nov 21, 2026
@tamird

tamird commented Nov 22, 2026

Copy link
Copy Markdown
Contributor Author

Cool, is this ready to merge?

@jakecastelli

jakecastelli commented Nov 22, 2026 •

Copy link
Copy Markdown
Member

I can put a commit-queue label on the PR, though it will land in a few days unless there is another approval.

At least two collaborators must approve a pull request before the pull request lands. One collaborator approval is enough if the pull request has been open for more than seven days.

ref: https://github.com/nodejs/node/blob/main/doc/contributing/collaborator-guide.md#code-reviews

@jakecastelli jakecastelli added the commit-queue PRs queued for automated landing through the Commit Queue. label Nov 22, 2026
@nodejs-github-bot nodejs-github-bot added commit-queue-failed PRs whose Commit Queue landing failed and need manual intervention before retrying. and removed commit-queue PRs queued for automated landing through the Commit Queue. labels Nov 22, 2026
@nodejs-github-bot

This comment was marked as resolved.

@jakecastelli jakecastelli removed the commit-queue-failed PRs whose Commit Queue landing failed and need manual intervention before retrying. label Nov 22, 2026
@jakecastelli

Copy link
Copy Markdown
Member

Sorry, I thought it would wait until 7 days.

@tamird

tamird commented Nov 22, 2026

Copy link
Copy Markdown
Contributor Author

Thanks! This can merge now with 2 approvals, yes?

@gurgunday

Copy link
Copy Markdown
Member

Yes it can

@jakecastelli jakecastelli added the commit-queue PRs queued for automated landing through the Commit Queue. label Nov 22, 2026
@nodejs-github-bot nodejs-github-bot added commit-queue-failed PRs whose Commit Queue landing failed and need manual intervention before retrying. and removed commit-queue PRs queued for automated landing through the Commit Queue. labels Nov 22, 2026
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

Commit Queue failed

✖ GitHub CI is still running

The pull request was removed from the Commit Queue and labeled commit-queue-failed PRs whose Commit Queue landing failed and need manual intervention before retrying. . After resolving the failure, remove that label and add commit-queue PRs queued for automated landing through the Commit Queue. to retry.

Full Commit Queue output
�[36m⠋�[39m Loading data for nodejs/node/pull/67595
�[36m⠋�[39m Loading data for nodejs/node/pull/67595
�[36m⠋�[39m Getting collaborator contacts from README of nodejs/node
�[36m⠋�[39m Getting PR from nodejs/node/pull/67595
�[36m⠋�[39m Getting reviews from nodejs/node/pull/67595
�[36m⠋�[39m Getting comments from nodejs/node/pull/67595
�[36m⠋�[39m Getting commits from nodejs/node/pull/67595
✔  Done loading data for nodejs/node/pull/67595
----------------------------------- PR info ------------------------------------
Title      test: check the TLS server name on address-family fallback locally (#67595)
Author     Tamir Duberstein <tamird@gmail.com> (@tamird)
Branch     tamird:proposal/tls-autoselectfamily-loopback -> nodejs:main
Labels     test, author ready, needs-ci, commit-queue
Commits    1
 - test: check the TLS server name on address-family fallback locally
Committers 1
 - Tamir Duberstein <tamird@gmail.com>
PR-URL: https://github.com/nodejs/node/pull/67595
Refs: https://github.com/nodejs/node/issues/46679
Reviewed-By: Tierney Cyren <hello@bnb.im>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Gürgün Dayıoğlu <hey@gurgun.day>
------------------------------ Generated metadata ------------------------------
PR-URL: https://github.com/nodejs/node/pull/67595
Refs: https://github.com/nodejs/node/issues/46679
Reviewed-By: Tierney Cyren <hello@bnb.im>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Gürgün Dayıoğlu <hey@gurgun.day>
--------------------------------------------------------------------------------
   ℹ  This PR was created on Wed, 18 Nov 2026 23:11:54 GMT
   ✔  Approvals: 3
   ✔  - Tierney Cyren (@bnb): https://github.com/nodejs/node/pull/67595#pullrequestreview-5966960144
   ✔  - James M Snell (@jasnell) (TSC): https://github.com/nodejs/node/pull/67595#pullrequestreview-6014285398
   ✔  - Gürgün Dayıoğlu (@gurgunday): https://github.com/nodejs/node/pull/67595#pullrequestreview-6014883170
   ✖  GitHub CI is still running
   ℹ  Last Full PR CI on 2026-11-22T14:13:05Z: https://ci.nodejs.org/job/node-test-pull-request/79320/
�[36m⠙�[39m Querying data for job/node-test-pull-request/79320/
�[36m⠙�[39m Querying data for job/node-test-pull-request/79320/
�[36m⠙�[39m Querying API for job/node-test-pull-request/79320/
✔  Build data downloaded
   ✔  Last Jenkins CI successful
--------------------------------------------------------------------------------
   ✔  Aborted `git node land` session in /home/runner/work/node/node/.ncu

View workflow run

jakecastelli pushed a commit that referenced this pull request Nov 23, 2026
The TLS address-selection test connects to nodejs.org twice. A reset
can fail the test before the handshake completes, and the addresses
returned by DNS determine whether the client ever tries a second one.

Run a TLS server on IPv4 loopback. With address-family selection
enabled, return IPv6 loopback first so the client has to switch TCP
handles. Check which server name reaches the server and keep certificate
verification enabled on the client.

Refs: #46679
Assisted-by: Codex
Signed-off-by: Tamir Duberstein <tamird@gmail.com>
PR-URL: #67595
Reviewed-By: Tierney Cyren <hello@bnb.im>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Gürgün Dayıoğlu <hey@gurgun.day>
@jakecastelli jakecastelli removed the commit-queue-failed PRs whose Commit Queue landing failed and need manual intervention before retrying. label Nov 23, 2026
@jakecastelli

Copy link
Copy Markdown
Member

Landed in 660c104

@tamird
tamird deleted the proposal/tls-autoselectfamily-loopback branch November 23, 2026 03:45
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