-
Notifications
You must be signed in to change notification settings - Fork 1
give exporters some time to disconnect #20
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
Conversation
this is supposed to help with a flaky test "can lease and connect to exporters". The delete leases operation before this test causes exporters to disconnect, but it can take a short while to initiate that, and the kubectl wait in wait_for_exporter() can catch the Online/Registered state from before the disconnect. Let's see if it helps...
WalkthroughA 2-second sleep was inserted at the start of the wait_for_exporter function in tests.bats, with comments explaining reconnection timing after a lease. Subsequent waits for Online and Registered states are unchanged. No public APIs or exported declarations were modified. Changes
Sequence Diagram(s)sequenceDiagram
participant T as Test Runner
participant W as wait_for_exporter()
T->>W: Invoke after lease operation
note right of W: New step: sleep(2s)<br/>to allow reconnect
W->>W: Wait for "Online"
W->>W: Wait for "Registered"
W-->>T: Return when conditions met
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 💡 Knowledge Base configuration:
You can enable these sources in your CodeRabbit configuration. 📒 Files selected for processing (1)
🧰 Additional context used🧠 Learnings (2)📓 Common learnings📚 Learning: 2025-05-28T18:32:19.124ZApplied to files:
🔇 Additional comments (2)
✨ Finishing Touches
🧪 Generate unit tests
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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR/Issue comments)Type Other keywords and placeholders
CodeRabbit Configuration File (
|
this is supposed to help with a flaky test "can lease and connect to exporters". The delete leases operation before this test causes exporters to disconnect, but it can take a short while to initiate that, and the kubectl wait in wait_for_exporter() can catch the Online/Registered state from before the disconnect. Let's see if it helps...
Summary by CodeRabbit
Bug Fixes
Tests