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

Revert "Bump org.jenkins-ci:jenkins from 1.122 to 1.123" #847

Merged

Conversation

jglick
Copy link
Member

@jglick jglick commented Sep 26, 2024

Reverts #844

Currently stumped by a JTH release failure. https://github.com/jenkinsci/jenkins-test-harness/actions/runs/11060243118/job/30730386885 complains about missing org.jenkins-ci.main:jenkins-war:executable-war:2.476. Indeed https://repo.jenkins-ci.org/public/org/jenkins-ci/main/jenkins-war/2.476/ only has jenkins-war-2.476.war but that is by design; jenkinsci/maven-hpi-plugin#65 + #61 are supposed to look up the *.war and just add it to the Java classpath. https://github.com/jenkinsci/jenkins-test-harness/actions/runs/10966208526/job/30453668284 worked normally just a few days ago (using the same versions of Maven and Java), and the only POM change since then is #844 which… hmm, https://github.com/jenkinsci/pom/releases/tag/jenkins-1.123 does not mention it but jenkinsci/pom@jenkins-1.122...jenkins-1.123 does show this including jenkinsci/pom#608 with a lot of changes in https://github.com/jenkinsci/maven-hpi-plugin/releases/tag/maven-hpi-plugin-3.58 like jenkinsci/maven-hpi-plugin#649 which might be causing trouble somehow?

I failed to reproduce any problem locally with

docker run -ti --rm --name mvn -u $(id -u):$(id -g) -v "$PWD":/usr/src/mymaven -w /usr/src/mymaven maven:3-eclipse-temurin-17 mvn -Duser.home=/tmp clean compile

@jglick jglick added the dependencies Pull requests that update a dependency file label Sep 26, 2024
@jglick jglick enabled auto-merge September 26, 2024 21:53
@jglick
Copy link
Member Author

jglick commented Sep 26, 2024

FWIW a similar error can reproduced from

mvn verify -U -e -ntp

when suppressing the resource which is supposed to make it work:

diff --git pom.xml pom.xml
index 47be48f8c8..a1618e87ae 100644
--- pom.xml
+++ pom.xml
@@ -331,7 +331,6 @@ THE SOFTWARE.
       <plugin>
         <groupId>org.jenkins-ci.tools</groupId>
         <artifactId>maven-hpi-plugin</artifactId>
-        <extensions>true</extensions>
       </plugin>
     </plugins>
   </build>

@jglick jglick merged commit 7e8d22e into master Sep 26, 2024
15 of 16 checks passed
@jglick jglick deleted the revert-844-dependabot/maven/org.jenkins-ci-jenkins-1.123 branch September 26, 2024 22:09
@jglick
Copy link
Member Author

jglick commented Sep 26, 2024

https://github.com/actions/setup-java/releases/tag/v4.4.0 (2 days ago) has a few changes but nothing obviously related (and as noted, the Maven version did not seem to change; see actions/setup-java#685).

@jglick
Copy link
Member Author

jglick commented Sep 26, 2024

Aha! Reproduces with

docker run -ti --rm --name mvn -u $(id -u):$(id -g) -v "$PWD":/usr/src/mymaven -w /usr/src/mymaven maven:3.8.8-eclipse-temurin-17 mvn -Duser.home=/tmp clean compile

I will work on bisection.

@jglick
Copy link
Member Author

jglick commented Sep 26, 2024

https://github.com/jenkinsci/jenkins-test-harness/releases/tag/2299.v7e8d22e797d3 succeeded. Bisection points to jenkinsci/maven-hpi-plugin#628 as the culprit. I suspect the switch to Java 17 bytecode is responsible, as in jenkinsci/maven-hpi-plugin#667.

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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant