-
Notifications
You must be signed in to change notification settings - Fork 260
ci: add azure ipam and azure ip masq merger uts to pipeline #3756
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
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 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
|
/azp run Azure Container Networking PR |
|
Azure Pipelines successfully started running 1 pipeline(s). |
* add azure-ip-masq-merger to go work and include other modules in uts * modify CODEOWNERS * add individual module coverage
* add azure-ip-masq-merger to go work and include other modules in uts * modify CODEOWNERS * add individual module coverage
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: