OCPBUGS-90507: Update CNV swap tests for mandatory drop-in directory#31318
OCPBUGS-90507: Update CNV swap tests for mandatory drop-in directory#31318BhargaviGudi wants to merge 1 commit into
Conversation
|
Pipeline controller notification For optional jobs, comment This repository is configured in: automatic mode |
|
Skipping CI for Draft Pull Request. |
|
@BhargaviGudi: This pull request references Jira Issue OCPBUGS-90507, 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: 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)
WalkthroughThe CNV kubelet LimitedSwap drop-in test suite in ChangesCNV LimitedSwap validation test suite reorganization
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes 🚥 Pre-merge checks | ✅ 14 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (14 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ 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: BhargaviGudi 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 |
|
/jira refresh |
|
@BhargaviGudi: This pull request references Jira Issue OCPBUGS-90507, 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. |
|
/payload-job periodic-ci-openshift-release-main-nightly-5.0-e2e-aws-disruptive-longrunning |
|
@BhargaviGudi: 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/01f016b0-6bcf-11f1-9a52-cb1165f84022-0 |
6ebe642 to
80e03ef
Compare
|
@BhargaviGudi: This pull request references Jira Issue OCPBUGS-90507, which is valid. 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. |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 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.
Inline comments:
In `@test/extended/node/node_swap_cnv.go`:
- Around line 163-176: The test can pass even when getNodesByLabel returns zero
control plane nodes, because the for loop iterating over controlPlaneNodes will
never execute but the test still reports success at line 176, creating a false
positive. Add an assertion after the getNodesByLabel call (after line 164) using
the o.Expect pattern to verify that len(controlPlaneNodes) is greater than zero,
ensuring the test actually validates control plane nodes before claiming TC1
passed.
🪄 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: Repository YAML (base), Central YAML (inherited)
Review profile: CHILL
Plan: Enterprise
Run ID: 14a1295c-8216-4db3-b7cc-2a87656af3b9
📒 Files selected for processing (1)
test/extended/node/node_swap_cnv.go
80e03ef to
e8f3813
Compare
|
@BhargaviGudi: This pull request references Jira Issue OCPBUGS-90507, which is valid. 3 validation(s) were run on this bug
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. |
|
/payload-job periodic-ci-openshift-release-main-nightly-5.0-e2e-aws-disruptive-longrunning |
|
@BhargaviGudi: 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/997954f0-6e0a-11f1-8723-a88d645fe1bf-0 |
|
Scheduling required tests: |
Problem
TC6 test fails 100% of the time with 15-minute timeout, blocking daily CI runs.
Root Cause
MCO PR #6044 made /etc/openshift/kubelet.conf.d/ mandatory on ALL nodes (masters, workers) and now contains:
TC6 Invalid: Deletes entire directory to test auto-recreation, which removes 20-auto-sizing.conf and breaks kubelet (15-min timeout, node degradation).
TC5 Invalid: Assumes control plane ignores drop-in configs. Reality: control plane DOES apply LimitedSwap from drop-in (test fails) - Per MCO PR #6044, the drop-in directory is configured for control plane nodes
TC1 Outdated: Expected directory only on worker nodes. Now directory is mandatory on ALL nodes per MCO #6044.
Solution
Summary by CodeRabbit