-
Notifications
You must be signed in to change notification settings - Fork 93
Pod-group-controller env tests #524
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: main
Are you sure you want to change the base?
Conversation
Merging this branch will not change overall coverage
Coverage by fileChanged files (no unit tests)
Please note that the "Total", "Covered", and "Missed" counts above refer to code statements instead of lines of code. The value in brackets refers to the test coverage of that file in the old version of the code. Changed unit test files
|
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 adds infrastructure to test the PodGroupController in env-tests and includes a basic sanity test demonstrating the functionality.
Key Changes
- Created test infrastructure for running PodGroupController in test environments
- Added binder integration for complete pod lifecycle testing
- Implemented a sanity test that verifies PodGroup status updates when pods are bound
Reviewed Changes
Copilot reviewed 11 out of 11 changed files in this pull request and generated 2 comments.
Show a summary per file
File | Description |
---|---|
pkg/env-tests/podgroupcontroller_test.go | New test file with PodGroupController test infrastructure and sanity test |
pkg/env-tests/podgroupcontroller/podgroupcontroller.go | New helper module to run PodGroupController in test context |
pkg/env-tests/binder/binder.go | Updated binder helper to accept configurable flag sets |
pkg/env-tests/scheduler_test.go | Removed empty line formatting issue |
pkg/binder/controllers/*.go | Added SkipNameValidation configuration for test compatibility |
cmd/podgroupcontroller/main.go | Refactored main function to support programmatic execution |
cmd/podgroupcontroller/app/*.go | Modified app structure to accept external configuration and context |
cmd/binder/app/options.go | Made InitOptions accept optional flag set parameter |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
cf45ae8
to
857f379
Compare
Merging this branch will increase overall coverage
Coverage by fileChanged files (no unit tests)
Please note that the "Total", "Covered", and "Missed" counts above refer to code statements instead of lines of code. The value in brackets refers to the test coverage of that file in the old version of the code. Changed unit test files
|
Added the infra to test the podgroupcontroller in env-tests. Added one sanity test as example.