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

Skip timing dependent test on Windows CI agents #227

Merged
merged 3 commits into from
Feb 16, 2025

Conversation

MarkEWaite
Copy link
Contributor

@MarkEWaite MarkEWaite commented Feb 15, 2025

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

  • Link to JIRA ticket in description, if appropriate.
  • Change is code complete and matches issue description
  • Appropriate unit or acceptance tests or explanation to why this change has no tests
  • Reviewer's manual test instructions provided in PR description. See Reviewer's first task below.

Reviewer checklist

  • Run the changes and verified the change matches the issue description
  • Reviewed the code
  • Verified that the appropriate tests have been written or valid explanation given

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.
@MarkEWaite
Copy link
Contributor Author

MarkEWaite commented Feb 15, 2025

@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
Copy link
Member

@olamy olamy Feb 16, 2025

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.

Copy link
Contributor Author

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Pushed as 6453ddf

@MarkEWaite MarkEWaite changed the title Allow more time to expire Windows test events on ci.jenkins.io Skip timing dependent test on Windows CI agents Feb 16, 2025
Copy link
Member

@olamy olamy left a 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

@olamy olamy merged commit f263b2d into jenkinsci:master Feb 16, 2025
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants