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

ERROR: Publisher com.google.jenkins.flakyTestHandler.plugin.JUnitFlakyResultArchiver aborted due to exception

    XMLWordPrintable

Details

    Description

      Apologies about assigning this to core, but 'flaky-test-handler' is not in the list of components that I can assign to.

      A number of other bugs relating to this change have been recorded against other plugins:

      JENKINS-24478 and JENKINS-25405

      ERROR: Publisher com.google.jenkins.flakyTestHandler.plugin.JUnitFlakyResultArchiver aborted due to exception
      java.lang.NoSuchMethodError: hudson.model.AbstractBuild.getTestResultAction()Lhudson/tasks/test/AbstractTestResultAction;
      at com.google.jenkins.flakyTestHandler.plugin.FlakyTestResultAction.<init>(FlakyTestResultAction.java:78)
      at com.google.jenkins.flakyTestHandler.plugin.JUnitFlakyResultArchiver.perform(JUnitFlakyResultArchiver.java:89)
      at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
      at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:770)
      at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:734)
      at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.post2(MavenModuleSetBuild.java:1037)
      at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:683)
      at hudson.model.Run.execute(Run.java:1784)
      at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:529)
      at hudson.model.ResourceController.execute(ResourceController.java:89)
      at hudson.model.Executor.run(Executor.java:240)

      Attachments

        Issue Links

          Activity

            lorenzhawkes Lorenz Bateman created issue -
            lorenzhawkes Lorenz Bateman made changes -
            Field Original Value New Value
            Description A number of other bugs relating to this change have been recorded against other plugins:

            JENKINS-24478 and JENKINS-25405

            ERROR: Publisher com.google.jenkins.flakyTestHandler.plugin.JUnitFlakyResultArchiver aborted due to exception
            java.lang.NoSuchMethodError: hudson.model.AbstractBuild.getTestResultAction()Lhudson/tasks/test/AbstractTestResultAction;
            at com.google.jenkins.flakyTestHandler.plugin.FlakyTestResultAction.<init>(FlakyTestResultAction.java:78)
            at com.google.jenkins.flakyTestHandler.plugin.JUnitFlakyResultArchiver.perform(JUnitFlakyResultArchiver.java:89)
            at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
            at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:770)
            at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:734)
            at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.post2(MavenModuleSetBuild.java:1037)
            at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:683)
            at hudson.model.Run.execute(Run.java:1784)
            at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:529)
            at hudson.model.ResourceController.execute(ResourceController.java:89)
            at hudson.model.Executor.run(Executor.java:240)
            Apologies about assigning this to core, but 'flaky-test-handler' is not in the list of components that I can assign to.

            A number of other bugs relating to this change have been recorded against other plugins:

            JENKINS-24478 and JENKINS-25405

            ERROR: Publisher com.google.jenkins.flakyTestHandler.plugin.JUnitFlakyResultArchiver aborted due to exception
            java.lang.NoSuchMethodError: hudson.model.AbstractBuild.getTestResultAction()Lhudson/tasks/test/AbstractTestResultAction;
            at com.google.jenkins.flakyTestHandler.plugin.FlakyTestResultAction.<init>(FlakyTestResultAction.java:78)
            at com.google.jenkins.flakyTestHandler.plugin.JUnitFlakyResultArchiver.perform(JUnitFlakyResultArchiver.java:89)
            at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
            at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:770)
            at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:734)
            at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.post2(MavenModuleSetBuild.java:1037)
            at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:683)
            at hudson.model.Run.execute(Run.java:1784)
            at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:529)
            at hudson.model.ResourceController.execute(ResourceController.java:89)
            at hudson.model.Executor.run(Executor.java:240)
            lorenzhawkes Lorenz Bateman made changes -
            Priority Blocker [ 1 ] Minor [ 4 ]
            danielbeck Daniel Beck added a comment -

            Added the component.

            Of course, I doubt it'll help getting this resolved if the authors haven't bothered to set up a component to begin with.

            danielbeck Daniel Beck added a comment - Added the component. Of course, I doubt it'll help getting this resolved if the authors haven't bothered to set up a component to begin with.
            danielbeck Daniel Beck made changes -
            Component/s flaky-test-handler-plugin [ 19823 ]
            Component/s core [ 15593 ]
            jglick Jesse Glick made changes -
            Assignee Jesse Glick [ jglick ]
            jglick Jesse Glick made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            jglick Jesse Glick made changes -
            Priority Minor [ 4 ] Blocker [ 1 ]
            jglick Jesse Glick added a comment -

            Also when using the injected behavior in the JUnit publisher in 1.580.1:

            … hudson.model.Run execute
            INFO: … main build action completed: SUCCESS
            … hudson.model.AbstractBuild$AbstractBuildExecution reportError
            WARNING: Publisher hudson.tasks.junit.JUnitResultArchiver aborted due to exception
            java.lang.NoSuchMethodError: hudson.model.AbstractBuild.getTestResultAction()Lhudson/tasks/test/AbstractTestResultAction;
            	at com.google.jenkins.flakyTestHandler.plugin.JUnitFlakyTestDataPublisher.getTestData(JUnitFlakyTestDataPublisher.java:49)
            	at hudson.tasks.junit.JUnitResultArchiver.perform(JUnitResultArchiver.java:160)
            	at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
            	at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:770)
            	at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:734)
            	at hudson.model.Build$BuildExecution.post2(Build.java:183)
            	at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:683)
            	at hudson.model.Run.execute(Run.java:1770)
            	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
            	at hudson.model.ResourceController.execute(ResourceController.java:89)
            	at hudson.model.Executor.run(Executor.java:240)
            
            jglick Jesse Glick added a comment - Also when using the injected behavior in the JUnit publisher in 1.580.1: … hudson.model.Run execute INFO: … main build action completed: SUCCESS … hudson.model.AbstractBuild$AbstractBuildExecution reportError WARNING: Publisher hudson.tasks.junit.JUnitResultArchiver aborted due to exception java.lang.NoSuchMethodError: hudson.model.AbstractBuild.getTestResultAction()Lhudson/tasks/test/AbstractTestResultAction; at com.google.jenkins.flakyTestHandler.plugin.JUnitFlakyTestDataPublisher.getTestData(JUnitFlakyTestDataPublisher.java:49) at hudson.tasks.junit.JUnitResultArchiver.perform(JUnitResultArchiver.java:160) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:770) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:734) at hudson.model.Build$BuildExecution.post2(Build.java:183) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:683) at hudson.model.Run.execute(Run.java:1770) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:89) at hudson.model.Executor.run(Executor.java:240)
            jglick Jesse Glick made changes -
            Remote Link This issue links to "PR 1 (Web Link)" [ 12101 ]
            seriousamlqz Qingzhou Luo added a comment -

            Thanks Daniel!

            Right now I am having some injury on my right wrist, plus the school is quite busy, so I couldn't do much work these days. I will try to resolve that as soon as I get a chance.

            seriousamlqz Qingzhou Luo added a comment - Thanks Daniel! Right now I am having some injury on my right wrist, plus the school is quite busy, so I couldn't do much work these days. I will try to resolve that as soon as I get a chance.

            Code changed in jenkins
            User: seriousamlqz
            Path:
            pom.xml
            src/main/java/com/google/jenkins/flakyTestHandler/plugin/FlakyTestResultAction.java
            src/main/java/com/google/jenkins/flakyTestHandler/plugin/JUnitFlakyTestDataPublisher.java
            src/main/java/com/google/jenkins/flakyTestHandler/plugin/deflake/DeflakeListener.java
            src/test/java/hudson/plugins/git/AbstractGitTestCase.java
            http://jenkins-ci.org/commit/flaky-test-handler-plugin/c68997a67353d2b62ae3ab32fb2de89de64c2620
            Log:
            Merge pull request #1 from jglick/1.580

            [FIXED JENKINS-25446] Make this runnable against 1.580.x

            Compare: https://github.com/jenkinsci/flaky-test-handler-plugin/compare/9ad189748d7f...c68997a67353

            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: seriousamlqz Path: pom.xml src/main/java/com/google/jenkins/flakyTestHandler/plugin/FlakyTestResultAction.java src/main/java/com/google/jenkins/flakyTestHandler/plugin/JUnitFlakyTestDataPublisher.java src/main/java/com/google/jenkins/flakyTestHandler/plugin/deflake/DeflakeListener.java src/test/java/hudson/plugins/git/AbstractGitTestCase.java http://jenkins-ci.org/commit/flaky-test-handler-plugin/c68997a67353d2b62ae3ab32fb2de89de64c2620 Log: Merge pull request #1 from jglick/1.580 [FIXED JENKINS-25446] Make this runnable against 1.580.x Compare: https://github.com/jenkinsci/flaky-test-handler-plugin/compare/9ad189748d7f...c68997a67353
            scm_issue_link SCM/JIRA link daemon made changes -
            Resolution Fixed [ 1 ]
            Status In Progress [ 3 ] Resolved [ 5 ]
            rtyler R. Tyler Croy made changes -
            Workflow JNJira [ 159414 ] JNJira + In-Review [ 196069 ]

            People

              jglick Jesse Glick
              lorenzhawkes Lorenz Bateman
              Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: