Skip to content

test: de-flake test-dns-idna2008.js - #26473

Merged
refack merged 1 commit into
nodejs:masterfrom
refack:fix-idna2008-test
Mar 9, 2019
Merged

test: de-flake test-dns-idna2008.js#26473
refack merged 1 commit into
nodejs:masterfrom
refack:fix-idna2008-test

Conversation

@refack

@refackrefack commented Mar 6, 2019

Copy link
Copy Markdown
Contributor

Use a known well behaved DNS server.

/CC @nodejs/testing

Fixes: #25870

P.S. ATM the DNS server configured on one of our CI workers, fails for the domain name used in this test:

root@test-rackspace-ubuntu1604-x64-1:~# nslookup xn--strae-oqa.de;; Got SERVFAIL reply from 119.9.60.62, trying next serverServer: 119.9.60.63Address: 119.9.60.63#53** server can't find xn--strae-oqa.de: SERVFAIL

this causes the daily CI test of master to fail: https://ci.nodejs.org/job/node-test-commit-custom-suites/

Lookup works fine when directed to use 8.8.8.8

root@test-rackspace-ubuntu1604-x64-1:~# nslookup xn--strae-oqa.de 8.8.8.8Server: 8.8.8.8Address: 8.8.8.8#53Non-authoritative answer:Name: xn--strae-oqa.deAddress: 81.169.145.78
Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • commit message follows commit guidelines

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@nodejs-github-botnodejs-github-bot added the test Issues and PRs related to the tests. label Mar 6, 2019
@refack

refack commented Mar 6, 2019

Copy link
Copy Markdown
ContributorAuthor

@refackrefack added the dns Issues and PRs related to the dns subsystem. label Mar 6, 2019
@refack
refack requested a review from TrottMarch 6, 2019 15:33
Comment threadtest/internet/test-dns-idna2008.js Outdated
@Trott

Trott commented Mar 7, 2019

Copy link
Copy Markdown
Member

@TrottTrott added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label Mar 7, 2019
@Trott

Trott commented Mar 7, 2019

Copy link
Copy Markdown
Member

node-daily-master failed today for the sixth day in a row due to this. Would love to fast-track this. 👍 here to fast-track.

EDIT: Withdrawing pending outcome of the "use DNS*_SERVER" conversation. Since node-daily-master only runs once a day, we'll live with the red job another day or two if we have to.

@TrottTrott added fast-track PRs that do not need to wait for 48 hours to land. and removed fast-track PRs that do not need to wait for 48 hours to land. labels Mar 7, 2019
@refackrefack self-assigned this Mar 7, 2019
@refack
refackforce-pushed the fix-idna2008-test branch from 8e7f59c to 7852d68CompareMarch 7, 2019 22:46
@refack

refack commented Mar 7, 2019

Copy link
Copy Markdown
ContributorAuthor

node-daily-master failed today for the sixth day in a row due to this.

https://ci.nodejs.org/job/node-test-commit-custom-suites-freestyle/5084/ seems like this doesn't fix the issue 🤔.

Trying again https://ci.nodejs.org/job/node-test-commit-custom-suites-freestyle/5094/

@refack

refack commented Mar 8, 2019

Copy link
Copy Markdown
ContributorAuthor

The dns.setServers() method affects only dns.resolve(), dns.resolve*() and dns.reverse() (and specifically not dns.lookup()).

So I patched the hardware.

https://ci.nodejs.org/job/node-test-commit-custom-suites-freestyle/5099/ ✔️
https://ci.nodejs.org/job/node-test-commit-custom-suites-freestyle/5100/ ✔️

@refack
refackforce-pushed the fix-idna2008-test branch 3 times, most recently from d2e957e to d9607ddCompareMarch 9, 2019 00:11
@gireeshpunathil

Copy link
Copy Markdown
Member

LGTM!

* use known well-behaved DNS server
* force pass on ESERVFAIL
PR-URL: nodejs#26473Fixes: nodejs#25870
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
@refack
refackforce-pushed the fix-idna2008-test branch from d9607dd to 9613221CompareMarch 9, 2019 15:13
@refackrefack removed the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label Mar 9, 2019
@refack
refack removed the request for review from TrottMarch 9, 2019 15:13
@refack
refack removed the request for review from gireeshpunathilMarch 9, 2019 15:13
@refack
refack merged commit 9613221 into nodejs:masterMar 9, 2019
@refack
refack deleted the fix-idna2008-test branch March 9, 2019 15:14
@refackrefack removed their assignment Mar 11, 2019
refack added a commit to refack/node that referenced this pull request Mar 12, 2019
Fixes a bug I introduced in 9613221
PR-URL: nodejs#26570
Refs: nodejs#25870
Refs: nodejs#26473
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
BridgeAR pushed a commit that referenced this pull request Mar 13, 2019
* use known well-behaved DNS server
* force pass on ESERVFAIL
PR-URL: #26473Fixes: #25870
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
BridgeAR pushed a commit that referenced this pull request Mar 13, 2019
Fixes a bug I introduced in 9613221
PR-URL: #26570
Refs: #25870
Refs: #26473
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
BridgeAR pushed a commit that referenced this pull request Mar 14, 2019
* use known well-behaved DNS server
* force pass on ESERVFAIL
PR-URL: #26473Fixes: #25870
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
BridgeAR pushed a commit that referenced this pull request Mar 14, 2019
Fixes a bug I introduced in 9613221
PR-URL: #26570
Refs: #25870
Refs: #26473
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
BridgeAR pushed a commit to BridgeAR/node that referenced this pull request Mar 14, 2019
Fixes a bug I introduced in 9613221
PR-URL: nodejs#26570
Refs: nodejs#25870
Refs: nodejs#26473
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
BridgeAR pushed a commit that referenced this pull request Mar 14, 2019
Fixes a bug I introduced in 9613221
PR-URL: #26570
Refs: #25870
Refs: #26473
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dnsIssues and PRs related to the dns subsystem.testIssues and PRs related to the tests.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

investigate flaky internet/test-dns-idna2008 test

7 participants

@refack@nodejs-github-bot@Trott@gireeshpunathil@joyeecheung@richardlau@BridgeAR