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

Update jacoco from 3.3.4 to 3.3.5 and remove Java 21 workaround #2564

Merged
merged 1 commit into from Oct 6, 2023

Conversation

NotMyFault
Copy link
Member

Fixes #2383

@NotMyFault NotMyFault added the dependencies Pull requests that update a dependency file label Oct 4, 2023
@NotMyFault NotMyFault requested a review from a team as a code owner October 4, 2023 19:04
@jglick jglick added the full-test Test all LTS lines in this PR and do not halt upon first error. label Oct 4, 2023
@jglick jglick enabled auto-merge (squash) October 4, 2023 20:44
@jglick
Copy link
Member

jglick commented Oct 4, 2023

Failed to execute goal org.jenkins-ci.tools:maven-hpi-plugin:3.49:validate-hpi (default-validate-hpi) on project sample: Dependency org.jenkins-ci.plugins:jacoco:jar:3.3.5 requires Jenkins 2.401.3 or higher.

@NotMyFault NotMyFault force-pushed the jacoco-workaround-removal branch 2 times, most recently from 3f74795 to 8ce9fe9 Compare October 4, 2023 22:16
@MarkEWaite
Copy link
Contributor

Since the google-compute-engine-plugin 3.3.5 requires Jenkins 2.401.3 or newer, I believe the workaround will still be needed until we remove the 2.387.x line from the plugin bill of materials. As a cost reduction effort, that removal will probably be proposed when it is time to add the 2.426.x line.

I see the failure when I run this pull request locally with the command (after configuring to use Java 21):

$ java -version
java version "21" 2023-09-19 LTS
Java(TM) SE Runtime Environment (build 21+35-LTS-2513)
Java HotSpot(TM) 64-Bit Server VM (build 21+35-LTS-2513, mixed mode, sharing)
$ LINE=2.387.x PLUGINS=jacoco bash local-test.sh
...
[ERROR] Errors:
...
[ERROR]   JacocoPublisherTest.<init>:50 » IllegalArgument Could not create type
[ERROR] Tests run: 203, Failures: 0, Errors: 17, Skipped: 8

@NotMyFault
Copy link
Member Author

Am I missing something, where are the failures from the google-compute-engine-plugin are coming from?

I thought I've removed the workaround for the jacoco plugin, which now supports Java 21.

@MarkEWaite
Copy link
Contributor

Am I missing something, where are the failures from the google-compute-engine-plugin are coming from?

I thought I've removed the workaround for the jacoco plugin, which now supports Java 21.

I think that my earlier comment was completely off target. Sorry about that!

The test failures in google compute engine and google storage engine are unrelated to this change. I think that they are failures that will be visible on the master branch when we next run full tests on the master branch.

The failures that I was reporting with the jacoco plugin are because I was using an invalid local configuration. I was testing the 2.387.x line with Java 21. That's not what is done in the Jenkinsfile. It tests the 2.387.x line with Java 11. Java 21 is testing on the weekly line. When I run the jacoco tests locally with Java 11, they pass for me just as they pass on ci.jenkins.io.

Thanks for detecting the issue on the master branch. That will give me time to understand and resolve the issue before a new release of the plugin bill of materials tomorrow.

@MarkEWaite
Copy link
Contributor

MarkEWaite commented Oct 6, 2023

I've confirmed that I can see the issue (unrelated to this pull request) on the master branch with the following command line (using Java 21):

LINE=weekly PLUGINS=google-storage-plugin TEST=ClientFactoryTest bash local-test.sh

@MarkEWaite
Copy link
Contributor

Reverting the upgrade of the google oauth plugin fixes the failing test on the master branch. 6407824 will need to be reverted.

@MarkEWaite
Copy link
Contributor

I've submitted the revert as

@jglick jglick merged commit 8eac0a8 into jenkinsci:master Oct 6, 2023
612 of 613 checks passed
@NotMyFault NotMyFault deleted the jacoco-workaround-removal branch October 6, 2023 17:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file full-test Test all LTS lines in this PR and do not halt upon first error.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove JENKINS-71806 workaround
3 participants