Skip to content

Conversation

@QxBytes
Copy link
Contributor

@QxBytes QxBytes commented Jun 25, 2025

Updates codeowners and adds uts for these go modules to the pr pipeline, combining code coverage as necessary. Previously, azure ipam and azure ip masq merger uts weren't included in make test-all because they were in different modules from the root module. Running make workspace before running the coverage allows us to include these numbers in the overall code coverage.

Reason for Change:

See above.

Issue Fixed:

Requirements:

Notes:

@QxBytes QxBytes self-assigned this Jun 25, 2025
@QxBytes QxBytes added ci Infra or tooling. cilium Related to Cilium. labels Jun 25, 2025
@QxBytes QxBytes requested a review from Copilot June 25, 2025 00:12
Copy link
Contributor

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 to include unit tests for both the azure ipam and azure ip masq merger modules, ensuring that code coverage is combined across modules.

  • Updated the workspace in the Makefile to include the azure-ip-masq-merger module.
  • Modified test targets in the Makefile to run unit tests with race detection and coverage reports for both modules.
  • Enhanced the pipeline YAML to combine coverage outputs and set up the workspace before running tests, and updated CODEOWNERS for the new module.

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
Makefile Updated workspace and test targets to integrate new modules.
.pipelines/templates/run-unit-tests.yaml Combined multiple module coverage and invoked workspace setup.
.github/CODEOWNERS Added code ownership for the azure-ip-masq-merger module.
Comments suppressed due to low confidence (1)

.pipelines/templates/run-unit-tests.yaml:29

  • [nitpick] It would be beneficial to include additional context in the comment explaining why 'tail -q -n +2' is used to combine the coverage files, ensuring clarity for future maintainers.
              # combine coverage from multiple modules

@QxBytes
Copy link
Contributor Author

QxBytes commented Jun 25, 2025

/azp run Azure Container Networking PR

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@QxBytes QxBytes marked this pull request as ready for review June 25, 2025 00:16
@QxBytes QxBytes requested review from a team as code owners June 25, 2025 00:16
@QxBytes QxBytes requested a review from thatmattlong June 25, 2025 00:16
@QxBytes QxBytes added this pull request to the merge queue Jun 25, 2025
Merged via the queue into master with commit 6715993 Jun 26, 2025
27 of 29 checks passed
@QxBytes QxBytes deleted the alew/add-azure-ip-masq-merger-uts branch June 26, 2025 00:10
NihaNallappagari pushed a commit to NihaNallappagari/azure-container-networking that referenced this pull request Sep 4, 2025
* add azure-ip-masq-merger to go work and include other modules in uts

* modify CODEOWNERS

* add individual module coverage
sivakami-projects pushed a commit that referenced this pull request Oct 23, 2025
* add azure-ip-masq-merger to go work and include other modules in uts

* modify CODEOWNERS

* add individual module coverage
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci Infra or tooling. cilium Related to Cilium.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants