ROX-36233: Increase retries for admctrl configmap test - #22184
Conversation
|
Skipping CI for Draft Pull Request. |
📝 WalkthroughSummary by CodeRabbit
WalkthroughThe admission controller ConfigMap propagation test now retries up to 30 times instead of 10. The 3-second retry interval and validation logic remain unchanged. ChangesAdmission controller ConfigMap test
Estimated code review effort: 1 (Trivial) | ~2 minutes Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 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 |
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 `@tests/admctrl_configmap_test.go`:
- Line 93: Bound the retry block around testutils.Retry to a 90-second overall
deadline, and derive each ConfigMap fetch context timeout from the remaining
deadline rather than allocating a fresh 30-second timeout. Preserve the existing
retry count and 3-second interval while ensuring retries stop when the deadline
expires.
🪄 Autofix
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: Central YAML (base), Organization UI (inherited)
Review profile: CHILL
Plan: Pro Plus
Run ID: d68a8235-bc36-4790-aa29-e82f09c29e6a
📒 Files selected for processing (1)
tests/admctrl_configmap_test.go
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #22184 +/- ##
==========================================
- Coverage 51.30% 51.27% -0.04%
==========================================
Files 2867 2867
Lines 179352 179352
==========================================
- Hits 92024 91963 -61
- Misses 79255 79299 +44
- Partials 8073 8090 +17
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
🚀 Build Images ReadyImages are ready for commit ead351c. To use with deploy scripts: export MAIN_IMAGE_TAG=4.12.x-706-gead351c7a6 |
Co-authored-by: Cursor <cursoragent@cursor.com>
|
/test gke-nongroovy-e2e-tests |
Description
The e2e test
TestAdmissionControllerConfigMapWithPostgresis flaky because its 30-secondretry window (10 x 3s) can be exceeded by the async Central → Sensor → ConfigMap propagation
chain, especially under CI load or when the test runs first in the suite before the system
has fully settled. The
PostPolicycall succeeds but the policy never reaches the ConfigMapwithin the window.
Increase retry attempts from 10 to 30 (90s total) to accommodate transient propagation delays.
User-facing documentation
Testing and quality
Automated testing
How I validated my change
Test-only change that increases the retry window for an existing e2e test. The fix addresses
the flaky failure observed in ROX-36233
(build 31179874810) where
the admission-control ConfigMap was never updated within the 30s window after creating a
deploy-time policy. CI will validate the fix.
Made with Cursor