-
Notifications
You must be signed in to change notification settings - Fork 246
ci: use publish code coverage results v1 #3647
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: master
Are you sure you want to change the base?
Conversation
/azp run Azure Container Networking |
No pipelines are associated with this pull request. |
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 updates the CI pipeline for Azure Container Networking to use Publish Code Coverage Results v1 instead of v2 due to multi-file report limitations and removes Windows coverage steps from the pipeline.
- Removed Windows-specific pipeline tasks (artifact download, coverage conversion, and report migration).
- Downgraded the publish code coverage task to version 1 and updated its configuration accordingly.
Comments suppressed due to low confidence (1)
.pipelines/templates/run-unit-tests.yaml:75
- Removal of Windows coverage tasks means only Linux builds are covered; ensure this change aligns with the intended CI coverage requirements.
- GOOS=windows gocov convert windows-coverage.out > windows-coverage.json
/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.
I think we should keep the windows test results, and combine them into one file (or does that not work?)
/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.
Yeah this looks good to me now, I know we can't properly combine windows+linux test coverage results into one file, but this at least gives a starting point with linux
Reason for Change:
Use publish code coverage results v1 until v2 bug is fixed. Code coverage v1 does not support multi file coverage reports and merging the two files does not give the expected result (depending on the GOOS during gocov, os-specific files are included/excluded from the report).
Will re add the windows ut coverage after v2 fix is out.
Green run: https://msazure.visualstudio.com/One/_build/results?buildId=123636014&view=results
Issue Fixed:
Requirements:
Notes: