Jacoco Coverage Converter Very Slow

Issue #22 wontfix
Former user created an issue

Even though I have found in code the "secret" property convert.thread.num to enable multitreading for JacocoCoverageConverter it's still very slow.

Coverage.xml is a file with the size of 15 MB on a project with 200.000 lines of java code.

See the console output here using 8 threads

[INFO] Scanning for projects...
[INFO] 
[INFO] ---------< com.atlassian.bitbucket:code-coverage-maven-plugin >---------
[INFO] Building code-coverage-maven-plugin 3.2.2-SNAPSHOT
[INFO] ----------------------------[ maven-plugin ]----------------------------
[INFO] 
[INFO] --- code-coverage-maven-plugin:3.2.1:publish (default-cli) @ code-coverage-maven-plugin ---
[INFO] Converting jacoco coverage in parallel mode
[INFO] Converted 7666 files for publishing
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  17:01 min
[INFO] Finished at: 2020-07-20T17:54:42+02:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.atlassian.bitbucket:code-coverage-maven-plugin:3.2.1:publish (default-cli) on project code-coverage-maven-plugin: Failed to post coverage info to bitbucket: [Failure: com.github.kittinunf.fuel.core.HttpException: HTTP Exception 404 ] -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

Please can you check if the coversion can be improved even further and maybe also consider to update the README so that the property is visible at first glance.

Thank you

Comments (2)

  1. Artem Koshelev

    It’s not clear from the provided output where that time was spend. I have a project with ~30.000 lines of java/kotlin code and publishing full coverage data for it takes 6.5s in 1 thread. Given it’s a straightforward conversion, i’d expect processing time growth to be next to linear.

  2. Log in to comment