[JIRA] [xunit] (JENKINS-18443) SkipNoTestFiles flag ignored. Build still set to failed if test files missing
Diogo Campos reopened JENKINS-18443 SkipNoTestFiles flag ignored. Build still set to failed if test files missing Change By: Diogo Campos (28/Nov/13 6:59 PM) Resolution: Fixed Status: Resolved Reopened This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators. For more information on JIRA, see: http://www.atlassian.com/software/jira -- You received this message because you are subscribed to the Google Groups Jenkins Issues group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[JIRA] [xunit] (JENKINS-18443) SkipNoTestFiles flag ignored. Build still set to failed if test files missing
Diogo Campos commented on JENKINS-18443 SkipNoTestFiles flag ignored. Build still set to failed if test files missing Still having problems with this in 1.6.5 It seems that the SkipTestException raised is being captured and turned into a (Tunneled)InterruptedException. In this example I'm publishing junit tests (2 files) and boosttest (0 files): [xUnit] [INFO] - Starting to record. [xUnit] [INFO] - Processing JUnit [xUnit] [INFO] - [JUnit] - 2 test report file(s) were found with the pattern 'PATTERN' relative to 'PATH' for the testing framework 'JUnit'. [xUnit] [INFO] - Processing BoostTest-1.x (default) [xUnit] [INFO] - [BoostTest-1.x (default)] - No test report file(s) were found with the pattern 'PATTERN' relative to 'PATH' for the testing framework 'BoostTest-1.x (default)'. Did you enter a pattern relative to the correct directory? Did you generate the result report(s) for 'BoostTest-1.x (default)'? [xUnit] [WARNING] - No test reports found for the metric 'BoostTest' with the resolved pattern 'PATTERN'. ERROR: Publisher org.jenkinsci.plugins.xunit.XUnitPublisher aborted due to exception java.lang.InterruptedException at hudson.FilePath.act(FilePath.java:908) at hudson.FilePath.act(FilePath.java:890) at org.jenkinsci.plugins.xunit.XUnitPublisher.performTests(XUnitPublisher.java:185) at org.jenkinsci.plugins.xunit.XUnitPublisher.performXUnit(XUnitPublisher.java:118) at org.jenkinsci.plugins.xunit.XUnitPublisher.perform(XUnitPublisher.java:93) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:785) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:757) at hudson.model.Build$BuildExecution.post2(Build.java:183) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:706) at hudson.model.Run.execute(Run.java:1704) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:230) Caused by: hudson.FilePath$TunneledInterruptedException at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2427) at hudson.remoting.UserRequest.perform(UserRequest.java:118) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:326) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at hudson.remoting.Engine$1$1.run(Engine.java:63) at java.lang.Thread.run(Thread.java:722) Caused by: org.jenkinsci.plugins.xunit.SkipTestException at com.thalesgroup.hudson.plugins.xunit.service.XUnitTransformer.invoke(XUnitTransformer.java:167) at com.thalesgroup.hudson.plugins.xunit.service.XUnitTransformer.invoke(XUnitTransformer.java:38) at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2425) ... 10 more Job XML: xunit plugin="xunit@1.65" types JUnitType patternPATTERN/pattern skipNoTestFilesfalse/skipNoTestFiles failIfNotNewfalse/failIfNotNew deleteOutputFilestrue/deleteOutputFiles stopProcessingIfErrortrue/stopProcessingIfError /JUnitType BoostTestJunitHudsonTestType patternPATTERN/pattern skipNoTestFilestrue/skipNoTestFiles failIfNotNewfalse/failIfNotNew deleteOutputFilestrue/deleteOutputFiles stopProcessingIfErrortrue/stopProcessingIfError /BoostTestJunitHudsonTestType /types thresholds org.jenkinsci.plugins.xunit.threshold.FailedThreshold unstableThreshold0/unstableThreshold unstableNewThreshold0/unstableNewThreshold failureThreshold/failureThreshold failureNewThreshold/failureNewThreshold /org.jenkinsci.plugins.xunit.threshold.FailedThreshold /thresholds thresholdMode1/thresholdMode /xunit This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators. For more information on
[JIRA] [xunit] (JENKINS-18443) SkipNoTestFiles flag ignored. Build still set to failed if test files missing
Diogo Campos edited a comment on JENKINS-18443 SkipNoTestFiles flag ignored. Build still set to failed if test files missing Still having problems with this in 1.65 It seems that the SkipTestException raised is being captured and turned into a (Tunneled)InterruptedException. In this example I'm publishing junit tests (2 files) and boosttest (0 files): [xUnit] [INFO] - Starting to record. [xUnit] [INFO] - Processing JUnit [xUnit] [INFO] - [JUnit] - 2 test report file(s) were found with the pattern 'PATTERN' relative to 'PATH' for the testing framework 'JUnit'. [xUnit] [INFO] - Processing BoostTest-1.x (default) [xUnit] [INFO] - [BoostTest-1.x (default)] - No test report file(s) were found with the pattern 'PATTERN' relative to 'PATH' for the testing framework 'BoostTest-1.x (default)'. Did you enter a pattern relative to the correct directory? Did you generate the result report(s) for 'BoostTest-1.x (default)'? [xUnit] [WARNING] - No test reports found for the metric 'BoostTest' with the resolved pattern 'PATTERN'. ERROR: Publisher org.jenkinsci.plugins.xunit.XUnitPublisher aborted due to exception java.lang.InterruptedException at hudson.FilePath.act(FilePath.java:908) at hudson.FilePath.act(FilePath.java:890) at org.jenkinsci.plugins.xunit.XUnitPublisher.performTests(XUnitPublisher.java:185) at org.jenkinsci.plugins.xunit.XUnitPublisher.performXUnit(XUnitPublisher.java:118) at org.jenkinsci.plugins.xunit.XUnitPublisher.perform(XUnitPublisher.java:93) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:785) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:757) at hudson.model.Build$BuildExecution.post2(Build.java:183) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:706) at hudson.model.Run.execute(Run.java:1704) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:230) Caused by: hudson.FilePath$TunneledInterruptedException at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2427) at hudson.remoting.UserRequest.perform(UserRequest.java:118) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:326) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at hudson.remoting.Engine$1$1.run(Engine.java:63) at java.lang.Thread.run(Thread.java:722) Caused by: org.jenkinsci.plugins.xunit.SkipTestException at com.thalesgroup.hudson.plugins.xunit.service.XUnitTransformer.invoke(XUnitTransformer.java:167) at com.thalesgroup.hudson.plugins.xunit.service.XUnitTransformer.invoke(XUnitTransformer.java:38) at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2425) ... 10 more Job XML: xunit plugin="xunit@1.65" types JUnitType patternPATTERN/pattern skipNoTestFilesfalse/skipNoTestFiles failIfNotNewfalse/failIfNotNew deleteOutputFilestrue/deleteOutputFiles stopProcessingIfErrortrue/stopProcessingIfError /JUnitType BoostTestJunitHudsonTestType patternPATTERN/pattern skipNoTestFilestrue/skipNoTestFiles failIfNotNewfalse/failIfNotNew deleteOutputFilestrue/deleteOutputFiles stopProcessingIfErrortrue/stopProcessingIfError /BoostTestJunitHudsonTestType /types thresholds org.jenkinsci.plugins.xunit.threshold.FailedThreshold unstableThreshold0/unstableThreshold unstableNewThreshold0/unstableNewThreshold failureThreshold/failureThreshold failureNewThreshold/failureNewThreshold /org.jenkinsci.plugins.xunit.threshold.FailedThreshold /thresholds thresholdMode1/thresholdMode /xunit This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators. For more information on