-
Notifications
You must be signed in to change notification settings - Fork 36
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
Skip timing dependent test on Windows CI agents #227
Skip timing dependent test on Windows CI agents #227
Conversation
Diagnostic output inserted into the test shows that ci.jenkins.io Linux agents expire test events from the queue after roughly 3 seconds when the expire time is set to 3 seconds. Those same diagnostic statements show that the test events do not expire on the ci.jenkins.io Windows agents in the first 10 seconds even when the expire time is set to 3 seconds. I assume that is somehow due to differences in the file systems on ci.jenkins.io Windows agents compared to ci.jenkins.io Linux agents. Extend the wait time for ci.jenkins.io Windows tests to expire all the test events. Same problem is not visible on my Windows desktop computer. Only extend the time for Windows tests on CI.
@michaelneale, @vivek, @kzantow, @scherler, @davidbees, @richbg, @Carroll, @dnusbaum, @jtaboada, @kshultz, @bitwiseman, or @olamy I would appreciate very much if this were merged so that the ci.jenkins.io job on the master branch is passing again. We shouldn't block other pull requests due to failing tests on the master branch. |
// The Windows machines on ci.jenkins.io need extra time. Assumed due | ||
// to a slower file system or slower storage. | ||
if (Functions.isWindows() && System.getenv("CI") != null) { | ||
waitTimer.waitUntil(13500); // 13.5 sec = 4.5 + 9 seconds cushion |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not simply skip this test when running on Windows and CI?
By experience, this sort of number approximation tends to turn to result in flaky tests.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure. Happy to do that as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pushed as 6453ddf
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks,
we should move to use awaitility but that's definitely another pr
Skip timing dependent test on Windows CI agents
Diagnostic output inserted into the test shows that ci.jenkins.io Linux agents expire test events from the queue after roughly 3 seconds when the expire time is set to 3 seconds. Those same diagnostic statements show that the test events do not expire on the ci.jenkins.io Windows agents in the first 10 seconds even when the expire time is set to 3 seconds.
I assume that is somehow due to differences in the file systems on ci.jenkins.io Windows agents compared to ci.jenkins.io Linux agents.
Extend the wait time for ci.jenkins.io Windows tests to expire all the test events.
Same problem is not visible on my Windows desktop computer. Only extend the time for Windows tests on CI.
Submitter checklist
Reviewer checklist