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

The cobertura is way faster than publishCoverage copying source files

      Changing

      publishCoverage adapters: [coberturaAdapter('coverage.xml')], sourceFileResolver: sourceFiles('STORE_ALL_BUILD')

      for

      cobertura coberturaReportFile: 'coverage.xml'

      makes the step take ~7 seconds instead of ~7 minutes.

       

      I'm not going to pretend I understand the details. But the coverage report from "cobertura" does include the source files, so I don't understand why the big difference.

      Seeing "publishCoverage" work it looks like it has "205 source files need to be copied" and it copies all of them, one after the other, very slowly. There doesn't seem to be any parallelization.

          [JENKINS-64856] The cobertura is way faster than publishCoverage copying source files

          Jake Robb added a comment -

          I have this problem too. I have a multi-module, multi-language project with multiple cobertura-style XML coverage reports for Jenkins to publish, which means (as far as I know) that I can't use the fast way.

          I would very much love to see this go faster! Why must we copy every file individually?!

          Jake Robb added a comment - I have this problem too. I have a multi-module, multi-language project with multiple cobertura-style XML coverage reports for Jenkins to publish, which means (as far as I know) that I can't use the fast way. I would very much love to see this go faster! Why must we copy every file individually?!

          Ulli Hafner added a comment -

          Yes, that part of the code should be improved. Are you interested in helping (pull request)? The plugin currently has no active maintainer (well I am trying to improve the UI currently but I can't fix everything on my own).

          Ulli Hafner added a comment - Yes, that part of the code should be improved. Are you interested in helping (pull request)? The plugin currently has no active maintainer (well I am trying to improve the UI currently but I can't fix everything on my own).

          Ulli Hafner added a comment -

          Ulli Hafner added a comment - See https://github.com/jenkinsci/code-coverage-api-plugin/pull/310

          Cristian added a comment -

          I don't think I can change the "Status". But this was actually released with 3.0.0, right?

          Cristian added a comment - I don't think I can change the "Status". But this was actually released with 3.0.0, right?

          Ulli Hafner added a comment -

          I don't think I can change the "Status". But this was actually released with 3.0.0, right?

          Yes, that is right! I forgot that the plugin uses both Jira and GitHub to track issues

          Ulli Hafner added a comment - I don't think I can change the "Status". But this was actually released with 3.0.0, right? Yes, that is right! I forgot that the plugin uses both Jira and GitHub to track issues

            Unassigned Unassigned
            reddwarf94 Cristian
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: