CNTRLPLANE-3871: e2e: Remove osImageStream cleanup that violates immutability - #9206
CNTRLPLANE-3871: e2e: Remove osImageStream cleanup that violates immutability#9206csrwng wants to merge 1 commit into
Conversation
|
Pipeline controller notification For optional jobs, comment This repository is configured in: LGTM mode |
|
@csrwng: This pull request references CNTRLPLANE-3871 which is a valid 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. |
|
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: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughThe explicit-default OS image stream test no longer fetches the NodePool or resets Suggested reviewers: 🚥 Pre-merge checks | ✅ 10 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (10 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: csrwng 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 |
The NodePoolOSImageStreamExplicitDefaultNoRolloutTest cleanup tried to unset osImageStream after setting it to the version-derived default. A CEL validation rule prevents removing osImageStream once set, causing the cleanup to fail with a 422 error. Since the test sets the field to the same value the controller derives implicitly, no restoration is needed. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
d19dbf2 to
52a147e
Compare
|
When openshift/release#82438 merges, verify this change with: |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #9206 +/- ##
=======================================
Coverage 44.94% 44.94%
=======================================
Files 778 778
Lines 97427 97427
=======================================
Hits 43790 43790
Misses 50616 50616
Partials 3021 3021
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
|
/test e2e-v2-aws-techpreview-osimagestream |
|
/verified by e2e |
|
@csrwng: This PR has been marked as verified 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. |
|
/lgtm |
|
Scheduling tests matching the |
Test Resultse2e-aws
e2e-aks
|
|
/lgtm Good catch on the DeferCleanup — the CEL immutability rule at A few additional gaps I found while auditing the same file for our PR #9099 (already have fixes there): Nit (this PR):
Pre-existing gaps (not blocking, tracked in #9099):
I have fixes for all of these in #9099 — will rebase on top of yours once this merges. |
|
/retest-required |
|
/test ? |
|
/test e2e-v2-aws-techpreview-osimagestream |
|
@csrwng: 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. |
Summary
DeferCleanupblock inNodePoolOSImageStreamExplicitDefaultNoRolloutTestthat attempted to unsetosImageStreamafter setting it to the version-derived defaultosImageStreamonce set, causing cleanup to fail with a 422 errorJira
https://issues.redhat.com/browse/CNTRLPLANE-3871
Test plan
e2e-v2-aws-techpreview-osimagestreamjob passes without the 422 cleanup error🤖 Generated with Claude Code
Summary by CodeRabbit