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

Missing Dependency in PluginAutomaticTestBuilder? #655

Closed
sghill opened this issue Sep 17, 2023 · 3 comments
Closed

Missing Dependency in PluginAutomaticTestBuilder? #655

sghill opened this issue Sep 17, 2023 · 3 comments

Comments

@sghill
Copy link

sghill commented Sep 17, 2023

Hi,

I'm not quite sure where to report this issue, but this seems like a reasonable place to start. The answer may well end up being somewhere else, however - I also faced this issue when updating plugins on my most recent Jenkins deployment. Declaring the commons-text-api as a top-level dependency worked there, which points to this being more than a test harness issue.

I've been updating some plugins from baseline Jenkins 2.375.4 to 2.387.3 and getting several failures from InjectedTest.testPluginActive that look like this:

[ERROR] InjectedTest.testPluginActive -- Time elapsed: 0.003 s <<< FAILURE!
java.lang.AssertionError: While testing build-name-setter, plugin-util-api failed to start
        at org.jvnet.hudson.test.PluginAutomaticTestBuilder$OtherTests.testPluginActive(PluginAutomaticTestBuilder.java:98)
...
        at java.base/java.lang.Thread.run(Thread.java:829)
Caused by: java.io.IOException: Failed to load: Plugin Utilities API Plugin (plugin-util-api 3.3.0)
 - Plugin is missing: commons-text-api (1.10.0-36.vc008c8fcda_7b_)
 - Plugin is missing: commons-lang3-api (3.12.0-36.vd97de6465d5b_)

plugin-util-api is not a dependency of the project. In looking at the dependencies of recent releases of plugin-util-api, I did not see anything to suggest this dependency was just dropped either. Here are a few examples where running mvn clean verify will reproduce the problem:

In one case I fixed the test by adding a test-scoped dependency, but a more centralized fix would be better.
jenkinsci/naginator-plugin@85c11e2

@jonesbusy
Copy link

Was initially reported on BOM: jenkinsci/bom#2484 but the culprit is checks-api-plugin

@MarkEWaite
Copy link
Contributor

Was initially reported on BOM: jenkinsci/bom#2484 but the culprit is checks-api-plugin

We hope to remove the requirement for that workaround in the next plugin BOM release, expected within the next day or two.

@MarkEWaite
Copy link
Contributor

Closing this issue because the root cause issue is tracked in the checks-api plugin as:

Thanks for reporting the issue @sghill !

@MarkEWaite MarkEWaite closed this as not planned Won't fix, can't repro, duplicate, stale Sep 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants