Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Reduce flakiness on plugins check #659

Merged
merged 2 commits into from
May 3, 2021
Merged

Conversation

amuniz
Copy link
Member

@amuniz amuniz commented Apr 29, 2021

I've observed this failing with StaleElementReferenceException from
time to time. I tracked it down to the plugin manager UI dynamic
behaviour (DOM elements show up and down) so the initially select
element becomes stale after a few milliseconds.

There is no way to know if the element will become stale or not, so the
only way I found to make this less flaky is by waiting 1 second and
retrying, then give up if it fails again.

  • Make sure you are opening from a topic/feature/bugfix branch (right side) and not your master branch!
  • Ensure that the pull request title represents the desired changelog entry
  • Please describe what you did
  • Link to relevant issues in GitHub or Jira
  • Link to relevant pull requests, esp. upstream and downstream changes
  • Ensure you have provided tests - that demonstrates feature works or fixes the issue

I've observed this failing with `StaleElementReferenceException` from
time to time. I tracked it down to the plugin manager UI dynamic
behaviour (DOM elements show up and down) so the initially select
element becomes stale after a few milliseconds.

There is no way to know if the element will become stale or not, so the
only way I found to make this less flaky is by waiting 1 second and
retrying, then give up if it fails again.
@amuniz amuniz requested a review from jtnord April 29, 2021 08:58
@amuniz
Copy link
Member Author

amuniz commented Apr 29, 2021

Should be better now.

@amuniz amuniz closed this Apr 30, 2021
@amuniz amuniz reopened this Apr 30, 2021
@amuniz amuniz merged commit d3c7beb into jenkinsci:master May 3, 2021
@amuniz amuniz deleted the plugin-select branch May 3, 2021 10:27
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants