-
Notifications
You must be signed in to change notification settings - Fork 55
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
BOM build passes a fat war to Jenkins test harness causing issues #3231
Comments
as well as the issue above the FAT war causes issues with According to Jenkins run by the JTH as the fat war has the plugins the plugin is present and loaded. |
as mentioned in the upstream PR that attempted to do this unconditionally this is broken by design. the JTH and tests assume that the classpath is correctly setup however it is not, as demonstrated in the prior commit. According to Jenkins there is a plugin installed (trilead-api) because it is in the megawar, however its classess are not in the flat classpath used by JenkinsRule and thus breakage ensues. There are also issues where a plugin is present that is incompatable with a mode of running for the test - e.g. a system property is set when running JTH to test a mode of running for a plugin (e.g. FIPS) and the plugin itself is incompatable with that mode (which causes a BootFailure). ref: jenkinsci/plugin-compat-tester#470 (comment) fixes: jenkinsci#3231
I have not looked (closely or indeed much at all) but seems the use of the fat war would also conflict with anyone using |
as mentioned in the upstream PR that attempted to do this unconditionally this is broken by design. the JTH and tests assume that the classpath is correctly setup however it is not, as demonstrated in the prior commit. According to Jenkins there is a plugin installed (trilead-api) because it is in the megawar, however its classess are not in the flat classpath used by JenkinsRule and thus breakage ensues. There are also issues where a plugin is present that is incompatable with a mode of running for the test - e.g. a system property is set when running JTH to test a mode of running for a plugin (e.g. FIPS) and the plugin itself is incompatable with that mode (which causes a BootFailure). ref: jenkinsci/plugin-compat-tester#470 (comment) fixes: #3231
Jenkins and plugins versions report
Environment
ci.jenkins.io
What Operating System are you using (both controller, and any agents involved in the problem)?
ci.jenkins.io
Reproduction steps
introduce a plugin that blows up when run in FIPS mode (e.g. eddsa-api)
run a full build of the bom
Expected Results
everything works, no plugins are using
eddsa-api
so would be unaffectedActual Results
email-ext blows up as it starts Jenkins in FIPS mode as part of its tests.
the EDDSA plugin is in the FAT war, so it aborts Jenkins startup
https://github.com/jenkinsci/bom/runs/25321736833
Anything else?
https://github.com/jenkinsci/email-ext-plugin/blob/1814.v404722f34263/src/test/java/hudson/plugins/emailext/MailAccountFIPSTest.java
Are you interested in contributing a fix?
72bada7
The text was updated successfully, but these errors were encountered: