Details
-
Type:
Bug
-
Status: Resolved (View Workflow)
-
Priority:
Major
-
Resolution: Fixed
-
Component/s: xunit-plugin
-
Labels:None
-
Environment:Jenkins: 2.107.3
xUnit: 2.0.1
OS: Debian stretch
-
Similar Issues:
Description
This is a regression from 2.0.0, downgrading makes it work again.
I've attached a censored version of the xml file, write me if you need the full one.
INFO: Processing GoogleTest-1.6 INFO: [GoogleTest-1.6] - 1 test report file(s) were found with the pattern 'test_results/*/*.xml' relative to '/xxx' for the testing framework 'GoogleTest-1.6'. ERROR: Conversion error: Cannot convert string "" to a double ERROR: Step 'Publish xUnit test result report' aborted due to exception: org.jenkinsci.plugins.xunit.exception.XUnitException: Conversion error: Cannot convert string "" to a double at org.jenkinsci.plugins.xunit.service.XUnitConversionService.convert(XUnitConversionService.java:89) at org.jenkinsci.plugins.xunit.service.XUnitTransformer.invoke(XUnitTransformer.java:136) Caused: java.io.IOException: There are some problems during the conversion into JUnit reports: at org.jenkinsci.plugins.xunit.service.XUnitTransformer.invoke(XUnitTransformer.java:170) at org.jenkinsci.plugins.xunit.service.XUnitTransformer.invoke(XUnitTransformer.java:41) at hudson.FilePath.act(FilePath.java:1020) at hudson.FilePath.act(FilePath.java:998) at org.jenkinsci.plugins.xunit.XUnitProcessor.performTests(XUnitProcessor.java:207) at org.jenkinsci.plugins.xunit.XUnitProcessor.performXUnit(XUnitProcessor.java:150) at org.jenkinsci.plugins.xunit.XUnitPublisher.perform(XUnitPublisher.java:124) 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.model.Build$BuildExecution.post2(Build.java:186) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:635) at hudson.model.Run.execute(Run.java:1752) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:97) at hudson.model.Executor.run(Executor.java:429)
Attachments
Activity
Field | Original Value | New Value |
---|---|---|
Summary | org.jenkinsci.plugins.xunit.exception.XUnitException: Conversion error: Cannot convert string "" to a double | GoogleTest parse error when time attribute is missing |
Resolution | Fixed [ 1 ] | |
Status | Open [ 1 ] | Resolved [ 5 ] |
Description |
This is a regression from 2.0.0, downgrading makes it work again. I've attached a censored version of the xml file, write me if you need the full one. INFO: Processing GoogleTest-1.6 INFO: [GoogleTest-1.6] - 1 test report file(s) were found with the pattern 'test_results/*/*.xml' relative to '/xxx' for the testing framework 'GoogleTest-1.6'. ERROR: Conversion error: Cannot convert string "" to a double ERROR: Step 'Publish xUnit test result report' aborted due to exception: org.jenkinsci.plugins.xunit.exception.XUnitException: Conversion error: Cannot convert string "" to a double at org.jenkinsci.plugins.xunit.service.XUnitConversionService.convert(XUnitConversionService.java:89) at org.jenkinsci.plugins.xunit.service.XUnitTransformer.invoke(XUnitTransformer.java:136) Caused: java.io.IOException: There are some problems during the conversion into JUnit reports: at org.jenkinsci.plugins.xunit.service.XUnitTransformer.invoke(XUnitTransformer.java:170) at org.jenkinsci.plugins.xunit.service.XUnitTransformer.invoke(XUnitTransformer.java:41) at hudson.FilePath.act(FilePath.java:1020) at hudson.FilePath.act(FilePath.java:998) at org.jenkinsci.plugins.xunit.XUnitProcessor.performTests(XUnitProcessor.java:207) at org.jenkinsci.plugins.xunit.XUnitProcessor.performXUnit(XUnitProcessor.java:150) at org.jenkinsci.plugins.xunit.XUnitPublisher.perform(XUnitPublisher.java:124) 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.model.Build$BuildExecution.post2(Build.java:186) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:635) at hudson.model.Run.execute(Run.java:1752) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:97) at hudson.model.Executor.run(Executor.java:429) |
This is a regression from 2.0.0, downgrading makes it work again. I've attached a censored version of the xml file, write me if you need the full one. {noformat} INFO: Processing GoogleTest-1.6 INFO: [GoogleTest-1.6] - 1 test report file(s) were found with the pattern 'test_results/*/*.xml' relative to '/xxx' for the testing framework 'GoogleTest-1.6'. ERROR: Conversion error: Cannot convert string "" to a double ERROR: Step 'Publish xUnit test result report' aborted due to exception: org.jenkinsci.plugins.xunit.exception.XUnitException: Conversion error: Cannot convert string "" to a double at org.jenkinsci.plugins.xunit.service.XUnitConversionService.convert(XUnitConversionService.java:89) at org.jenkinsci.plugins.xunit.service.XUnitTransformer.invoke(XUnitTransformer.java:136) Caused: java.io.IOException: There are some problems during the conversion into JUnit reports: at org.jenkinsci.plugins.xunit.service.XUnitTransformer.invoke(XUnitTransformer.java:170) at org.jenkinsci.plugins.xunit.service.XUnitTransformer.invoke(XUnitTransformer.java:41) at hudson.FilePath.act(FilePath.java:1020) at hudson.FilePath.act(FilePath.java:998) at org.jenkinsci.plugins.xunit.XUnitProcessor.performTests(XUnitProcessor.java:207) at org.jenkinsci.plugins.xunit.XUnitProcessor.performXUnit(XUnitProcessor.java:150) at org.jenkinsci.plugins.xunit.XUnitPublisher.perform(XUnitPublisher.java:124) 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.model.Build$BuildExecution.post2(Build.java:186) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:635) at hudson.model.Run.execute(Run.java:1752) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:97) at hudson.model.Executor.run(Executor.java:429) {noformat} |
Code changed in jenkins
User: Nikolas Falco
Path:
src/main/resources/org/jenkinsci/plugins/xunit/types/googletest-to-junit.xsl
src/test/java/org/jenkinsci/plugins/xunit/types/GoogleTestTest.java
src/test/java/org/jenkinsci/plugins/xunit/types/GoogleTestTypeTest.java
src/test/resources/org/jenkinsci/plugins/xunit/types/googletest/testcase3/input.xml
src/test/resources/org/jenkinsci/plugins/xunit/types/googletest/testcase3/result.xml
http://jenkins-ci.org/commit/xunit-plugin/44589f4659334a1b8a752b6aad075c4589748f69
Log:
JENKINS-51798GoogleTest parse error when time attribute is missingFix junit time function when is time attribute is empty
Compare: https://github.com/jenkinsci/xunit-plugin/compare/354a5981c1ca...44589f465933
*NOTE:* This service been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/
Functionality will be removed from GitHub.com on January 31st, 2019.