Skip to content

Multi-module Maven coverage under-reported by run_jacoco path #28

Description

Problem

maven-build-test.yaml passes run_jacoco through to maven-build-action, which only generates a badge from whatever reports the single reactor pass leaves behind. For multi-module (multi-subproject) Maven projects this under-reports coverage: each module's bound jacoco:report runs before downstream modules' tests execute, so cross-module coverage attribution is lost and the badge/summary/coverage outputs are structurally wrong.

This is the same defect that produces 0% SonarQube coverage in security-workflows/sonarqube-cloud.yaml (investigated in lfreleng-actions/security-workflows#53, triggered by OpenDaylight's JJB migration). The build lane and the audit lane share the defect because they share the same maven-build-action invocation pattern — which is also why the fix belongs in the action, not in either workflow.

Fix

Root-cause work is tracked in:

Once those land and release, this repository only needs to bump the maven-build-action pin in maven-build-test.yaml (and re-verify the coverage outputs consumed at jobs.build.outputs.coverage / branch_coverage).

Validation

lfreleng-actions/test-maven-project is multi-module (parent/core/app); assert its badge/summary coverage reflects cross-module test attribution after the bump.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions