Skip to content

chore(ci): remove the temporary jacoco coverage-debug artifacts#24045

Merged
stian-sandvold merged 1 commit into
masterfrom
ci/remove-jacoco-coverage-debug-steps
Jun 1, 2026
Merged

chore(ci): remove the temporary jacoco coverage-debug artifacts#24045
stian-sandvold merged 1 commit into
masterfrom
ci/remove-jacoco-coverage-debug-steps

Conversation

@stian-sandvold
Copy link
Copy Markdown
Contributor

Why

The unit-test and integration-h2-test jobs each carry two steps prefaced by this comment:

# delete the next 2 steps once we are confident in the coverage setup
- name: Tar jacoco coverage report to debug
  run: tar -cvf coverage.tar dhis-2/dhis-test-coverage/target/site/jacoco-aggregate
- uses: actions/upload-artifact@v7
  name: Upload jacoco coverage report to debug
  ...

They tar up the jacoco-aggregate report and upload it as a 5-day build artifact, purely so someone could download it and eyeball coverage by hand. They were added back in 2022 and have quietly been running on every build ever since — the "temporary" debug crutch became permanent.

Why it's safe to remove

  • Coverage reporting doesn't depend on them. Codecov is fed by the separate codecov/codecov-action step, which reads the jacoco reports directly. These tar/upload steps are not an input to codecov — removing them changes nothing about what codecov receives.
  • The manual artifact has gone unused. Three-plus years of building it; if it were needed to chase a coverage discrepancy it would have been acted on long ago.

This removes the four steps (two per job) and leaves the real coverage path (codecov) and the surefire report steps untouched.

Suggested sanity check before merge

Confirm the codecov dashboard / a recent PR's codecov comment is reporting unit, integration and integration-h2 coverage normally — i.e. we no longer need the manual artifact to trust the setup.

🤖 Generated with Claude Code

The unit-test and integration-h2-test jobs each tarred up the jacoco-aggregate
report and uploaded it as a build artifact, behind a 'delete the next 2 steps
once we are confident in the coverage setup' comment. Those debug steps were
added back in 2022 and have been running ever since.

Coverage reporting does not depend on them: codecov is fed directly by the
codecov-action step, which reads the jacoco reports itself. The tar/upload only
produced a downloadable artifact for manual inspection, which has gone unused.
Remove the four steps (two per job).
@stian-sandvold stian-sandvold requested a review from teleivo May 31, 2026 06:47
@stian-sandvold stian-sandvold marked this pull request as ready for review May 31, 2026 06:47
@stian-sandvold stian-sandvold requested a review from a team as a code owner May 31, 2026 06:47
@sonarqubecloud
Copy link
Copy Markdown

@stian-sandvold stian-sandvold merged commit 2fa9939 into master Jun 1, 2026
22 checks passed
@stian-sandvold stian-sandvold deleted the ci/remove-jacoco-coverage-debug-steps branch June 1, 2026 13:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants