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
Member

@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
Member 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 (7fea010) to head (c3653d2).
Report is 326 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #54554      +/-   ##
==========================================
+ Coverage   87.32%   87.35%   +0.02%     
==========================================
  Files         649      649              
  Lines      182618   182618              
  Branches    35033    35045      +12     
==========================================
+ Hits       159475   159519      +44     
+ Misses      16407    16382      -25     
+ Partials     6736     6717      -19     
Files with missing lines Coverage Δ
lib/net.js 92.81% <ø> (ø)

... and 27 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 <yagiz@nizipli.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
@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
Member 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.

@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
Member 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
Member 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 <jake.yuesong@gmail.com>
PR-URL: https://github.com/nodejs/node/pull/54554
Reviewed-By: Claudio Wunder <cwunder@gnome.org>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Ulises Gascón <ulisesgascongonzalez@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
------------------------------ Generated metadata ------------------------------
PR-URL: https://github.com/nodejs/node/pull/54554
Reviewed-By: Claudio Wunder <cwunder@gnome.org>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Ulises Gascón <ulisesgascongonzalez@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
--------------------------------------------------------------------------------
   ℹ  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
Member 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 <cwunder@gnome.org>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Ulises Gascón <ulisesgascongonzalez@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
@jakecastelli
Copy link
Member 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 <yagiz@nizipli.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
RafaelGSS pushed a commit that referenced this pull request Aug 30, 2024
This reverts commit 52322aa.

PR-URL: #54554
Reviewed-By: Claudio Wunder <cwunder@gnome.org>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Ulises Gascón <ulisesgascongonzalez@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
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 <yagiz@nizipli.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
RafaelGSS pushed a commit that referenced this pull request Aug 30, 2024
This reverts commit 52322aa.

PR-URL: #54554
Reviewed-By: Claudio Wunder <cwunder@gnome.org>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Ulises Gascón <ulisesgascongonzalez@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
@RafaelGSS RafaelGSS mentioned this pull request Aug 30, 2024
@targos targos added the dont-land-on-v20.x PRs that should not land on the v20.x-staging branch and should not be released in v20.x. label Sep 22, 2024
louwers pushed a commit to louwers/node that referenced this pull request Nov 2, 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 <yagiz@nizipli.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
louwers pushed a commit to louwers/node that referenced this pull request Nov 2, 2024
This reverts commit 52322aa.

PR-URL: nodejs#54554
Reviewed-By: Claudio Wunder <cwunder@gnome.org>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Ulises Gascón <ulisesgascongonzalez@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dont-land-on-v20.x PRs that should not land on the v20.x-staging branch and should not be released in v20.x. 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.