test(obs): tighten missing-key test hygiene per gemini review#598
test(obs): tighten missing-key test hygiene per gemini review#598
Conversation
bootjp
commented
Apr 23, 2026
- Log rdb.Close error instead of silently discarding it.
- Gate dumpErrorMetrics behind the assertion failure so the happy path does not pay for an extra Gather of every metric family.
- Short-circuit the three per-metric-family loops with a shared metricFamily() helper; missing families yield zero without a second Gather(), replacing the redundant testutil.GatherAndCount precheck.
- Log rdb.Close error instead of silently discarding it. - Gate dumpErrorMetrics behind the assertion failure so the happy path does not pay for an extra Gather of every metric family. - Short-circuit the three per-metric-family loops with a shared metricFamily() helper; missing families yield zero without a second Gather(), replacing the redundant testutil.GatherAndCount precheck.
a86bcfd to
804dea0
Compare
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
Warning Rate limit exceeded
Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 57 minutes and 36 seconds. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
✨ 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 |
|
Addressed Gemini medium-priority items from the review of the #595 series:
Verified:
/gemini review |
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
Codex Review: Didn't find any major issues. Breezy! ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |