Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert "net: validate host name for server listen" #54554

Closed
wants to merge 1 commit into from

Conversation

jakecastelli
Copy link
Contributor

@jakecastelli jakecastelli commented Aug 25, 2024

This reverts commit 52322aa.

Both PRs #54264 and #54470 made changes to the ipv6 related code base (net) and the latter caused the Github CI to break (break the test that added in the earlier PR). We should revert the change and properly fix the test before #54470 can land again to unblock the CI.

Update: Luigi has gone ahead and fixed the broken tests in #54556.
Update: More issues were identified, reopened again to revert it.

@nodejs-github-bot
Copy link
Collaborator

Review requested:

  • @nodejs/net

@nodejs-github-bot nodejs-github-bot added needs-ci PRs that need a full CI run. net Issues and PRs related to the net subsystem. labels Aug 25, 2024
@RedYetiDev RedYetiDev added the revert PRs that revert previously landed PRs. label Aug 25, 2024
@RedYetiDev
Copy link
Member

CC @jazelly

@ovflowd
Copy link
Member

ovflowd commented Aug 25, 2024

@jakecastelli are you looking into having this fast tracked?

@jakecastelli jakecastelli added the fast-track PRs that do not need to wait for 48 hours to land. label Aug 25, 2024
Copy link
Contributor

Fast-track has been requested by @jakecastelli. Please 👍 to approve.

@ovflowd
Copy link
Member

ovflowd commented Aug 25, 2024

@jakecastelli your own 👍 doesn't count for the fast-track request. So another collaborator is needed to fast track.

@jakecastelli
Copy link
Contributor Author

@jakecastelli your own 👍 doesn't count for the fast-track request. So another collaborator is needed to fast track.

Thanks for the heads up 🙏

@jakecastelli jakecastelli added the request-ci Add this label to start a Jenkins CI on a PR. label Aug 25, 2024
@github-actions github-actions bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Aug 25, 2024
@nodejs-github-bot
Copy link
Collaborator

Copy link

codecov bot commented Aug 25, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 87.35%. Comparing base (52322aa) to head (c3653d2).
Report is 27 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #54554      +/-   ##
==========================================
+ Coverage   87.33%   87.35%   +0.01%     
==========================================
  Files         649      649              
  Lines      182626   182618       -8     
  Branches    35035    35045      +10     
==========================================
+ Hits       159498   159519      +21     
+ Misses      16400    16382      -18     
+ Partials     6728     6717      -11     
Files Coverage Δ
lib/net.js 92.81% <ø> (+0.21%) ⬆️

... and 26 files with indirect coverage changes

@lpinca
Copy link
Member

lpinca commented Aug 25, 2024

Can't we simply fix the test instead of reverting this?

lpinca added a commit to lpinca/node that referenced this pull request Aug 25, 2024
Use valid hostnames in
`test/sequential/test-net-server-listen-ipv6-link-local.js`.

Refs: nodejs#54554
@RedYetiDev
Copy link
Member

See #54556 as well

nodejs-github-bot pushed a commit that referenced this pull request Aug 25, 2024
Use valid hostnames in
`test/sequential/test-net-server-listen-ipv6-link-local.js`.

Refs: #54554
PR-URL: #54556
Reviewed-By: Yagiz Nizipli <[email protected]>
Reviewed-By: Antoine du Hamel <[email protected]>
@aduh95 aduh95 removed the fast-track PRs that do not need to wait for 48 hours to land. label Aug 25, 2024
@aduh95
Copy link
Contributor

aduh95 commented Aug 25, 2024

Removing fast-track PRs that do not need to wait for 48 hours to land. as the other PR was merged, which IIUC also fixes the CI. Do we still want to land this?

@jakecastelli
Copy link
Contributor Author

jakecastelli commented Aug 25, 2024

Thanks guys for looking into this 🙏 it was nearly 1:30 A.M. when I found this issue and I wasn't sure if there is going to be more issues, the safest way comes to my mind was raising the issue, reverting (as I knew prior to this commit it was green), run CI, maybe land when I wake up 😄 but thanks @lpinca for looking into and fixing it and also everyone else who helped here!

Do we still want to land this?

Since the Github Actions / CI is green, we don't want to land this anymore 👍 if there are bugs, we can always send patches instead.

Update: Yes, we found bigger issue with that commit, and we need to revert the commit.

puskin94 pushed a commit to puskin94/node that referenced this pull request Aug 26, 2024
Use valid hostnames in
`test/sequential/test-net-server-listen-ipv6-link-local.js`.

Refs: nodejs#54554
PR-URL: nodejs#54556
Reviewed-By: Yagiz Nizipli <[email protected]>
Reviewed-By: Antoine du Hamel <[email protected]>
@jazelly
Copy link
Contributor

jazelly commented Aug 26, 2024

I started to think that we should revert that commit.

By looking at the implementation of server.listen, it accepts IDNs, so enforcing the host with only Ascii characters at this layer might not be appropriate.

@lpinca lpinca reopened this Aug 26, 2024
@lpinca lpinca added the request-ci Add this label to start a Jenkins CI on a PR. label Aug 26, 2024
@github-actions github-actions bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Aug 26, 2024
@nodejs-github-bot
Copy link
Collaborator

@nodejs-github-bot
Copy link
Collaborator

@nodejs-github-bot

This comment was marked as outdated.

@jakecastelli
Copy link
Contributor Author

jakecastelli commented Aug 26, 2024

Looks like we started the rerun around the same time @lpinca, I will cancel mine (as mine appears to be late 😄)
Update: cancelled and marked as outdated.

@jakecastelli
Copy link
Contributor Author

test-http2-socket-close has been extremely flaky 😞

@nodejs-github-bot
Copy link
Collaborator

@nodejs-github-bot
Copy link
Collaborator

nodejs-github-bot commented Aug 26, 2024

@benjamingr benjamingr added the commit-queue Add this label to land a pull request using GitHub Actions. label Aug 26, 2024
@nodejs-github-bot nodejs-github-bot 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 27, 2024
@nodejs-github-bot
Copy link
Collaborator

Commit Queue failed
- Loading data for nodejs/node/pull/54554
✔  Done loading data for nodejs/node/pull/54554
----------------------------------- PR info ------------------------------------
Title      Revert "net: validate host name for server listen" (#54554)
   ⚠  Could not retrieve the email or name of the PR author's from user's GitHub profile!
Branch     jakecastelli:revert-52322aa -> nodejs:main
Labels     net, needs-ci, revert
Commits    1
 - Revert "net: validate host name for server listen"
Committers 1
 - jakecastelli <[email protected]>
PR-URL: https://github.com/nodejs/node/pull/54554
Reviewed-By: Claudio Wunder <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Ulises Gascón <[email protected]>
Reviewed-By: Benjamin Gruenbaum <[email protected]>
------------------------------ Generated metadata ------------------------------
PR-URL: https://github.com/nodejs/node/pull/54554
Reviewed-By: Claudio Wunder <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Ulises Gascón <[email protected]>
Reviewed-By: Benjamin Gruenbaum <[email protected]>
--------------------------------------------------------------------------------
   ℹ  This PR was created on Sun, 25 Aug 2024 15:48:40 GMT
   ✔  Approvals: 5
   ✔  - Claudio Wunder (@ovflowd): https://github.com/nodejs/node/pull/54554#pullrequestreview-2259334489
   ✔  - James M Snell (@jasnell) (TSC): https://github.com/nodejs/node/pull/54554#pullrequestreview-2259336303
   ✔  - Luigi Pinca (@lpinca): https://github.com/nodejs/node/pull/54554#pullrequestreview-2261077656
   ✔  - Ulises Gascón (@UlisesGascon): https://github.com/nodejs/node/pull/54554#pullrequestreview-2259348797
   ✔  - Benjamin Gruenbaum (@benjamingr) (TSC): https://github.com/nodejs/node/pull/54554#pullrequestreview-2261429112
   ✘  Last GitHub CI failed
   ℹ  Last Full PR CI on 2024-08-26T14:06:43Z: https://ci.nodejs.org/job/node-test-pull-request/61491/
- Querying data for job/node-test-pull-request/61491/
   ✔  Last Jenkins CI successful
--------------------------------------------------------------------------------
   ✔  Aborted `git node land` session in /home/runner/work/node/node/.ncu
https://github.com/nodejs/node/actions/runs/10581610536

@jakecastelli
Copy link
Contributor Author

Last GitHub CI failed

This is not true 😞 landing manually now

jakecastelli added a commit that referenced this pull request Aug 28, 2024
This reverts commit 52322aa.

PR-URL: #54554
Reviewed-By: Claudio Wunder <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Ulises Gascón <[email protected]>
Reviewed-By: Benjamin Gruenbaum <[email protected]>
@jakecastelli
Copy link
Contributor Author

Landed in 4f14eb1

@jakecastelli jakecastelli removed the commit-queue-failed An error occurred while landing this pull request using GitHub Actions. label Aug 28, 2024
@Gguyzaza
Copy link

Ok

RafaelGSS pushed a commit that referenced this pull request Aug 30, 2024
Use valid hostnames in
`test/sequential/test-net-server-listen-ipv6-link-local.js`.

Refs: #54554
PR-URL: #54556
Reviewed-By: Yagiz Nizipli <[email protected]>
Reviewed-By: Antoine du Hamel <[email protected]>
RafaelGSS pushed a commit that referenced this pull request Aug 30, 2024
This reverts commit 52322aa.

PR-URL: #54554
Reviewed-By: Claudio Wunder <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Ulises Gascón <[email protected]>
Reviewed-By: Benjamin Gruenbaum <[email protected]>
RafaelGSS pushed a commit that referenced this pull request Aug 30, 2024
Use valid hostnames in
`test/sequential/test-net-server-listen-ipv6-link-local.js`.

Refs: #54554
PR-URL: #54556
Reviewed-By: Yagiz Nizipli <[email protected]>
Reviewed-By: Antoine du Hamel <[email protected]>
RafaelGSS pushed a commit that referenced this pull request Aug 30, 2024
This reverts commit 52322aa.

PR-URL: #54554
Reviewed-By: Claudio Wunder <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Ulises Gascón <[email protected]>
Reviewed-By: Benjamin Gruenbaum <[email protected]>
@RafaelGSS RafaelGSS mentioned this pull request Aug 30, 2024
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. net Issues and PRs related to the net subsystem. revert PRs that revert previously landed PRs.
Projects
None yet
Development

Successfully merging this pull request may close these issues.