Fix type-checker timeout in AppShellViewModelTests - #78
Conversation
Hoist the start/end offsets out of the 22-argument EKEventDTO literal in upcomingEventsCappedAt6; inline they exceed the type checker's budget and `swift test` fails to build. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DVhag6dKjqZqzP44XDujq5
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Team Run ID: 📒 Files selected for processing (1)
Included review availability: Your plan provides up to 2 included reviews per hour; 1 remains after this review. 📝 WalkthroughWalkthroughTwo UI tests now compute local start and end intervals before constructing ChangesEvent Interval Refactor
Estimated code review effort: 1 (Trivial) | ~2 minutes Merge Risk: ⚪ Minimal · up to This localized test-only refactor preserves fixture behavior while resolving a compiler type-checking timeout; no actionable merge-blocking risk remains beyond normal checks and review. Suggested reviewers: 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Title checkExplanation The title clearly identifies the main change: fixing a Swift type-checker timeout in AppShellViewModelTests. It is concise and specific, although the related HomeViewModelTests change is not mentioned.
✨ 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 |
…eral Same fix as AppShellViewModelTests (PR 78): hoist the start/end offsets out of the 22-argument EKEventDTO literal in homeShowsUpcomingPreview into typed locals so the type checker stays within budget.
swift testfails to buildAppShellUITests: theEKEventDTOliteral inupcomingEventsCappedAt6has 22 arguments plus inlineDouble(idx + 1) * 600 + 3600arithmetic and string interpolation, and the compiler gives up — "unable to type-check this expression in reasonable time" atAppShellViewModelTests.swift:728.Fix: hoist
start/endinto explicitly typed locals before the call.swift test --package-path Packages/BiscottiKitpasses (78 + 35 + 19 tests). Verified on top of #77, which is needed forTranscriptionto compile at all.🤖 Generated with Claude Code
https://claude.ai/code/session_01DVhag6dKjqZqzP44XDujq5
Summary by CodeRabbit