Repository navigation
test(calendar): pin the timezone-change test to a past week - #990
Closed
neurekadev wants to merge 1 commit into
Closed
neurekadev wants to merge 1 commit into
neurekadev wants to merge 1 commit into
Conversation
The test hard-coded the week of 2 to 8 November 2026. While that week is the current one, a timezone change selects today instead of the week's Monday, so the test failed on every branch. A past week never contains today. Closes Silo-Server#989 Co-Authored-By: Claude Opus 5.5 <[email protected]>
3 tasks done
Silo Kody — review completeReview finished. Check the inline comments for findings and verify each suggestion against the code and tests. Reviewing changes in Silo
Review settingsReview OptionsThe following review options are enabled or disabled:
|
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Contributor
Author
Adversarial Review
Reviewed |
2 of 3 tasks
2 of 3 tasks
3 tasks
Contributor
|
Closing: #1005 already fixed this test on main. It pins the view model's clock instead of moving the week into the past, and adds coverage for a timezone change during the current week. Thanks for tracking this down. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Closes #989
Related issue: N/A (first seen on #988's
Apple regressionrun)Validation tasks: none
CalendarTimeZoneTests.testLoadAfterATimeZoneChangeRequestsTheSameWeekInTheNewZonefails on theSiloandSiloTVsimulator suites for any branch whose CI runs from 2 to 8 November 2026. The test hard-codes that week. After a timezone change,CalendarViewModelselects today when today falls inside the shown week, so the last assertion (selectedDay == week.startDate) fails this week only. This blocks every open PR'sApple regressionrun until 9 November, including #988.Approach
The test moves to the week of 3 to 9 November 2025, which is in the past and never contains today. It still checks the same thing: Monday 3 November in Auckland is still Sunday 2 November in Los Angeles, and the request keeps the same Monday-to-Sunday dates after the timezone change. Only the test changes;
CalendarViewModelbehaves as intended.Validation
zoneinfo: 5 November 2025 is a Wednesday. Auckland's Monday at midnight is Sunday 03:00 in Los Angeles. The rebuilt week's Thursday anchor (Monday plus 3.5 days) is Wednesday 5 November in Los Angeles, so the week stays 3 to 9 November.Apple regressionCI runs the suite.Evidence
Evidence: none, no user-visible change
Risks
None identified. Test-only change.
Checklist
AI Disclosure
claude-opus-5-50480748..0881696: the expected dates, DST in both zones that week,rebuilt(in:)anchoring, and whether the test still catches a cross-day regression. No findings.🤖 Generated with Claude Code