History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: CIB-755
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Critical Critical
Assignee: jason
Reporter: Paul Redmond
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Pulse

Error using cppunit.pp on a dir-artifact

Created: 14/Nov/06 07:23 PM   Updated: 15/Nov/06 12:38 AM
Component/s: None
Affects Version/s: 1.1.21, 1.2.4
Fix Version/s: 1.2.6, 1.1.22


 Description  « Hide
I am trying to process some cppunit xml files using:

<dir-artifact name="cppunit report files" base="reports/cppunit">
  <process processor="${cppunit.pp}"/>
</dir-artifact>

When I have a single file in reports/cppunit/ it works (two different files each work when they are the only files). But when I have more than one file in there I get the following dump:


  [cppunit]
    commenced: 14/11/06 2:13:30 EST PM
14-Nov-2006 2:13:32 PM com.zutubi.pulse.core.RecipeProcessor executeCommand
SEVERE: null
java.util.ConcurrentModificationException
        at java.util.AbstractList$Itr.checkForComodification(AbstractList.java:449)
        at java.util.AbstractList$Itr.next(AbstractList.java:420)
        at com.zutubi.pulse.core.model.TestSuiteResult.add(TestSuiteResult.java:67)
        at com.zutubi.pulse.core.CppUnitReportPostProcessor.addSuites(CppUnitReportPostProcessor.java:96)
        at com.zutubi.pulse.core.CppUnitReportPostProcessor.processDocument(CppUnitReportPostProcessor.java:56)
        at com.zutubi.pulse.core.XMLReportPostProcessor.internalProcess(XMLReportPostProcessor.java:35)
        at com.zutubi.pulse.core.TestReportPostProcessor.process(TestReportPostProcessor.java:32)
        at com.zutubi.pulse.core.Artifact.captureFile(Artifact.java:128)
        at com.zutubi.pulse.core.DirectoryArtifact.capture(DirectoryArtifact.java:119)
        at com.zutubi.pulse.core.CommandGroup.execute(CommandGroup.java:74)
        at com.zutubi.pulse.core.RecipeProcessor.executeCommand(RecipeProcessor.java:198)
        at com.zutubi.pulse.core.RecipeProcessor.build(RecipeProcessor.java:161)
        at com.zutubi.pulse.core.RecipeProcessor.build(RecipeProcessor.java:97)
        at com.zutubi.pulse.local.LocalBuild.runBuild(LocalBuild.java:156)
        at com.zutubi.pulse.local.LocalBuild.main(LocalBuild.java:75)
        at com.zutubi.pulse.local.LocalBuildCommand.execute(LocalBuildCommand.java:17)
        at com.zutubi.pulse.command.PulseCtl.process(PulseCtl.java:64)
        at com.zutubi.pulse.command.PulseCtl.main(PulseCtl.java:229)
    completed: 14/11/06 2:13:32 EST PM
    elapsed : 1 sec
    result : error
    errors :
      Unexpected error: null
    artifacts:
      * environment
        * pulse.out/00000003-cppunit/environment/env.txt
      * command output
        * pulse.out/00000003-cppunit/command output/output.txt

completed: 14/11/06 2:13:32 EST PM
  elapsed : 5 secs
  result : error
  errors :
    Error executing command 'cppunit'


 All   Comments   Change History      Sort Order:
jason - 14/Nov/06 11:20 PM
Hi Paul,

Thanks for the report. At first glance it looks like it might be poor handling when trying to combine suites of the same name, but I need to investigate more to be sure. We will fix this for the next buid.

jason - 15/Nov/06 12:38 AM
The failure triggered in the code processing suites with the same name, but the problem was more general and could affect any post-processing with a directory artifact. Fixed in change 2591, merged to trunk in change 2592.