Skip to content

Commit 1e0ccf7

Browse files
committed
ci: compile main sources in coverage_report job
The coverage_report job was producing an effectively empty jacocoTestReport.xml (3.4KB vs ~1.1MB locally) because no .class files existed when coverageReportOnly ran — the job checked out source code and downloaded .exec artifacts, but never compiled. JaCoCo's report generator skips packages/classes it cannot resolve, so the merged XML ended up with only <sessioninfo> entries and no <package> elements. That made coverallsJacoco silently no-op via the "source file set empty, skipping" branch in CoverallsReporter, so "Push coverage to Coveralls" reported success without uploading. Verified by downloading the coverage-report artifact from a recent run and comparing its XML structure against a local build's report. Assisted-By: Claude Code
1 parent e1d3fc6 commit 1e0ccf7

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

.github/workflows/java-ci.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -445,6 +445,9 @@ jobs:
445445
- name: Set up Gradle
446446
uses: gradle/actions/setup-gradle@v4
447447

448+
- name: Compile main sources
449+
run: ./gradlew compileJava
450+
448451
- name: Download coverage artifacts
449452
uses: actions/download-artifact@v4
450453
with:

0 commit comments

Comments
 (0)