Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-51376

InjectedTests fail (PluginAutomaticTestBuilder$OtherTests.testPluginActive)

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      The InjectedTest PluginAutomaticTestBuilder$OtherTests.testPluginActive fails for the analysis-core plugin (branch 3.0) due to the following problem:

      Caused by: java.io.IOException: Matrix Project Plugin v1.13 failed to load.
       - JUnit Plugin v1.6 is older than required. To fix, install v1.20 or later.
      	at hudson.PluginWrapper.resolvePluginDependencies(PluginWrapper.java:626)
      	at hudson.PluginManager$2$1$1.run(PluginManager.java:516)
      	at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:169)
      	at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:282)
      	at jenkins.model.Jenkins$7.runTask(Jenkins.java:1090)
      	at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:210)
      	at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117)
      	... 3 more
      

      However, if I start an IntegrationTest that uses the Matrix Plug-in, then the tests succeeds. I.e. Jenkins can load the Plug-in.

      [INFO] Running io.jenkins.plugins.analysis.warnings.legacy.MatrixJobITest
      === Starting shouldCreateIndividualAxisResults(io.jenkins.plugins.analysis.warnings.legacy.MatrixJobITest)
         0.052 [id=90]	INFO	o.jvnet.hudson.test.JenkinsRule#createWebServer: Running on http://localhost:60113/jenkins/
         0.164 [id=96]	INFO	jenkins.InitReactorRunner$1#onAttained: Started initialization
         0.166 [id=100]	INFO	jenkins.InitReactorRunner$1#onAttained: Listed all plugins
         0.633 [id=100]	INFO	jenkins.InitReactorRunner$1#onAttained: Prepared all plugins
         0.634 [id=96]	INFO	jenkins.InitReactorRunner$1#onAttained: Started all plugins
         0.637 [id=96]	INFO	jenkins.InitReactorRunner$1#onAttained: Augmented all extensions
         2.391 [id=101]	WARNING	i.j.p.a.w.FindBugsMessages#loadMessages: The bug pattern DM_INVALID_MIN_MAX was already loaded. It could be a duplicate.
         2.804 [id=101]	WARNING	i.j.p.a.w.FindBugsMessages#loadMessages: The bug pattern DM_INVALID_MIN_MAX was already loaded. It could be a duplicate.
         3.119 [id=99]	INFO	jenkins.InitReactorRunner$1#onAttained: Loaded all jobs
         3.123 [id=96]	INFO	jenkins.InitReactorRunner$1#onAttained: Completed initialization
         3.321 [id=105]	INFO	hudson.model.Run#execute: test0/user_axis=two #1 main build action completed: SUCCESS
         3.321 [id=104]	INFO	hudson.model.Run#execute: test0/user_axis=one #1 main build action completed: SUCCESS
         3.586 [id=131]	INFO	hudson.model.Run#execute: test0/user_axis=three #1 main build action completed: SUCCESS
         4.233 [id=119]	INFO	hudson.model.Run#execute: test0 #1 main build action completed: SUCCESS
         4.281 [id=90]	INFO	jenkins.model.Jenkins#cleanUp: Stopping Jenkins
      WARN: The method class org.apache.commons.logging.impl.SLF4JLogFactory#release() was invoked.
      WARN: Please see http://www.slf4j.org/codes.html#release for an explanation.
         4.312 [id=90]	INFO	jenkins.model.Jenkins#cleanUp: Jenkins stopped
      [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 4.525 s - in io.jenkins.plugins.analysis.warnings.legacy.MatrixJobITest
      

      The interesting thing is, that my integration test also complains in the console that the matrix plugin can't be loaded:

         9.108 [id=21]	SEVERE	jenkins.InitReactorRunner$1#onTaskFailed: Failed Loading plugin Matrix Project Plugin v1.13 (matrix-project)
      java.io.IOException: Matrix Project Plugin v1.13 failed to load.
       - JUnit Plugin v1.6 is older than required. To fix, install v1.20 or later.
      	at hudson.PluginWrapper.resolvePluginDependencies(PluginWrapper.java:626)
      	at hudson.PluginManager$2$1$1.run(PluginManager.java:516)
      	at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:169)
      	at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:282)
      	at jenkins.model.Jenkins$7.runTask(Jenkins.java:1090)
      	at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:210)
      	at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      	at java.lang.Thread.run(Thread.java:748)
      
      

      However, this seem not to influence the test. And the test definitely requires the matrix plug-in.

      I am using the latest versions of the parent pom. It is just impossible to fix all those plugin X depends on plugin Y warnings.
      (See also mailing list thread)

        Attachments

          Activity

          Hide
          jglick Jesse Glick added a comment -

          You do need to update the junit plugin to fix this issue. As noted in JENKINS-41827, sometimes tests will pass even if plugins needed by the test are unloadable—the unrealistic class loader environment lets Jenkins load the classes and resources anyway.

          Show
          jglick Jesse Glick added a comment - You do need to update the junit plugin to fix this issue. As noted in JENKINS-41827 , sometimes tests will pass even if plugins needed by the test are unloadable—the unrealistic class loader environment lets Jenkins load the classes and resources anyway.
          Hide
          drulli Ulli Hafner added a comment -

          But I do not have a dependency to it. If I update this plugin then the next three plugins are not in the correct version and so on. This really is a nightmare to get these dependencies right.

          Show
          drulli Ulli Hafner added a comment - But I do not have a dependency to it. If I update this plugin then the next three plugins are not in the correct version and so on. This really is a nightmare to get these dependencies right.
          Hide
          jglick Jesse Glick added a comment -

          But I do not have a dependency to it.

          Well, you do, transitively.

          If I update this plugin then the next three plugins are not in the correct version

          Then fix those as well.

          Show
          jglick Jesse Glick added a comment - But I do not have a dependency to it. Well, you do, transitively. If I update this plugin then the next three plugins are not in the correct version Then fix those as well.

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            drulli Ulli Hafner
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: