• Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • testInProgress-plugin
    • Jenkins 2.107.1
      Rich Text Publisher 1.4.2

      When using as a post build action produces the following:
      RTP: Started!
      ERROR: Step ‘Publish rich text message’ aborted due to exception:
      java.lang.UnsupportedOperationException: Refusing to marshal org.jenkinsci.testinprogress.server.build.BuildTestResults for security reasons; see
      https://jenkins.io/redirect/class-filter/
      at hudson.util.XStream2$BlacklistedTypesConverter.marshal(XStream2.java:543)
      at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:69)
      at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:58)
      at com.thoughtworks.xstream.core.AbstractReferenceMarshaller$1.convertAnother(AbstractReferenceMarshaller.java:84)
      at hudson.util.RobustReflectionConverter.marshallField(RobustReflectionConverter.java:265)
      at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:252)
      Caused: java.lang.RuntimeException: Failed to serialize org.jenkinsci.plugins.testinprogress.TestInProgressRunAction#buildTestResults for class org.jenkinsci.plugins.testinprogress.TestInProgressRunAction
      at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:256)
      at hudson.util.RobustReflectionConverter$2.visit(RobustReflectionConverter.java:224)
      at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:138)
      at hudson.util.RobustReflectionConverter.doMarshal(RobustReflectionConverter.java:209)
      at hudson.util.RobustReflectionConverter.marshal(RobustReflectionConverter.java:150)
      at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:69)
      at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:58)
      at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:43)
      at com.thoughtworks.xstream.core.AbstractReferenceMarshaller$1.convertAnother(AbstractReferenceMarshaller.java:88)
      at com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter.writeItem(AbstractCollectionConverter.java:64)
      at com.thoughtworks.xstream.converters.collections.CollectionConverter.marshal(CollectionConverter.java:74)
      at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:69)
      at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:58)
      at com.thoughtworks.xstream.core.AbstractReferenceMarshaller$1.convertAnother(AbstractReferenceMarshaller.java:84)
      at hudson.util.RobustReflectionConverter.marshallField(RobustReflectionConverter.java:265)
      at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:252)
      Caused: java.lang.RuntimeException: Failed to serialize hudson.model.Actionable#actions for class hudson.maven.MavenModuleSetBuild
      at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:256)
      at hudson.util.RobustReflectionConverter$2.visit(RobustReflectionConverter.java:224)
      at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:138)
      at hudson.util.RobustReflectionConverter.doMarshal(RobustReflectionConverter.java:209)
      at hudson.util.RobustReflectionConverter.marshal(RobustReflectionConverter.java:150)
      at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:69)
      at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:58)
      at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:43)
      at com.thoughtworks.xstream.core.TreeMarshaller.start(TreeMarshaller.java:82)
      at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.marshal(AbstractTreeMarshallingStrategy.java:37)
      at com.thoughtworks.xstream.XStream.marshal(XStream.java:1026)
      at com.thoughtworks.xstream.XStream.marshal(XStream.java:1015)
      at com.thoughtworks.xstream.XStream.toXML(XStream.java:988)
      at hudson.XmlFile.write(XmlFile.java:193)
      Caused: java.io.IOException
      at hudson.XmlFile.write(XmlFile.java:200)
      at hudson.model.Run.save(Run.java:1923)
      at org.korosoft.jenkins.plugin.rtp.RichTextPublisher.perform(RichTextPublisher.java:257)
      at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:81)
      at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
      at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:744)
      at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:690)
      at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.post2(MavenModuleSetBuild.java:1073)
      at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:635)
      at hudson.model.Run.execute(Run.java:1752)
      at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:543)
      at hudson.model.ResourceController.execute(ResourceController.java:97)
      at hudson.model.Executor.run(Executor.java:429)
      Finished: FAILURE

          [JENKINS-50283] TestInProgress Plugin broken by JEP-200

          Oleg Nenashev added a comment -

          Oleg Nenashev added a comment - It is actually https://github.com/jenkinsci/testInProgress-plugin

          Oleg Nenashev added a comment -

          The plugin codebase is pretty outdated, it has ~850 installations. IIUC the plugin has no active maintainer

          Oleg Nenashev added a comment - The plugin codebase is pretty outdated, it has ~850 installations. IIUC the plugin has no active maintainer

          Oleg Nenashev added a comment -

          kalms you have assigned it to yourself. I'd guess you meant JENKINS-50284, right?

          Oleg Nenashev added a comment - kalms you have assigned it to yourself. I'd guess you meant JENKINS-50284 , right?

          Mikael Kalms added a comment -

          Oops - fat fingers on keyboard. I did not mean to assign either one. Thanks for the heads up oleg_nenashev.

          Mikael Kalms added a comment - Oops - fat fingers on keyboard. I did not mean to assign either one. Thanks for the heads up oleg_nenashev .

          Oleg Nenashev added a comment -

          I have performed some experiments with the plugin. Although I can fix the reported issue, I cannot make the existing tests passing on my machine. The plugin has a pretty legacy configuration, and I doubt I can easily make it working.

          Maybe one of potential workarounds would be to use the https://wiki.jenkins.io/display/JENKINS/JUnit+Realtime+Test+Reporter+Plugin which seems to be in a better shape (active maintainer, etc.).

          menonvarun cchabanois If I offer a fix in a pull request, will you be able to review/verify and release it?

          Oleg Nenashev added a comment - I have performed some experiments with the plugin. Although I can fix the reported issue, I cannot make the existing tests passing on my machine. The plugin has a pretty legacy configuration, and I doubt I can easily make it working. Maybe one of potential workarounds would be to use the https://wiki.jenkins.io/display/JENKINS/JUnit+Realtime+Test+Reporter+Plugin which seems to be in a better shape (active maintainer, etc.). menonvarun cchabanois If I offer a fix in a pull request, will you be able to review/verify and release it?

          Oleg Nenashev added a comment -

          No response from the maintainers so far.
          I would recommend usage of https://plugins.jenkins.io/junit-realtime-test-reporter as a workaround. This plugin is in the better state && it does not require custom configurations to get it running in Jenkins

          Oleg Nenashev added a comment - No response from the maintainers so far. I would recommend usage of https://plugins.jenkins.io/junit-realtime-test-reporter as a workaround. This plugin is in the better state && it does not require custom configurations to get it running in Jenkins

          Oleg Nenashev added a comment -

          On May 01 the JEP-200 maintenance timeframe has expired. I do not plan to work on that anytime soon, so I have assigned it back to the maintainer.

          Oleg Nenashev added a comment - On May 01 the JEP-200 maintenance timeframe has expired. I do not plan to work on that anytime soon, so I have assigned it back to the maintainer.

            cchabanois cchabanois
            steves Steve Sumner
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: