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 erratic GitStatusTest #1480

Merged
merged 7 commits into from
Jul 8, 2023
Merged

Conversation

MarkEWaite
Copy link
Contributor

Fix erratic GitStatusTest

Test already had code that waits for jobs to complete on Windows. The improved job leak detection that was implemented in the Jenkins test harness will sometimes show the same conditions on Unix builds. Wait for jobs to complete on Windows and on Unix.

Checklist

  • I have read the CONTRIBUTING doc
  • I have referenced the Jira issue related to my changes in one or more commit messages
  • I have added tests that verify my changes
  • Unit tests pass locally with my changes
  • I have added documentation as necessary
  • No Javadoc warnings were introduced with my changes
  • No spotbugs warnings were introduced with my changes
  • Documentation in README has been updated as necessary
  • Online help has been added and reviewed for any new or modified fields
  • I have interactively tested my changes
  • Any dependent changes have been merged and published in upstream modules (like git-client-plugin)

Types of changes

  • Test

Test already had code that waits for jobs to complete on Windows.
The improved job leak detection that was implemented in the Jenkins
test harness will sometimes show the same conditions on Unix builds.
Wait for jobs to complete on Windows and on Unix.
@MarkEWaite MarkEWaite added the test label Jul 8, 2023
@github-actions github-actions bot removed the test label Jul 8, 2023
No need to complicate GitStatusTest with the test methods that do not
require a JenkinsRule.  Use a simpler test structure and a simpler test
file for the GitStatusTest assertions that do not require a JenkinsRule.
Not an error, but surprising based on my testing.  None of my test
machines are fast enough to complete all the jobs without needing any
time for waiting.
@MarkEWaite MarkEWaite added the test label Jul 8, 2023
@MarkEWaite MarkEWaite enabled auto-merge (squash) July 8, 2023 11:22
@github-actions github-actions bot removed the test label Jul 8, 2023
@MarkEWaite MarkEWaite disabled auto-merge July 8, 2023 11:38
@MarkEWaite MarkEWaite enabled auto-merge (squash) July 8, 2023 11:38
@MarkEWaite MarkEWaite added the test label Jul 8, 2023
@MarkEWaite MarkEWaite merged commit fd87a1c into jenkinsci:master Jul 8, 2023
14 checks passed
@MarkEWaite MarkEWaite deleted the fix-erratic-test branch July 8, 2023 12:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant