NO-JIRA: test(autoscaling): make GPU annotation optional in scale-from-zero test - #7484
Conversation
|
Important Review skippedAuto reviews are limited based on label configuration. 🚫 Review skipped — only excluded labels are configured. (1)
Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the WalkthroughGPU capacity annotation check in MachineDeployment verification is now optional. When absent, a default fallback string is applied, and log output uses this computed value instead of the raw annotation. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Comment |
d8d5b74 to
1a886dd
Compare
|
/approve |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: bryan-cox, jhjaggars 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 |
|
/lgtm cancel |
|
/retest-required |
|
/lgtm |
|
/retest |
|
/verified via e2e tests later |
|
@jhjaggars: 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. |
|
/verified @jhjaggars via e2etest later |
|
@jhjaggars: 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. |
|
/verified later @jhjaggars |
|
@jhjaggars: This PR has been marked to be verified later by 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. |
The GPU annotation is only set by the scale-from-zero controller when instance types have GPUs (scale_from_zero.go:126-132). For non-GPU instances, the annotation is intentionally not set. This commit updates the test to not require the GPU annotation, while still requiring the other capacity annotations (vCPU, memoryMb, labels) that are always present. The logging is also updated to handle the missing GPU annotation gracefully. This fixes test failures in CI where non-GPU instance types (like m5.large) are used. Co-Authored-By: Claude Sonnet 4.5 (1M context) <noreply@anthropic.com>
1a886dd to
1c97c7d
Compare
|
/lgtm Just rebased |
|
/retest |
1 similar comment
|
/retest |
|
/test e2e-aws-4-21 |
|
@jhjaggars: all tests passed! Full PR test history. Your PR dashboard. DetailsInstructions 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 kubernetes-sigs/prow repository. I understand the commands that are listed here. |
|
@jhjaggars: This pull request explicitly references no jira issue. 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. |
What this PR does / why we need it:
This PR fixes a test failure in
TestNodePoolAutoscalingScaleFromZerothat was failing when testing with non-GPU instance types.The test unconditionally expected the
machine.openshift.io/GPUannotation to be present on the MachineDeployment. However, the scale-from-zero controller only sets this annotation when the instance type has GPUs (seehypershift-operator/controllers/nodepool/scale_from_zero.go:126-132). When testing with non-GPU instances (like m5.large), the GPU annotation is intentionally not set, causing the test to fail.Changes:
Which issue(s) this PR fixes:
Fixes test failures seen in openshift/release#72805 which enables scale-from-zero testing in CI.
Special notes for your reviewer:
scale_from_zero.gomake staticcheckpassesChecklist: