-
Notifications
You must be signed in to change notification settings - Fork 86
Fix flaky tests #566
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: incubating
Are you sure you want to change the base?
Fix flaky tests #566
Conversation
Signed-off-by: Pierangelo Di Pilato <[email protected]>
WalkthroughTest files across controller and webhook layers are enhanced with resilience mechanisms for concurrent resource updates. Changes include retry-on-conflict handling for secret updates, patch-based status updates for InferenceService, and synchronization waits for ConfigMap retrieval to mitigate race conditions. Changes
Sequence Diagram(s)sequenceDiagram
participant Test
participant k8sClient
participant Eventually
participant InferenceService
Test->>Eventually: Eventually(patch status)
Eventually->>k8sClient: Get InferenceService
k8sClient-->>Eventually: inferred service object
rect rgb(220, 240, 255)
note right of Eventually: Deep Copy & Modify
Eventually->>InferenceService: DeepCopy()
InferenceService-->>Eventually: copied instance
Eventually->>Eventually: set Status.URL
end
rect rgb(220, 255, 220)
note right of Eventually: Patch-based Update
Eventually->>k8sClient: Patch(MergeFrom)
k8sClient-->>Eventually: success or retry
end
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (3)
🧰 Additional context used🧬 Code graph analysis (1)internal/controller/core/secret_controller_test.go (1)
🔇 Additional comments (9)
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 |
Jooho
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Jooho, pierDipi The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
PR needs rebase. 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. |
Notices a few flaky failures on other PRs, this should improve reliability
Summary by CodeRabbit
Release Notes
Bug Fixes
Tests