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

Found unhandled java.lang.IllegalArgumentException exception: Cannot merge coverage information for line 61 in [FILE] xxx.cs <0>

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • coverage-plugin
    • None
    • latest jenkins lts with latest coverage-plugin

      I get this stranage error message:

      Cannot merge coverage information for line 61 in [FILE] xxx.cs <0>
      	edu.hm.hafner.coverage.FileNode.mergeCounters(FileNode.java:156)
      	edu.hm.hafner.coverage.FileNode.mergeNode(FileNode.java:136)
      	edu.hm.hafner.coverage.Node.lambda$mergeNode$17(Node.java:745)
      	java.base/java.util.ArrayList.forEach(Unknown Source)
      	edu.hm.hafner.coverage.Node.mergeNode(Node.java:741)
      	edu.hm.hafner.coverage.Node.lambda$mergeNode$17(Node.java:745)
      	java.base/java.util.ArrayList.forEach(Unknown Source)
      	edu.hm.hafner.coverage.Node.mergeNode(Node.java:741)
      	edu.hm.hafner.coverage.Node.merge(Node.java:720)
      	java.base/java.util.stream.ReduceOps$2ReducingSink.accept(Unknown Source)
      	java.base/java.util.stream.ReferencePipeline$3$1.accept(Unknown Source)
      	java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(Unknown Source)
      	java.base/java.util.stream.AbstractPipeline.copyInto(Unknown Source)
      	java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(Unknown Source)
      	java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(Unknown Source)
      	java.base/java.util.stream.AbstractPipeline.evaluate(Unknown Source)
      	java.base/java.util.stream.ReferencePipeline.reduce(Unknown Source)
      	edu.hm.hafner.coverage.Node.merge(Node.java:687)
      	io.jenkins.plugins.coverage.metrics.steps.CoverageRecorder.aggregateResults(CoverageRecorder.java:523)
      	io.jenkins.plugins.coverage.metrics.steps.CoverageRecorder.perform(CoverageRecorder.java:413)
      	io.jenkins.plugins.coverage.metrics.steps.CoverageRecorder.perform(CoverageRecorder.java:402)
      	io.jenkins.plugins.coverage.metrics.steps.CoverageStep$Execution.run(CoverageStep.java:365)
      	io.jenkins.plugins.coverage.metrics.steps.CoverageStep$Execution.run(CoverageStep.java:333)
      	org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47)
      	java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
      	java.base/java.util.concurrent.FutureTask.run(Unknown Source)
      	java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
      	java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      	java.base/java.lang.Thread.run(Unknown Source)
      

      I'm using this jenkins fragment to read coverage info from ms dotnet test sdk coverage provider

      recordCoverage sourceCodeRetention: 'EVERY_BUILD', tools: [[parser: 'COBERTURA', pattern: '**/TestResults/*/*.cobertura.xml']], ignoreParsingErrors: true
      

      there are of cause multiple cobertura files containing coverage for same classes as we've multiple test projects.

            drulli Ulli Hafner
            viceice Michael Kriese
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: