-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Update dependencies and docs for 4.1 release #797
Conversation
@slonopotamus I would also like to update to parent pom 3.54, but when I attempt that, it fails to compile. There seems to be a signature change in the jenkins test harness that I don't understand how to resolve.
I believe that was a change you made to the Jenkins test harness. Can you help me understand what needs to change in the plugin to adapt to the harness change? |
@MarkEWaite Whoops. Didn't think that this method could be proxied through other generics :( Here's a patch that fixes AbstractGitTagMessageExtensionTest. If you want a proper PR from it, it'll take some time. For the reference, compilation failure is caused by jenkinsci/jenkins-test-harness#167. |
See #798, it fixes AbstractGitSCMSourceTest.when_commits_added_during_discovery_we_do_not_crash failure when run against newer JTH. I dunno whether you'd like to incorporate it into this PR or merge standalone or create a new PR that will fix all things related to upgrade of parent pom to 3.54, I'm OK with any route. |
8c65fa9
to
55c5ad0
Compare
Hmmm... No, it is working on master branch. |
The GitTagActionTest has a race condition that is sometimes visible. I created the test while investigating SECURITY-1095. If it continues to be unreliable, I am very willing to delete the test. The GitTagAction is a legacy operation in the plugin. It creates a tag in a workspace after the build has completed. The assumption is that the workspace exists after the build completes. That assumption is not valid with ephemeral agents. It does not push the tag anywhere, so the only repository which contains the tag is the repository inside the workspace. Without pushing the tag anywhere, no other users will see the tag. GitTagAction has no viable use case as far as I can tell. It remains in the plugin because I don't want to spend the time or energy to delete the capability, document its deletion, and explain why the use case is not relevant. It is easier to leave it as idle code than to remove it. You can read the diffs to see the types of horrors I created while trying to assure that I did not break the GitTagAction by adding the |
Upgrade to more recent parent pom will require that the test dependency on hamcrest is declared explicitly.
c5a6c8a
to
59e3ad2
Compare
@@ -50,6 +50,8 @@ public CleanBeforeCheckoutTrait() { | |||
|
|||
/** | |||
* Stapler constructor. | |||
* | |||
* @param extension the option to clean subdirectories which contain git repositories. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@darxriggs I'm open to a better way to describe this parameter and the same parameter on the other trait.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you have a look at the other traits they more or less only link to the type of the parameter. Maybe keep it like this and not duplicate the description of the extension or come up with another description for it.
089db3c
to
afb6cca
Compare
Unclear why the test is failing on ci.jenkins.io when it regularly succeeds in my Windows environments. Test is not valuable enough to justify a long research project to identify why it behaves differently on ci.jenkins.io than on other Windows computers. Test runs on Linux. Test coverage is measured on Linux.
f4b45cd
to
06642a4
Compare
Includes imnprovements in the Jenkins test harness
Since git plugin 4.0 has released, the stable-3.x branch can be left to sit more quietly.
Image of plus sign by <a href="https://pixabay.com/users/michael-kouassi-4074806/?utm_source=link-attribution&utm_medium=referral&utm_campaign=image&utm_content=1923369">michael-kouassi</a> from <a href="https://pixabay.com/?utm_source=link-attribution&utm_medium=referral&utm_campaign=image&utm_content=1923369">Pixabay</a> Attribution not required.
Adapt to Jenkins test harness changes
06642a4
to
02c1558
Compare
Update docs and dependencies
Update the dependencies and the documentation page as preparation for eventual release of git plugin 4.1.
Checklist
Types of changes