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

Split up internet DNS tests to avoid timeout problem #2802

Closed
wants to merge 2 commits into from

Conversation

Trott
Copy link
Member

@Trott Trott commented Sep 10, 2015

On the CI setup, the Win2012 server times out sometimes on test/internet/test-dns.js. This PR follows on the changes in #2785 (which will land soon) and splits that file into three files which avoids the timeout.

CI doesn't (yet) run tests in test/internet but I altered the vcbuild.bat in a branch so that it would. Results for this change are at https://ci.nodejs.org/job/node-test-commit-windows/604/.

For whatever reason, the CI win2012 machine was timing out on the
internet test-dns file. Split out ipv4 and ipv6 specific tests to
separate files so tests do not time out. (Each file is given a 60
second timeout on CI. Tests within a file are run in sequence.)
@Trott
Copy link
Member Author

Trott commented Sep 10, 2015

Landing a1949e8 closed #2785 which hopefully makes the diff here slightly easier to deal with.

@mscdex mscdex added dns Issues and PRs related to the dns subsystem. test Issues and PRs related to the tests. labels Sep 10, 2015
@Trott
Copy link
Member Author

Trott commented Sep 11, 2015

bump /cc @nodejs/collaborators

@silverwind
Copy link
Contributor

Why does splitting the tests into separate files fix the timeout issue?

@Trott
Copy link
Member Author

Trott commented Sep 12, 2015

@silverwind It fixes it because the timeout that's blowing up isn't for any individual test in the file. It's the 60 second timeout for each test file imposed by the Python test runner for the file as a whole.

@silverwind
Copy link
Contributor

Ah, right. LGTM if this is just copy/paste split up.

running = false,
queue = [];

function TEST(f) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Future pr: export these things to common if they are re-usable.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As far as TEST() goes, I was torn between "move this into the common.js" vs. "extract each test into its own file and get rid of TEST() entirely". So I left it alone for now.

Trott added a commit that referenced this pull request Sep 12, 2015
For whatever reason, the CI win2012 machine was timing out on the
internet test-dns file. Split out ipv4 and ipv6 specific tests to
separate files so tests do not time out. (Each file is given a 60
second timeout on CI. Tests within a file are run in sequence.)

PR-URL: #2802
Fixes: #2468
Reviewed-By: Roman Reiss <me@silverwind.io>
@Trott
Copy link
Member Author

Trott commented Sep 12, 2015

Landed in a787f72

@Trott Trott closed this Sep 12, 2015
@Fishrock123 Fishrock123 mentioned this pull request Sep 13, 2015
7 tasks
Trott added a commit that referenced this pull request Sep 15, 2015
For whatever reason, the CI win2012 machine was timing out on the
internet test-dns file. Split out ipv4 and ipv6 specific tests to
separate files so tests do not time out. (Each file is given a 60
second timeout on CI. Tests within a file are run in sequence.)

PR-URL: #2802
Fixes: #2468
Reviewed-By: Roman Reiss <me@silverwind.io>
Trott added a commit that referenced this pull request Sep 15, 2015
For whatever reason, the CI win2012 machine was timing out on the
internet test-dns file. Split out ipv4 and ipv6 specific tests to
separate files so tests do not time out. (Each file is given a 60
second timeout on CI. Tests within a file are run in sequence.)

PR-URL: #2802
Fixes: #2468
Reviewed-By: Roman Reiss <me@silverwind.io>
@rvagg rvagg mentioned this pull request Sep 15, 2015
@rvagg rvagg mentioned this pull request Sep 22, 2015
@Trott Trott deleted the test-dns-win branch January 9, 2022 22:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dns Issues and PRs related to the dns subsystem. test Issues and PRs related to the tests.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants