OCPBUGS-82070: Skip machine scale test when bare metal lacks extra workers.#30978
OCPBUGS-82070: Skip machine scale test when bare metal lacks extra workers.#30978RadekManak wants to merge 1 commit intoopenshift:mainfrom
Conversation
|
Pipeline controller notification For optional jobs, comment This repository is configured in: automatic mode |
|
@RadekManak: This pull request references Jira Issue OCPBUGS-82070, which is invalid:
Comment The bug has been updated to refer to the pull request using the external bug tracker. 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. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
WalkthroughThe tests update baremetal-related control flow: Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: RadekManak The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
/payload-job periodic-ci-openshift-release-main-nightly-4.22-e2e-metal-ovn-two-node-fencing-serial-techpreview-3of3 |
|
@RadekManak: trigger 1 job(s) for the /payload-(with-prs|job|aggregate|job-with-prs|aggregate-with-prs) command
See details on https://pr-payload-tests.ci.openshift.org/runs/ci/037e8d40-3358-11f1-892c-7f136bb7f0bb-0 |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@test/extended/machines/scale.go`:
- Around line 232-235: CanDeployExtraWorkers() currently masks all secret-read
errors as false, causing transient API/RBAC failures to be treated as skips;
change its signature to return (bool, error) (or add a helper that returns
error) and update its implementation in test/extended/baremetal/helper.go to
return (false, err) only on real read errors and (false, nil) only when the
extraworkers-secret is actually NotFound; then update the caller in
test/extended/machines/scale.go (where helper.CanDeployExtraWorkers() is
invoked) to check the error: if err == nil && ok == false -> Skipf (secret
absent), if err != nil -> propagate/fail the test with the underlying error (do
not Skip), and if ok == true -> continue. Ensure log/skip messages still
reference the secret presence case and preserve the original error when failing.
🪄 Autofix (Beta)
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: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: f575daa2-da36-4161-aad2-ed68c432d45c
📒 Files selected for processing (1)
test/extended/machines/scale.go
|
Scheduling required tests: |
Treat bare-metal extra-worker data as a hard precondition so fixed-capacity clusters skip cleanly instead of timing out on impossible MachineSet scale-ups.
c4e9153 to
5487a06
Compare
|
/jira refresh |
|
@RadekManak: This pull request references Jira Issue OCPBUGS-82070, which is valid. The bug has been moved to the POST state. 3 validation(s) were run on this bug
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. |
|
Scheduling required tests: Scheduling tests matching the |
|
@RadekManak: The following tests failed, say
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. |
Treat bare-metal extra-worker data as a hard precondition so fixed-capacity clusters skip cleanly instead of timing out on impossible MachineSet scale-ups.