test(dashmate): use a sentinel wake-up counter the clock cannot collide with - #4565
Conversation
…de with The counter-leak guard asserted the rendered text never contains "37", but the fixture builds times from the live clock and the solution renders minute fields — any :37 minute made the assertion fail. A 6-digit sentinel keeps the guard while being impossible in any date or time slice. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Team Run ID: 📒 Files selected for processing (1)
Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthroughThe gateway certificate renewal test now uses sentinel failure count ChangesGateway certificate renewal tests
Estimated code review effort: 1 (Trivial) | ~5 minutes Merge Risk: ⚪ Minimal · up to Gateway certificate renewal tests now use a unique sentinel value, avoiding false failures caused by clock-rendered minute values while preserving coverage that renewal messaging is shown and the failure counter is not. 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 |
|
🕓 Ready for review — 9 ahead in queue (commit 17d66b7) |
thepastaclaw
left a comment
There was a problem hiding this comment.
Final validation — GLM Flash + Sol
The fixture-only change replaces the ambiguous two-digit wake-up counter with a six-digit sentinel that cannot collide with the ISO-derived dates or times rendered by the analyzer, while preserving the counter-leak assertions. The affected Dashmate specification passes all 91 tests, and no in-scope defects were identified.
Source: reviewer 1: glm-5.3-flash (agent: phase1-reviewer, role: general); reviewer 2: gpt-5.6-sol (agent: phase2-reviewer, role: general); final verifier: gpt-5.6-sol (agent: sol-verifier, role: final-verifier)
Review provenance
- Phase 1 reviewers (GLM Flash):
glm-5.3-flash— general (completed); agentphase1-reviewer - Fresh verifier (Sol):
gpt-5.6-sol— final-verifier; agentsol-verifier - Phase 2 reviewers (Sol):
gpt-5.6-sol— general (completed); agentphase2-reviewer
…lake # Conflicts: # packages/dashmate/test/unit/doctor/analyse/analyseGatewayCertificateFactory.spec.js
v4.2-dev
JS packages (dashmate) / Testsis red on the tip:should never claim renewal has been failing since it last succeededasserts the operator text does not contain "37" (the wake-up counter), but the fixture uses live-clock timestamps and the solution renders minute fields — whenever a rendered time hits :37 the guard false-positives (fails several minutes of every hour). Fix: a 6-digit sentinel counter (739577) that cannot appear in any ISO date/time slice; guard intent unchanged, all clock-relative fixture logic untouched. Spec: 91 passing locally.🤖 Generated with Claude Code
Summary by CodeRabbit