fix: add parallel UT coverage reporting and recover Codecov#3323
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Dallas98
approved these changes
Jun 29, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the unit-test/coverage pipeline to better support parallelized pytest execution while ensuring combined coverage artifacts are generated consistently and successfully uploaded to Codecov on the ARM runner.
Changes:
- Adjust coverage generation so the combined
.coveragedata is created first and XML is generated via the Coverage Python API during the reporting step. - Add a
codecov.ymlconfiguration to enforce project/patch coverage status behavior and PR commenting layout. - Update the unit-test GitHub Actions workflow to pin/upgrade the Codecov action, explicitly select the ARM64 uploader OS, and fail CI on upload errors to restore the
codecov/patchcheck.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
test/run_all_test.py |
Moves XML generation into the Coverage API reporting step after combining parallel coverage data. |
codecov.yml |
Adds Codecov status/comment configuration for project and patch coverage reporting. |
.github/workflows/auto-unit-test.yml |
Pins/upgrades Codecov upload action, adds uploader OS override input, and enforces failing on upload errors. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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.
Summary
test/coverage.xmloutputs.linux-arm64uploader explicitly, failing CI on upload errors, and pinning the action to a full commit SHA for SonarCloud compliance.Codecov Recovery
Historical CI logs showed the coverage XML was generated successfully, but
codecov/codecov-action@v4failed on the ARM runner after selecting an invalid uploader path. This PR updates the uploader configuration so the UT job uploadstest/coverage.xmlsuccessfully and restores thecodecov/patchPR check.Validation
.github/workflows/auto-unit-test.ymlwith PyYAML.backend/.venv/bin/python -m py_compile test/run_all_test.py.NEXENT_PYTEST_TARGETS=test/backend/consts/test_error_code.py, producing79 passedandtest/coverage.xml.testpassing andcodecov/patchpassing after the Codecov workflow update.