Coverage data not shown in MR

I’m using Jacoco & the script from to convert the Jacoco output to Cobertura’s format.

The code is at the backed sub-folder, so I have the following sed script to patch the path in the cobertura file:

 # working dir: backend
 - python2 /bin/ target/site/jacoco/jacoco.xml src/main/java > ../cobertura.xml
 - sed -i 's;<source>src/main/;<source>backend/src/main/;' ../cobertura.xml

The job log says:

Uploading artifacts for successful job
Uploading artifacts...
cobertura.xml: found 1 matching files and directories 
Uploading artifacts as "cobertura" to coordinator... 201 Created  id=146 responseStatus=201 Created token=xxxxx
Cleaning up project directory and file based variables

I’ve downloaded the cobertura artifact and the paths look good:

<classes><class branch-rate="0.0" complexity="11.0" filename="pt/ulisboa/tecnico/socialsoftware/tutor/answer/" line-rate="0.0" name="pt.ulisboa.tecnico.socialsoftware.tutor.answer.AnswerController">

Indeed file backend/src/main/java/pt/ulisboa/tecnico/socialsoftware/tutor/answer/ exists in the tree.

However, I don’t get any coverage information in the merge requests. I’ve tried peeking through the browser’s dev tools to check for the coverage json file as suggested in other threads, but it’s not downloaded at all.

Could someone suggest how to debug this issue? We have Gitlab EE 15.5.3.

Thank you!

I’m having the same problem with 15.6.3-ee. A valid cobertura report XML is created, but on the MR Changes page no coverage information is displayed and there is no request to coverage_reports.json. If I request coverage_reports.json with curl I get an empty response.