fix: stabilize media cache CI tests#464
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (6)
WalkthroughThe change introduces an environment-backed timestamp reference date, converts message and chat timestamps to on-demand formatting, propagates date and locale context through SwiftUI views, and expands media-cache and asynchronous download test coverage. ChangesTimestamp refresh
Media test stability
Estimated code review effort: 4 (Complex) | ~45 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 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 to review this PR? Stage has broken it down into 5 individual chapters for you: Chapters generated by Stage for commit bf28027 on Jul 13, 2026 11:14am UTC. |
Pip adversarial reviewVerdict: blocking — 1 finding. Blocking
Verified
|
|
Addressed the blocking finding in 73ecc32. The fake gate now keeps a one-shot terminal latch, routes cancellation through the same locked transition, and atomically claims the gate continuation so concurrent callers cannot overwrite it. Added deterministic load-first/late-gate and gate-first/load-finish regressions; local diff/shell checks pass. macOS CI is running. |
* fix: refresh relative timestamps after midnight Refresh chat and message timestamp projections when the calendar day changes or the app returns to the foreground. Keep formatting outside ordinary row renders and cover the day-boundary transition with a regression test. Fixes #470 * style: align timestamp view modifiers * refactor: simplify timestamp refresh state Remove stale mapping-time labels, narrow the sidebar's equatable timestamp inputs, require explicit message-row clock inputs, and assert the exact weekday transition in the regression test. --------- Co-authored-by: agent-p1p <agent-p1p@users.noreply.github.com>
Fixes #457
Replacement for #463, which was closed after its first CI run exposed a Swift contextual-type compile error. This branch includes the type annotation fix and has no inherited red CI history.
Summary
FakeMarmotRuntimedownload observations so concurrent attachment downloads cannot lose recorded references or corrupt the backing array.Verification
git diff --checkbash -n scripts/ci/macos-sanity-checks.shbash -n scripts/sync-bindings.shmessageMediaDiskCacheReadDeletionMaintainsTrackedFootprintworkspaceCoalescesAndCachesSourceEpochZeroMediaReferenceResolutionmediaAttachmentDownloadTimesOutAndReleasesLimiterSlotfalsetrueSensitive paths
None. Test harness only; no crypto, MLS, CGKA, key, auth, trust-anchor, or group-state code changed.
Summary by CodeRabbit