<CI>(workflow): restore Codecov unit-test coverage upload#958
Merged
kyonRay merged 1 commit intoJun 23, 2026
Merged
Conversation
Codecov coverage reports stopped appearing on PRs after the build-centos job (which carried the only coverage upload step) was removed in 9837e92. Add a dedicated 'coverage' job that runs the unit tests, generates the JaCoCo XML report (jacocoTestReport, xml.enabled=true) and uploads it to Codecov using the existing CODECOV_TOKEN secret. Unit-test scope matches .codecov.yml, which already ignores src/integration-test and src/integration-wasm-test. The job is continue-on-error so it never blocks a PR.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## release-3.9.0 #958 +/- ##
================================================
Coverage ? 52.08%
Complexity ? 4040
================================================
Files ? 430
Lines ? 17592
Branches ? 1962
================================================
Hits ? 9163
Misses ? 7699
Partials ? 730
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.




What
Restores Codecov coverage reports on pull requests.
Why
Codecov stopped reporting coverage after commit
9837e924(#941), which deleted thebuild-centosjob. That job carried the only coverage-upload step in the workflow:Since then the remaining
buildmatrix job runs tests but never uploads a JaCoCo report, so Codecov has no data and posts no coverage report/comment on any PR..codecov.ymland thejacocoplugin (jacocoTestReport,xml.enabled = true) are still configured — only the upload was missing.Change
Adds a dedicated
coveragejob that:gradlew test jacocoTestReport;build/reports/jacoco/test/jacocoTestReport.xmlto Codecov with the existingCODECOV_TOKENsecret (codecov/codecov-action@v4).Notes:
.codecov.yml, which alreadyignoressrc/integration-test/**andsrc/integration-wasm-test/**. So this needs no live FISCO BCOS node and is fast/deterministic.continue-on-error: true, so it never blocks a PR.run:step (only theCODECOV_TOKENsecret), so there is no workflow-injection surface.🤖 Generated with Claude Code