Repository navigation
Fix kueue upgrade test: on-pr operand image with fallback and rollout wait - #81552
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository YAML (base), Central YAML (inherited) Review profile: CHILL Plan: Enterprise Run ID: 📥 CommitsReviewing files that changed from the base of the PR and between ccf76089ae68fd789adcf0561b5e3104728390e7 and 76e1e8d. 📒 Files selected for processing (2)
🚧 Files skipped from review as they are similar to previous changes (2)
WalkthroughUpdates Kueue operator image setup to prefer on-pr tags with latest-image fallback and exports validated image values. Updates the upgrade test to use rollout/availability waits and to confirm the controller-manager image matches ChangesKueue Operator Image Resolution and Upgrade Readiness
Estimated code review effort: 2 (Simple) | ~15 minutes Possibly related PRs
Suggested labels: Suggested reviewers: 🚥 Pre-merge checks | ✅ 14 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (14 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 |
|
/pj-rehearse ack |
|
@sohankunkerkar: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel. |
There was a problem hiding this comment.
Pull request overview
This PR updates the kueue-operator upgrade CI flow to (1) consistently resolve operator/operand images to the PR-built on-pr-${REVISION} tags with a fallback to the latest Konflux branch build, and (2) add stronger rollout synchronization so upgrade tests don’t race ahead before the operand actually rolls out to the expected image.
Changes:
- Add
resolve_image()to preferon-pr-${REVISION}for operator/operand images, falling back to the latest branch build when the PR tag is missing. - Replace the manual operator readiness polling with
oc rollout statusand add a polling loop to ensurekueue-controller-manageris usingOPERAND_IMAGEbefore proceeding.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
| ci-operator/step-registry/kueue-operator/test/upgrade/operator/kueue-operator-test-upgrade-operator-commands.sh | Improves upgrade synchronization by waiting on operator rollout and verifying the operand deployment updates to the expected image. |
| ci-operator/step-registry/kueue-operator/image-env-setup/kueue-operator-image-env-setup-commands.sh | Resolves operator/operand images using on-pr-${REVISION} with a fallback to latest Konflux branch builds and exports them for downstream steps. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
ccf7608 to
76e1e8d
Compare
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: kannon92, sohankunkerkar 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 |
|
[REHEARSALNOTIFIER]
A total of 56 jobs have been affected by this change. The above listing is non-exhaustive and limited to 25 jobs. A full list of affected jobs can be found here Interacting with pj-rehearseComment: Once you are satisfied with the results of the rehearsals, comment: |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
ci-operator/step-registry/kueue-operator/image-env-setup/kueue-operator-image-env-setup-commands.sh (1)
39-48: 🩺 Stability & Availability | 🔵 Trivial | ⚡ Quick win
resolve_imageconflates "tag not found" with any registry error.
skopeo inspect ... &>/dev/nulldiscards all diagnostic output, and the fallback path treats auth failures, network errors, and TLS issues identically to a genuinely missingon-prtag, silently falling back toresolve_latest_image. Given this PR's goal is fixing image-race flakiness, a masked registry error here could cause the test to silently run against a stale Konflux build instead of failing loudly with an actionable error.♻️ Suggested fix to surface real errors
resolve_image() { local repo=$1 local pr_tag="on-pr-${REVISION}" - if skopeo inspect "docker://${repo}:${pr_tag}" &>/dev/null; then + local inspect_output + if inspect_output=$(skopeo inspect "docker://${repo}:${pr_tag}" 2>&1); then echo "${repo}:${pr_tag}" return fi - echo "on-pr tag not found for ${repo}, falling back to latest branch build..." >&2 + echo "on-pr tag ${pr_tag} not usable for ${repo} (${inspect_output}), falling back to latest branch build..." >&2 resolve_latest_image "$repo" }🤖 Prompt for 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. In `@ci-operator/step-registry/kueue-operator/image-env-setup/kueue-operator-image-env-setup-commands.sh` around lines 39 - 48, The resolve_image function is masking all skopeo inspect failures as a missing on-pr tag, so distinguish a real tag miss from registry/auth/network/TLS errors. Update resolve_image to inspect the skopeo exit status and preserve stderr output, then only fall back to resolve_latest_image when the tag is actually absent; for any other failure, surface the error and fail loudly. Keep the fix centered around resolve_image and resolve_latest_image so the fallback remains explicit and actionable.
🤖 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.
Nitpick comments:
In
`@ci-operator/step-registry/kueue-operator/image-env-setup/kueue-operator-image-env-setup-commands.sh`:
- Around line 39-48: The resolve_image function is masking all skopeo inspect
failures as a missing on-pr tag, so distinguish a real tag miss from
registry/auth/network/TLS errors. Update resolve_image to inspect the skopeo
exit status and preserve stderr output, then only fall back to
resolve_latest_image when the tag is actually absent; for any other failure,
surface the error and fail loudly. Keep the fix centered around resolve_image
and resolve_latest_image so the fallback remains explicit and actionable.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository YAML (base), Central YAML (inherited)
Review profile: CHILL
Plan: Enterprise
Run ID: 3a06c31c-f5bc-4d64-b0d8-c78cf2ba127f
📥 Commits
Reviewing files that changed from the base of the PR and between 4ac9f63 and ccf76089ae68fd789adcf0561b5e3104728390e7.
📒 Files selected for processing (2)
ci-operator/step-registry/kueue-operator/image-env-setup/kueue-operator-image-env-setup-commands.shci-operator/step-registry/kueue-operator/test/upgrade/operator/kueue-operator-test-upgrade-operator-commands.sh
|
@sohankunkerkar: 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. |
|
/pj-rehearse ack |
|
@sohankunkerkar: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel. |
Summary
Follow-up to #81517. Two remaining issues with the kueue upgrade test:
on-pr-${REVISION}for both operator and operand (consistent), with fallback to latest Konflux branch build when the tag doesn't exist (openshift/release rehearsals)oc rollout statusfor the operator + polling loop that verifies the kueue-controller-manager container image matchesOPERAND_IMAGEbefore proceeding to tests (10m timeout)Unblocks openshift/kueue-operator#2134
Test plan
oc get deployment kueue-controller-manager -o wideshows the Konflux operand image, notregistry.redhat.io/kueue/kueue-rhel9@sha256:9ad4355bb...🤖 Generated with Claude Code
Summary by CodeRabbit
This PR improves the kueue operator upgrade CI flow by making both image resolution and rollout verification more deterministic.
on-pr-${REVISION}for both the operator and operand images. If either tag is not available, it falls back to the latest resolvable Konflux branch image, and fails fast if resolution still produces empty image references.kueue-controller-managercontainer image matches the expectedOPERAND_IMAGE. Only after this match does it wait for the controller-manager rollout to finish, with diagnostics on failures.Overall, this reduces flaky upgrade rehearsal runs caused by missing PR-specific images and by proceeding before the operand is actually deployed.