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

Fix test #417

Merged
merged 1 commit into from
Dec 29, 2024
Merged

Fix test #417

merged 1 commit into from
Dec 29, 2024

Conversation

basil
Copy link
Member

@basil basil commented Dec 29, 2024

This test was timing out frequently when running it locally as well as in BOM (preventing a new BOM release). By switching to configure.refresh() to a fresh webClient.getPage(project, "configure") I was able to chase away the problem and eliminate the need for a CPU-bound while loop, which seemed bad in general. I have been running this modified version of the test in a loop locally over 12 iterations so far without error, while before this PR it would have failed within 3-4 iterations.

@basil basil added the test label Dec 29, 2024
@basil basil requested a review from a team as a code owner December 29, 2024 19:10
@strangelookingnerd
Copy link
Contributor

Let’s see if this fixes the test for good. I kind of gave up on looking for a solution because I was unable to reproduce it on my machine in the first place. Hence the ugly loop 😅 Thanks for the help!

@strangelookingnerd strangelookingnerd merged commit d0b647b into jenkinsci:main Dec 29, 2024
20 checks passed
@basil basil deleted the flaky branch December 29, 2024 19:25
@basil
Copy link
Member Author

basil commented Dec 29, 2024

Thanks! Can this be released for BOM?

@strangelookingnerd
Copy link
Contributor

I am currently out of town but will be back by the end of the week.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants