Skip to content

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

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open

Conversation

QxBytes
Copy link
Contributor

@QxBytes QxBytes commented May 9, 2025

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:

@QxBytes QxBytes self-assigned this May 9, 2025
@QxBytes QxBytes added the ci Infra or tooling. label May 9, 2025
@QxBytes QxBytes changed the title cit: use build quality checks v1 ci: use build quality checks v1 May 9, 2025
@QxBytes QxBytes changed the title ci: use build quality checks v1 ci: publish code coverage results v1 May 9, 2025
@QxBytes QxBytes changed the title ci: publish code coverage results v1 ci: use publish code coverage results v1 May 9, 2025
@QxBytes QxBytes marked this pull request as ready for review May 9, 2025 18:16
@Copilot Copilot AI review requested due to automatic review settings May 9, 2025 18:16
@QxBytes QxBytes requested a review from a team as a code owner May 9, 2025 18:16
@QxBytes QxBytes requested a review from carlotaarvela May 9, 2025 18:16
@QxBytes
Copy link
Contributor Author

QxBytes commented May 9, 2025

/azp run Azure Container Networking

Copy link

No pipelines are associated with this pull request.

Copy link
Contributor

@Copilot Copilot AI left a 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

@QxBytes
Copy link
Contributor Author

QxBytes commented May 9, 2025

/azp run Azure Container Networking PR

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Contributor

@pjohnst5 pjohnst5 left a 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?)

@QxBytes
Copy link
Contributor Author

QxBytes commented May 16, 2025

/azp run Azure Container Networking PR

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@QxBytes QxBytes enabled auto-merge May 19, 2025 16:38
Copy link
Contributor

@pjohnst5 pjohnst5 left a 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci Infra or tooling.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants