Uh oh!
There was an error while loading. Please reload this page.
dns: default to verbatim=true in dns.lookup() - #37681
Conversation
42e0a69 to
0e73564CompareUh oh!
There was an error while loading. Please reload this page.
jasnell
commented
Mar 9, 2021
@nodejs/tsc ... do we need to to take the current default through a deprecation cycle first? |
jasnell
commented
Mar 9, 2021
This could use a test |
richfelker
commented
Mar 10, 2021
The failing tests look like they're just wrong assertions that |
Yeah, now the question is...should |
richfelker
commented
Mar 10, 2021
The test should simply assert that it's one or the other, allowing either, since the result you get depends on whether the environment is ipv6-capable. |
treysis
commented
Mar 10, 2021
Is there an OR statement for |
aduh95
commented
Mar 10, 2021
You can use assert.match and a RegEx. |
treysis
commented
Mar 10, 2021
I suspect it's failing now because the debugger only listens on Now, either we assume that every IPv6 system will always be reachable via IPv4 at least on localhost, we could change |
e6d93bb to
6aca9afCompareUh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I feel lilke one problem here is that instances are listening on Another obstacle will be to make the code really dualstack. Because |
Uh oh!
There was an error while loading. Please reload this page.
nodejs-github-bot
commented
Mar 25, 2021
treysis
commented
Mar 25, 2021
It passed. Somehow the connection to this PR is broken? Here it still shows as if it's running. |
nodejs-github-bot
commented
Mar 25, 2021
Ok so it passed. Yet there are still some tests shown here on github that link to older runs and don't show as finished, e.g.: |
nodejs-github-bot
commented
Mar 25, 2021
The other error is just 'flakiness' (nothing to do with networking). |
nodejs-github-bot
commented
Mar 25, 2021
treysis
commented
Mar 25, 2021
Yeah, the other error disappeared. But |
aduh95
commented
Mar 25, 2021
Which is something that you are confident that it can be solved at the CI machine config level, correct? If so, that shouldn't be a problem for landing this PR. |
treysis
commented
Mar 25, 2021
Well, I am not very well versed in Unix, neither Solaris nor SmartOS in particular. It seems as if SmartOS only resolves localhost to '::1' when connecting if there's more IPv6 configured than the I'd change the |
aduh95
left a comment
There was a problem hiding this comment.
Can we try those suggestions before calling for more reviews?
Uh oh!
There was an error while loading. Please reload this page.
| const assert = require('assert'); | ||
| const c = net.createConnection(common.PORT); | ||
| const c = net.createConnection(common.PORT, common.localhostIPv4); |
There was a problem hiding this comment.
FWIW I think assert.match would make more sense for this test.
aduh95
commented
Mar 26, 2021
I you are able to implement the last two request above, I can spawn another CI job (if it doesn't pass we'll revert and call it done). Once my suggestions addressed, I think considering the size of this PR and the fact there is already ≥200 comments on it, it would be worth opening a new one, and explain in the OP:
I don't think we would fine anyone with enough motivation to go through reading all comments to understand how we arrived at this result. |
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
Done.
Totally agree!
Actually, I feel like starting over from zero with all that we have learned so far. If just the CI jobs were faster or I could set it up at my PC to test it locally :/ it would be nice being able to just run the tests that fail, and not the whole building procedure and all of the tests. |
nodejs-github-bot
commented
Mar 26, 2021
treysis
commented
Mar 26, 2021
Failed now on I think I'll craft a new PR and we continue from there. |
|
Switch the default from false (reorder the result so that IPv4 addresses come before IPv6 addresses) to true (return them exactly as the resolver sent them to us.) Fixes: nodejs#31566 Refs: nodejs#6307 Refs: nodejs#20710 Reissue of nodejs#31567 Reissue of nodejs#37681
treysis
commented
Mar 26, 2021
Continues in #37931 |
Switch the default from false (reorder the result so that IPv4 addresses come before IPv6 addresses) to true (return them exactly as the resolver sent them to us.) Fixes: nodejs#31566 Refs: nodejs#6307 Refs: nodejs#20710 Refs: nodejs#38099 Reissue of nodejs#31567 Reissue of nodejs#37681 Reissue of nodejs#37931
Switch the default from false (reorder the result so that IPv4 addresses
come before IPv6 addresses) to true (return them exactly as the resolver
sent them to us.)
Fixes: #31566
Refs: #6307
Refs: #20710
Reissue of #31567