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

RateLimitBranchPropertyTest.rateLimitsConcurrentBuilds is flaky too #211

Conversation

jglick
Copy link
Member

@jglick jglick commented Sep 18, 2020

Follows up #202. Flake noticed in jenkinsci/bom#301:

java.lang.AssertionError: 
At least the rate implied delay but no more than 500ms longer
Expected: (a value equal to or greater than <3400L> and a value less than or equal to <4100L>)
     but: a value equal to or greater than <3400L> <3342L> was less than <3400L>
	at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20)
	at jenkins.branch.RateLimitBranchPropertyTest.rateLimitsConcurrentBuilds(RateLimitBranchPropertyTest.java:292)

Copy link
Contributor

@bitwiseman bitwiseman left a comment

Choose a reason for hiding this comment

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

We need to figure out how to reenable these rather than skipping when they fail.

@jglick
Copy link
Member Author

jglick commented Sep 18, 2020

how to reenable these

I guess. Looking at the test code, it is clearly inherently too flaky to run in CI.

@bitwiseman
Copy link
Contributor

@jglick

Looking at the test code, it is clearly inherently too flaky to run in CI.

But without these tests the feature could break completely and we would not know.

@jglick
Copy link
Member Author

jglick commented Sep 21, 2020

But without these tests the feature could break completely and we would not know.

Indeed. We can only hope that in the unlikely event someone actually touches this code again, that they will run these tests locally to validate it. In the meantime, the test is causing problems for automation and sucking up developer time that could be better spent elsewhere.

@bitwiseman bitwiseman merged commit 7d005e7 into jenkinsci:master Sep 21, 2020
@jglick jglick deleted the RateLimitBranchPropertyTest.rateLimitsConcurrentBuilds branch September 21, 2020 20:42
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