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

WorkflowPluginTest#testSharedLibraryFromGithub() is flaky #943

Open
jtnord opened this issue Sep 26, 2022 · 0 comments
Open

WorkflowPluginTest#testSharedLibraryFromGithub() is flaky #943

jtnord opened this issue Sep 26, 2022 · 0 comments
Labels

Comments

@jtnord
Copy link
Member

jtnord commented Sep 26, 2022

Jenkins and plugins versions report

WorkflowPluginTest#testSharedLibraryFromGithub() is flaky.

This is due to the library being downloaded using unaithenticated APIs which have a rate limit imposed, (per IP address) and this can cause the retreival of the libary to stall.

e.g.

Expected condition failed: Build unexpected_roof #1 is finished (tried for 120 second(s) with 500 milliseconds interval). Console output:
Started by user unknown or anonymous
Loading library Greeting@master
Jenkins-Imposed API Limiter: Current quota for Github API usage has 48 remaining (1 over budget). Next quota of 60 in 53 min. Sleeping for 4 min 53 sec.
Jenkins is attempting to evenly distribute GitHub API requests. To configure a different rate limiting strategy, such as having Jenkins restrict GitHub API requests only when near or above the GitHub rate limit, go to "GitHub API usage" under "Configure System" in the Jenkins settings.
Jenkins-Imposed API Limiter: Still sleeping, now only 1 min 51 sec remaining.
Jenkins-Imposed API Limiter: Current quota for Github API usage has 42 remaining (4 over budget). Next quota of 60 in 48 min. Sleeping for 9 min 14 sec.
Jenkins is attempting to evenly distribute GitHub API requests. To configure a different rate limiting strategy, such as having Jenkins restrict GitHub API requests only when near or above the GitHub rate limit, go to "GitHub API usage" under "Configure System" in the Jenkins settings.

The build then times out due to the sleeping...

org.openqa.selenium.TimeoutException: 
Expected condition failed: Build unexpected_roof #1 is finished (tried for 120 second(s) with 500 milliseconds interval). Console output:

What Operating System are you using (both controller, and any agents involved in the problem)?

N/A

Reproduction steps

while mvn test WorkflowPluginTest#testSharedLibraryFromGithub; do :; done

Expected Results

it reliably passes

Actual Results

it will fail after a while

Anything else?

No response

@jtnord jtnord added the bug label Sep 26, 2022
@jtnord jtnord changed the title WorkflowPluginTest.java#L319-L327 WorkflowPluginTest#testSharedLibraryFromGithub() is flaky Sep 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant