Repository navigation
Make terminal dock duration test deterministic - #8940
1 commit merged into
Conversation
|
Important Review skippedNo new commits to review since the last review. ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
📝 WalkthroughWalkthroughThe ChangesKeyboard transition planner validation
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related PRs
Suggested reviewers: 🚥 Pre-merge checks | ✅ 24 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (24 passed)
✨ 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 |
|
@coderabbitai review |
✅ Action performedReview finished.
|
Greptile SummaryThe PR makes the terminal dock duration test deterministic by deriving the expected duration from named inputs and comparing the complete synthesized animation plan with exact equality. Confidence Score: 5/5The PR appears safe to merge with no actionable issues identified. The change is confined to test code and replaces a one-sided floating-point tolerance with a deterministic expected plan derived using the same input types and arithmetic order. Important Files Changed
Reviews (1): Last reviewed commit: "test: compare dock duration structurally" | Re-trigger Greptile |
Summary
Testing
swift test --filter TerminalDockKeyboardTransitionPlannerTestspython3 scripts/check-test-determinism.py --strictbash tests/test_ci_self_hosted_guard.shContext
Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.Summary by cubic
Make the terminal dock duration test deterministic by computing the expected duration from inputs and asserting the plan equals an exact animate duration, instead of using a tolerance. Fixes the determinism gate failure on main and stabilizes CI.
Written for commit 9bb1151. Summary will update on new commits.
Summary by CodeRabbit