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

jenkins-test-harness test fails due "Comparison method violates its general contract!"

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Minor Minor
    • jenkins-test-harness
    • None
    • org.jenkins-ci.tools:gradle-jpi-plugin:0.38.0

      I'm trying to build https://github.com/jenkinsci/jira-trigger-plugin 

      A number of tests in com.ceilfors.jenkins.plugins.jiratrigger.JiraCommentTriggerTest fail due 

      ...
      Caused by: java.lang.reflect.InvocationTargetException
      	at hudson.init.TaskMethodFinder.invoke(TaskMethodFinder.java:104)
      	... 8 more
      Caused by: java.lang.IllegalArgumentException: Comparison method violates its general contract! 
              at java.util.ComparableTimSort.mergeLo(ComparableTimSort.java:744)
      ...

      More detailed stacktrace is at https://pastebin.com/GLw24FxF

      Also I have some strange errors in gradle logs which may be related to the test failures:

         1.011 [id=31]	INFO	jenkins.InitReactorRunner$1#onAttained: Started initialization
         1.130 [id=45]	SEVERE	jenkins.InitReactorRunner$1#onTaskFailed: Failed Inspecting plugin /var/folders/v6/wny8k4yn4zq2n9cwdfq6glvh0000gn/T/jenkins6752789759896791797tmp/jira-trigger.jpl
      java.util.zip.ZipException: error in opening zip file

      and

       1.568 [id=35]	WARNING	hudson.ClassicPluginStrategy#createClassJarFromWebInfClasses: Created /var/folders/v6/wny8k4yn4zq2n9cwdfq6glvh0000gn/T/jenkins6752789759896791797tmp/ui-samples-plugin/WEB-INF/lib/classes.jar; update plugin to a version created with a newer harness
         1.581 [id=35]	INFO	jenkins.InitReactorRunner$1#onAttained: Listed all plugins
         1.864 [id=42]	WARNING	hudson.ExtensionFinder$Sezpoz#scout: Failed to scout hudson.model.Hudson$DescriptorImpl
      java.lang.IncompatibleClassChangeError: hudson.model.Hudson and hudson.model.Hudson$DescriptorImpl disagree on InnerClasses attribute

      more complete log is at https://pastebin.com/7iyzSXEv

      Jenkins-test-harness is used as following: https://github.com/jenkinsci/jira-trigger-plugin/blob/7895e4f3b90fe7f8a7c2b98e69eb6a6c614e2e22/src/test/groovy/com/ceilfors/jenkins/plugins/jiratrigger/JiraCommentTriggerTest.groovy#L38

            Unassigned Unassigned
            igora Igor Fraa
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: