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

Minor improvements to JGitLightweightTagTest #1236

Merged

Conversation

MarkEWaite
Copy link
Contributor

Minor improvements to JGitLightweightTagTest

Prepare for JGit 7.2.0 where the packRefs() method will be publicly available instead of requiring a JGit internal API.

Document that the packRefs() call is required in order to confirm that the previous bug in JGitAPIImpl is still fixed. I reverted the fix and confirmed that without the call to packRefs() the bug is not shown by the test.

Assert that the set of tags has the correct size.

Testing done

Automated tests pass and the set of diffs that will be needed for JGit 7.2.0 are reduced a little bit.

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

Prepare for JGit 7.2.0 where the `packRefs()` method will be publicly
available instead of requiring a JGit internal API.

Document that the packRefs() call is required in order to confirm that
the previous bug in JGitAPIImpl is still fixed.  I reverted the fix and
confirmed that without the call to `packRefs()` the bug is not shown by
the test.

Assert that the set of tags has the correct size.
@MarkEWaite MarkEWaite requested a review from a team as a code owner January 4, 2025 13:22
@MarkEWaite MarkEWaite added the tests Automated test addition or improvement label Jan 4, 2025
@MarkEWaite MarkEWaite merged commit f02b158 into jenkinsci:master Jan 4, 2025
18 checks passed
@MarkEWaite MarkEWaite deleted the improve-jgit-lightweight-tag-test branch January 4, 2025 15:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tests Automated test addition or improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant