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

Big TRX file causing 'Publish MSTest' [MSTEST-PLUGIN] to Fail

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • mstest-plugin
    • None
    • Windows 8.1 x64 w/ Jenkins 1.642.1

      Hello,

      I have a job that has a lot of unit tests ~30,000. When it gets to the point of parsing the the produced *trx file I get a 'No more DTM IDs are available' error. My *trx file is ~40MB big (too big to attach to this ticket). Below is the error:

      Total tests: 29880. Passed: 29878. Failed: 2. Skipped: 0.
      Test Run Failed.
      Test execution time: 1.0809 Hours
      Build step 'Run unit tests with VSTest.console' marked build as failure
      [MSTEST-PLUGIN] Processing test results in file(s) UnitTests\TestResults*.trx
      MSTest: C:\Jenkins\jobs\Scout - BarnsleyBeatDown\workspace\UnitTests\TestResults\SYSTEM_AIT-UI-DEV 2016-03-28 11_13_23.trx
      ERROR: Step 'Publish MSTest test result report' aborted due to exception:
      java.io.IOException: [MSTEST-PLUGIN] Could not transform the MSTest report. Please report this issue to the plugin author
      at hudson.plugins.mstest.MSTestTransformer.invoke(MSTestTransformer.java:76)
      at hudson.plugins.mstest.MSTestTransformer.invoke(MSTestTransformer.java:23)
      at hudson.FilePath.act(FilePath.java:990)
      at hudson.FilePath.act(FilePath.java:968)
      at hudson.plugins.mstest.MSTestPublisher.perform(MSTestPublisher.java:114)
      at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
      at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:782)
      at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:723)
      at hudson.model.Build$BuildExecution.post2(Build.java:185)
      at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:668)
      at hudson.model.Run.execute(Run.java:1763)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      at hudson.model.ResourceController.execute(ResourceController.java:98)
      at hudson.model.Executor.run(Executor.java:410)
      Caused by: javax.xml.transform.TransformerException: com.sun.org.apache.xml.internal.dtm.DTMException: No more DTM IDs are available
      at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(Unknown Source)
      at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(Unknown Source)
      at hudson.plugins.mstest.XslTransformer.transform(XslTransformer.java:51)
      at hudson.plugins.mstest.MSTestReportConverter.transform(MSTestReportConverter.java:149)
      at hudson.plugins.mstest.MSTestReportConverter.transform(MSTestReportConverter.java:68)
      at hudson.plugins.mstest.MSTestTransformer.invoke(MSTestTransformer.java:74)
      ... 13 more
      Caused by: com.sun.org.apache.xml.internal.dtm.DTMException: No more DTM IDs are available
      at com.sun.org.apache.xml.internal.dtm.ref.DTMManagerDefault.addDTM(Unknown Source)
      at com.sun.org.apache.xalan.internal.xsltc.dom.XSLTCDTMManager.getDTM(Unknown Source)
      at com.sun.org.apache.xalan.internal.xsltc.dom.XSLTCDTMManager.getDTM(Unknown Source)
      at com.sun.org.apache.xalan.internal.xsltc.dom.SAXImpl.getResultTreeFrag(Unknown Source)
      at com.sun.org.apache.xalan.internal.xsltc.dom.DOMAdapter.getResultTreeFrag(Unknown Source)
      at GregorSamsa.template$dot$0()
      at GregorSamsa.applyTemplates()
      at GregorSamsa.transform()
      at com.sun.org.apache.xalan.internal.xsltc.runtime.AbstractTranslet.transform(Unknown Source)
      ... 19 more

            nilleb Ivo Bellin Salarin
            jfradley Joseph Fradley
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: