-
Notifications
You must be signed in to change notification settings - Fork 31
[SL-TEMP] Validate Unit Test report generation and upload steps #530
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR enables coverage report generation and upload for unit tests by integrating Codecov for project and patch coverage tracking.
- Adds XML coverage report generation capability alongside existing HTML reports
- Integrates Codecov upload step in the CI/CD workflow with coverage requirements
- Configures Codecov with 60% patch coverage target and project coverage monitoring
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| scripts/build_coverage.sh | Adds gcovr installation and XML coverage generation with --xml flag |
| .github/workflows/unit_integration_test.yaml | Enables coverage build flags and adds Codecov upload step |
| .github/codecov.yml | Configures Codecov with project and patch coverage requirements |
Comments suppressed due to low confidence (1)
scripts/build_coverage.sh:44
- The gcovr version 8.3 may not exist. As of my knowledge cutoff in January 2025, gcovr's latest version was around 6.x. Please verify this version exists or use a known stable version.
pip3 install gcovr==8.3
| if_ci_failed: ignore | ||
| patch: | ||
| default: | ||
| target: 60% # Require 80% patch coverage |
Copilot
AI
Jul 30, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The comment says 'Require 80% patch coverage' but the target is set to 60%. The comment should be updated to match the actual target value.
| target: 60% # Require 80% patch coverage | |
| target: 60% # Require 60% patch coverage |
| _install_gcovr() { | ||
| if ! gcovr --version >/dev/null 2>&1; then | ||
| echo "gcovr not installed. Installing..." | ||
| pip3 install gcovr==8.3 | ||
| fi | ||
| } | ||
|
|
Copilot
AI
Jul 30, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[nitpick] The _install_gcovr function should be called after its definition. Currently it's defined but never invoked until line 298, which could lead to confusion about when gcovr gets installed.
| _install_gcovr() { | |
| if ! gcovr --version >/dev/null 2>&1; then | |
| echo "gcovr not installed. Installing..." | |
| pip3 install gcovr==8.3 | |
| fi | |
| } | |
| # _install_gcovr invocation moved closer to its definition for clarity.() { | |
| if ! gcovr --version >/dev/null 2>&1; then | |
| echo "gcovr not installed. Installing..." | |
| pip3 install gcovr==8.3 | |
| fi | |
| } | |
| _install_gcovr |
Summary
Enabling project coverage and patch coverage for PR's
Testing
CI/CD