Repository navigation
Seed test reports on today's local date, not two hours back - #322
Merged
Merged
Conversation
AMapWithTagsOnIt put every tag's seeded location at now - 2h. The history screen asks for one local day at a time, so between 00:00 and 02:00 UTC that report belongs to yesterday and the screen has nothing to show: DebugModeReachesEveryScreenTest failed with "no history row was built at all" at 00:14 UTC on #320, and at the same hour on main before it. TimesToday.at(i) anchors the seeded time to local midnight instead, clamped to now for the first minute of the day. Both fixtures use it, and TheWholeAppJourneyTest loses its copy of the arithmetic. TimesTodayTest pins midnight, end of day, the first minute and a foreign zone with an injected clock; 5 of its 6 tests go red when the old offset is put back. Co-Authored-By: Claude Code <noreply@anthropic.com>
parawanderer
temporarily deployed
to
Android Build
November 24, 2026 14:57 — with
GitHub Actions
Inactive
parawanderer
temporarily deployed
to
Android Build
November 24, 2026 14:57 — with
GitHub Actions
Inactive
This branch was previously deployed
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.
AMapWithTagsOnItseeded every tag's location atnow − 2h, and its comment claimed that was comfortably inside today. It is between 02:00 and 22:00. Between 00:00 and 02:00 that report belongs to yesterday, the history screen asks for one local day at a time, and it shows nothing:DebugModeReachesEveryScreenTestfailed at 00:14 UTC with "no history row was built at all" while the other 858 tests passed. Same failure onmainat the same hour.TimesToday.at(i)anchors a seeded time to local midnight instead, a minute per item, clamped tonowfor the first minutes of the day. Both fixtures that seeded offsets use it now;TheWholeAppJourneyTesthad already been fixed this way by hand and loses its copy of the arithmetic.Verified:
TimesTodayTest: 6 JVM tests with the clock and zone passed in, covering midday, 00:30, 23:59:59, the first minute of the day, item spacing and a non-UTC zone.now − 2hput back inTimesToday.at, 5 of the 6 fail. The end-of-day case is the one that still passes, which is the point of it.:app:testEmulatorDebugAndroidTest: 884 tests, 0 failures, 16m.:app:testDebugUnitTest,:app:compileDebugAndroidTestJavaWithJavacandscripts/check_java_imports.py.Not verified: that run happened at 14:53 UTC, outside the window that failed, so it exercises the new seed times against every fixture-based test but not the midnight case itself. That one is pinned by
TimesTodayTestwith an injected clock rather than by a real clock.TimesTodaylives in the app's source set because the JVM suite cannot compile againstandroidTest. It is 40 lines and nothing in the app calls it.🤖 Generated with Claude Code