-
Notifications
You must be signed in to change notification settings - Fork 242
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
ci: add code coverage publishing and check to pipeline #3544
Conversation
/azp run Azure Container Networking PR |
Azure Pipelines successfully started running 1 pipeline(s). |
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 enhances the CI pipeline by adding code coverage publishing and regression checks to ensure that new changes do not significantly decrease overall test coverage.
- Adds "set -e" to enforce early failure on errors during testing
- Creates symlinks for gocov and gocov-xml and generates coverage reports
- Publishes the coverage report and adds a coverage regression check step
Files not reviewed (1)
- Makefile: Language not supported
Comments suppressed due to low confidence (1)
.pipelines/templates/run-unit-tests.yaml:23
- The line with '{ { { {' appears to be stray text that may have been accidentally committed. Consider removing it to ensure the script executes as intended.
{ { { {
187e25c
to
3f6bedd
Compare
/azp run Azure Container Networking PR |
Azure Pipelines successfully started running 1 pipeline(s). |
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 enhances the CI pipeline by adding steps to publish and check code coverage, ensuring that any significant regressions in code coverage are flagged. Key changes include:
- Adding a "set -e" command to catch script failures.
- Adding new steps for generating and publishing the coverage report.
- Introducing a build quality check task for verifying code coverage regressions.
Files not reviewed (1)
- Makefile: Language not supported
/azp run Azure Container Networking PR |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run Azure Container Networking PR |
Azure Pipelines successfully started running 1 pipeline(s). |
Reason for Change:
The current pr pipeline does not check if a PR drastically decreases the code coverage of the repository, nor does it publish code coverage results to the code coverage tab in ADO. This PR enables publishing code coverage and should mark the build as a failure if the code coverage decreases by a significant amount (> 0.25% I believe) compared to the master branch. Merges code coverage between windows and linux oses.
Issue Fixed:
See above
Requirements:
Notes: