Repository navigation
OSAC-3161: add GPU InstanceType lifecycle E2E tests - #316
openshift-merge-bot[bot] merged 3 commits into
Conversation
Assisted-by: Claude Code <noreply@anthropic.com> Signed-off-by: Tzif <tmorgens@redhat.com>
|
@Tzif-Morgen: This pull request references OSAC-3161 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the task to target the "5.0.0" version, but no target version was set. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
WalkthroughThe test client now supports optional GPU specifications. A new lifecycle test validates GPU InstanceType creation, listing, update immutability, persistence, deletion, and cleanup. ChangesGPU InstanceType support
Estimated code review effort: 3 (Moderate) | ~20 minutes Sequence Diagram(s)sequenceDiagram
participant LifecycleTest
participant GRPCClient
participant PrivateAPI
LifecycleTest->>GRPCClient: Create InstanceType with GPU configuration
GRPCClient->>PrivateAPI: Submit InstanceType specification
PrivateAPI-->>LifecycleTest: Return GPU fields
LifecycleTest->>PrivateAPI: List and update InstanceTypes
PrivateAPI-->>LifecycleTest: Return listing and update results
LifecycleTest->>PrivateAPI: Delete InstanceTypes
PrivateAPI-->>LifecycleTest: Return deletion results
Possibly related PRs
Suggested labels: Suggested reviewers: 🚥 Pre-merge checks | ✅ 11✅ Passed checks (11 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
bef370e to
f3e20fb
Compare
Assisted-by: Claude Code <noreply@anthropic.com> Signed-off-by: Tzif <tmorgens@redhat.com>
f3e20fb to
44e9614
Compare
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@tests/vmaas/test_instance_type_lifecycle.py`:
- Around line 165-168: Extend the post-rejected-update assertions in the
instance type lifecycle test to verify every GPU field changed by the request,
including pciDeviceSelector, resourceName, and count. Compare each returned
value with the corresponding TEST_GPU expected value while preserving the
existing unchanged-after-rejection validation.
🪄 Autofix
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository: osac-project/coderabbit/.coderabbit.yaml
Review profile: CHILL
Plan: Pro Plus
Run ID: e0a7add4-dd6e-4b01-bc6f-7b3ee862caad
📒 Files selected for processing (2)
tests/core/grpc_client.pytests/vmaas/test_instance_type_lifecycle.py
Assisted-by: Claude Code <noreply@anthropic.com> Signed-off-by: Tzif <tmorgens@redhat.com>
d78b76e to
e4222b1
Compare
|
Looks kesem |
|
/approve |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: omer-vishlitzky, Tzif-Morgen The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
aa55129
into
osac-project:main
Summary
GRPCClient.create_instance_type()with optionalgpuparameter for creating GPU-enabled InstanceTypestest_gpu_instance_typecovering create+verify, list distinguishability, immutability rejectiontest_compute_instance_deletion_protectionTest plan
test_gpu_instance_typepasses against cluster with OSAC-3159 deployedtest_instance_type_lifecycle(existing) still passes - no regressionsosac delete instancetypereturnsFailedPrecondition: in useAssisted-by: Claude Code noreply@anthropic.com
Summary by CodeRabbit
Summary by CodeRabbit
New Features
Bug Fixes