Skip to content

test: fix flaky test-domain-timers - #21019

Closed
apapirovski wants to merge 1 commit into
nodejs:masterfrom
apapirovski:fix-test-domain-timers
Closed

test: fix flaky test-domain-timers#21019
apapirovski wants to merge 1 commit into
nodejs:masterfrom
apapirovski:fix-test-domain-timers

Conversation

@apapirovski

Copy link
Copy Markdown
Contributor

It's possible for this test to be (extremely infrequently) flaky if 1ms (which due to rounding in libuv could be far less, actually) or more elapses between setting the two timeouts. In that case, the second timer will not fire and the test will fail.

This failed recently in https://ci.nodejs.org/job/node-test-commit-linuxone/1701/nodes=rhel72-s390x/testReport/junit/(root)/test/parallel_test_domain_timers/

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • commit message follows commit guidelines

It's possible for this test to be extremely infrequently flaky if
1ms or more elapses between setting the two timeouts. In that case,
the second timer will not fire and the test will fail.
@apapirovskiapapirovski added the test Issues and PRs related to the tests. label May 29, 2018

@mhdawsonmhdawson left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@starkwang

Copy link
Copy Markdown
Contributor

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

Copy link
Copy Markdown
Member

@apapirovski

Copy link
Copy Markdown
ContributorAuthor

Landed in 4b8ff3a

@apapirovski
apapirovski deleted the fix-test-domain-timers branch June 1, 2018 08:54
apapirovski added a commit that referenced this pull request Jun 1, 2018
It's possible for this test to be extremely infrequently flaky if
1ms or more elapses between setting the two timeouts. In that case,
the second timer will not fire and the test will fail.
PR-URL: #21019
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Weijia Wang <starkwang@126.com>
Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
addaleax pushed a commit that referenced this pull request Jun 1, 2018
It's possible for this test to be extremely infrequently flaky if
1ms or more elapses between setting the two timeouts. In that case,
the second timer will not fire and the test will fail.
PR-URL: #21019
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Weijia Wang <starkwang@126.com>
Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
@MylesBorinsMylesBorins mentioned this pull request Jun 6, 2018
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author readyPRs that have at least one approval, no pending requests for changes, and a CI started.testIssues and PRs related to the tests.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants

@apapirovski@starkwang@Trott@danbev@jasnell@BridgeAR@mhdawson@trivikr