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

Remove brittle tests, simplify VersionMonitorTest #293

Conversation

MarkEWaite
Copy link
Contributor

Remove brittle tests, simplify VersionMonitorTest

Delete two brittle tests. Jenkins 2.482 includes improvements that break the implementation assumptions embedded in the mocking used by the tests. Remove the tests rather than fight with the brittleness. Causes a minimal reduction in test coverage.

Replace mocking in a few tests with objects provided by Jenkins core.

Use actual remoting versions in the tests.

Testing done

Confirmed that new tests pass with Jenkins 2.479.1 through Jenkins 2.493.

Submitter checklist

  • Make sure you are opening from a topic/feature/bugfix branch (right side) and not your main 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

Delete two brittle tests.  Jenkins 2.482 includes improvements that
break the implementation assumptions embedded in the mocking used by
the tests.  Remove the tests rather than fight with the brittleness.
Causes a minimal reduction in test coverage.

Replace mocking in a few tests with objects provided by Jenkins core.

Use actual remoting versions in the tests.
@MarkEWaite MarkEWaite added the test Automated test addition or improvement label Jan 17, 2025
@MarkEWaite MarkEWaite requested a review from a team as a code owner January 17, 2025 23:29
@github-actions github-actions bot added the tests Automated test addition or improvement label Jan 17, 2025
@MarkEWaite MarkEWaite added developer Affects developers and maintainers and removed tests Automated test addition or improvement labels Jan 17, 2025
@MarkEWaite MarkEWaite merged commit 6bb814c into jenkinsci:master Jan 17, 2025
18 checks passed
@MarkEWaite MarkEWaite deleted the fix-VersionMonitorTest-on-2.482-and-later branch January 17, 2025 23:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
developer Affects developers and maintainers test Automated test addition or improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant