Revert "OTA-1997: Allow the CVO to use the agentic-skills payload image when creating proposals" - #1430
Revert "OTA-1997: Allow the CVO to use the agentic-skills payload image when creating proposals"#1430redhat-chai-bot wants to merge 1 commit into
Conversation
|
@redhat-chai-bot: This pull request references OTA-1997 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 story 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 pull request replaces the configurable agentic skills image reference with a fixed OpenShift CI image, removes its ImageStream tag, adds the same image as the controller default, removes an empty-image sync guard, and updates manifest and controller tests. ChangesAgentic skills image configuration
Estimated code review effort: 2 (Simple) | ~10 minutes Suggested reviewers: 🚥 Pre-merge checks | ✅ 15✅ Passed checks (15 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 |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: redhat-chai-bot 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 |
|
@redhat-chai-bot: The label(s) 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 kubernetes-sigs/prow repository. |
There was a problem hiding this comment.
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
pkg/agenticrun/controller_test.go (1)
140-145: 🎯 Functional Correctness | 🟡 Minor | ⚡ Quick winMake
TestController_Syncindependent of ambient environment variables.
NewControllercallsDefaultConfig(), andConfig.SkillsImagereads the current process value ofLIGHTSPEED_SKILLS_IMAGE. Because this test no longer sets the configuration explicitly, its expected image can change in developer/CI environments when that env var is set. Set it witht.Setenvor inject the expected config before constructing the controller.🤖 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 `@pkg/agenticrun/controller_test.go` around lines 140 - 145, Update TestController_Sync to control LIGHTSPEED_SKILLS_IMAGE with t.Setenv before constructing the controller, using the image value expected by the test. Ensure each test run is independent of the ambient process environment while preserving the existing Sync assertions.
🤖 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.
Outside diff comments:
In `@pkg/agenticrun/controller_test.go`:
- Around line 140-145: Update TestController_Sync to control
LIGHTSPEED_SKILLS_IMAGE with t.Setenv before constructing the controller, using
the image value expected by the test. Ensure each test run is independent of the
ambient process environment while preserving the existing Sync assertions.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository YAML (base), Central YAML (inherited)
Review profile: CHILL
Plan: Pro Plus
Run ID: 92bad69b-171d-4d2d-9cf5-2050e458b5d9
📒 Files selected for processing (6)
install/0000_00_cluster-version-operator_30_deployment.yamlinstall/image-referencespkg/agenticrun/controller.gopkg/agenticrun/controller_test.gopkg/payload/render_test.gopkg/payload/testdata/TestRenderManifest_expected_cvo_deployment.yaml
💤 Files with no reviewable changes (2)
- install/image-references
- pkg/payload/render_test.go
This reverts merge commit 977be36 (PR #1427, commit 47bfd33).
Root Cause
PR #1427 changed the CVO's own Deployment manifest to reference
{{ index .Images "agentic-skills" }}. During a 4.22→5.0 major upgrade, the 4.22 CVO loads the 5.0 payload manifests but itsmanifestRenderConfighas noImagesfield. The Go template renders the field to an empty string, causing the CVO to silently skip its own Deployment — so it never self-updates. This creates a circular deadlock: the old CVO can't deploy the new CVO.Impact
The 5.0 CI stream has been blocked for 50+ hours (last accepted:
5.0.0-0.ci-2026-07-23-195533). Every 4.22→5.0 major upgrade verification job fails.Evidence
5.0.0-0.ci-2026-07-24-212127(first to contain CVO OTA-1997: Allow the CVO to use the agentic-skills payload image when creating proposals. #1427)config-operator Progressing=Trueinvariant failure is a red herring — the real failure is the CVO never completing its self-update/label jira/valid-bug
@stbenjam requested in Slack thread
Summary by CodeRabbit