Skip to content

Conversation

@jglick
Copy link
Member

@jglick jglick commented May 23, 2022

Unlike #1159 this is not actually reflecting instance-identity as a new managed plugin; it is just checking how much the core change in isolation breaks existing tests.

@jglick
Copy link
Member Author

jglick commented May 23, 2022

#1159 (comment)

@jglick
Copy link
Member Author

jglick commented Jun 8, 2022

So https://github.com/jenkinsci/bom/pull/1160/checks?check_run_id=6715569819 for example is curious. The test output makes it clear that the failure ultimately is from

java.lang.NoClassDefFoundError: org/jenkinsci/main/modules/instance_identity/InstanceIdentity

and I can reproduce the failure locally

PLUGINS=support-core TEST=AboutJenkinsTest bash local-test.sh 

And yet

mvn -f target/local-test/pct-work/support-core clean test -Djenkins.version=2.349-rc32398.3b_263b_c6b_8a_3 -Dtest=AboutJenkinsTest\#testAboutJenkinsContent

passes:

INFO	hudson.PluginManager#considerDetachedPlugin: Loading a detached plugin as a dependency: …/target/local-test/pct-work/support-core/target/tmp/jenkins…/plugins/instance-identity.jpi

In the plain source tree, but not when jenkins.version is overridden, org.jenkins-ci.modules:instance-identity:jar:2.2:test is in the dependency tree via jenkins-war. The test fails only when jth.jenkins-war.path is passed, I suspect due to the lack of the detached plugin

bom/prep.sh

Line 35 in a7ea532

rm -rfv megawar-$LINE/WEB-INF/detached-plugins megawar-$LINE/META-INF/*.{RSA,SF}

cp -r jenkins-for-test "megawar-${LINE}"
jar uvf megawar-$LINE/WEB-INF/lib/jenkins-core-*.jar jenkins/split-plugins.txt
rm -rfv megawar-$LINE/WEB-INF/detached-plugins megawar-$LINE/META-INF/*.{RSA,SF}
rm -rfv `# TODO delete all but instance-identity? megawar-$LINE/WEB-INF/detached-plugins` megawar-$LINE/META-INF/*.{RSA,SF}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FTR this behavior dates to 6c00be1 because of jenkinsci/plugin-compat-tester#116 (comment) which was three years ago and I barely recall what the issue was.

@basil
Copy link
Member

basil commented Jun 25, 2022

Good result with tip-of-trunk core, which gives confidence in the forthcoming weekly release. Now let's see if this PR works on the existing weekly release, in which case why not merge it to unblock other work?

@basil basil marked this pull request as ready for review June 25, 2022 15:31
@basil
Copy link
Member

basil commented Jun 25, 2022

Since we'll need this on Tuesday when 2.357 ships, but since it doesn't cause any harm on 2.356, let's just merge it now to be able to test other incremental builds of 2.357-SNAPSHOT in the meantime between now and Tuesday.

@basil basil merged commit bb03acb into jenkinsci:master Jun 25, 2022
@jglick jglick added the tests label Jun 27, 2022
@jglick jglick changed the title [JEP-230] [JENKINS-55582] Pretest core with detached instance-identity [JEP-230] [JENKINS-55582] Skip detached-plugins (was: pretest core with detached instance-identity) Jun 27, 2022
@jglick jglick deleted the instance-identity-just-bump-JEP-230 branch June 27, 2022 15:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants