SBR | detectOnlyMode test (OCP-88876)#30
Conversation
|
/test 4.22-konflux-e2e-sbr-aws-odf |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: maximunited 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 |
|
Warning Review limit reached
More reviews will be available in 12 minutes and 53 seconds. Learn how PR review limits work. Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file). ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based credits. 🚦 How do rate limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan refill rate. For paid Pro and Pro+ PR reviews, CodeRabbit uses rolling per-developer review limits. Reviews become available again as older review attempts age out of the rolling limit window. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (6)
📝 WalkthroughWalkthroughAdds two new SBR operator Ginkgo test suites (detectOnlyMode validation and node-hang/NHC-based remediation), a new SNR operator CRD negative validation test suite, shared helper functions for both, exported constants/variables consumed by the new tests, and SNR README documentation for four new test scenarios. ChangesSBR Operator Tests
SNR Operator Tests
Estimated code review effort🎯 4 (Complex) | ⏱️ ~60 minutes Possibly related PRs
Suggested labels
Suggested reviewers
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 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 |
|
PR-Agent: could not find a component named |
PR Summary by QodoAdd SBRC detectOnlyMode functional tests (OCP-88876) Description
Diagram
High-Level Assessment
Files changed (3)
|
Code Review by Qodo
1. SBRC recreate race
|
|
Fixed: added an |
|
/test 4.22-konflux-e2e-sbr-aws-odf |
1 similar comment
|
/test 4.22-konflux-e2e-sbr-aws-odf |
|
PR-Agent: could not find a component named |
60d9954 to
5321c00
Compare
|
/test 4.22-konflux-e2e-sbr-aws-odf |
|
PR-Agent: could not find a component named |
5321c00 to
85214fc
Compare
|
/test 4.22-konflux-e2e-sbr-aws-odf |
|
PR-Agent: could not find a component named |
85214fc to
e5af3ac
Compare
|
/test 4.22-konflux-e2e-sbr-aws-odf |
|
PR-Agent: could not find a component named |
e5af3ac to
b1b1d01
Compare
|
/test 4.22-konflux-e2e-sbr-aws-odf |
|
PR-Agent: could not find a component named |
b1b1d01 to
0933adb
Compare
|
/test 4.22-konflux-e2e-sbr-aws-odf |
|
PR-Agent: could not find a component named |
|
/test 4.22-konflux-e2e-sbr-aws-odf |
0933adb to
176d9e0
Compare
|
PR-Agent: could not find a component named |
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 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 `@tests/sbr-operator/internal/sbrparams/const.go`:
- Line 133: The const.go file in the sbrparams package does not conform to Go
formatting standards. Run gofmt with the write flag on the const.go file to
automatically format it according to the official Go code style guidelines. This
will ensure consistent formatting throughout the file.
In `@tests/sbr-operator/tests/sbr.go`:
- Around line 631-633: The comment for the waitForSBRCReady function and the
assertion message both incorrectly state the function waits for "at least one
ready pod," but the actual implementation checks that NumberReady is greater
than or equal to DesiredNumberScheduled, meaning it waits for the entire
DaemonSet to be ready. Update both the function comment at the beginning of
waitForSBRCReady and the assertion message to accurately reflect that the
function blocks until all scheduled pods in the DaemonSet are ready, not just
one.
🪄 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: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: a079962f-dbe6-4b25-aad4-d2ea0a82bb8e
📒 Files selected for processing (10)
tests/sbr-operator/internal/sbrparams/const.gotests/sbr-operator/tests/detect_only.gotests/sbr-operator/tests/node_hang.gotests/sbr-operator/tests/sbr.gotests/sbr-operator/tests/sbr_helpers.gotests/snr-operator/README.mdtests/snr-operator/internal/snrparams/const.gotests/snr-operator/internal/snrparams/snrvars.gotests/snr-operator/tests/crd_negative.gotests/snr-operator/tests/helpers.go
176d9e0 to
0933adb
Compare
- Add detect_only.go: single It block for OCP-88876 with By() steps covering spec reflection, no-new-CR soak, mode toggle to Disabled, and DaemonSet GC - Operator readiness check in BeforeAll - Snapshot pre-existing SBR CRs; Consistently filters them out - Add node_hang.go: kernel panic fencing test (OCP-88738) - Skip when sysrq unavailable; Skip (not Expect) on missing RWX class - AlreadyExists guard on SBRC create; nhcCreated only when we created NHC - SBR CR/FencingSucceeded/cleanup checked before node-Ready wait - Add sbr_helpers.go: isNHCCRDInstalled via CRD GET using NHCCRDName - Update waitForSBRCReady: wait for NumberReady == DesiredNumberScheduled - Add SBRAgentDaemonSetPrefix, SBRCReadyTimeout, SBRCDaemonSetGCTimeout, NHC/fencing/reboot constants; remove unused speculative constants
0933adb to
8cac98e
Compare
1a9211f to
2e7324a
Compare
|
/retest |
2e7324a to
eaea3e9
Compare
|
/retest |
eaea3e9 to
6235de1
Compare
|
/retest |
6235de1 to
dbd7995
Compare
|
/retest |
dbd7995 to
36ec67c
Compare
|
/retest |
|
/test 4.22-konflux-e2e-sbr-aws-odf |
Summary
detect_only.go: Ginkgo test suite for SBRCdetectOnlyModefield (OCP-88876)Enabledmode is admitted and reflected in SBRC specStorageBasedRemediationCRs are auto-created while mode isEnabled(30s Consistently window)Disabledvia MergePatch with agent DaemonSet remaining readySBRAgentDaemonSetPrefixandSBRCReadyTimeoutconstants tosbrparamswaitForSBRCReadyhelper tosbr.goTest plan
make vetpassesgolangci-lintpasses (0 issues)Summary by CodeRabbit
Tests
Documentation