Skip to content

[autopilot] skills: pin timezone and test DST days in testing-strategy - #157

Merged
wdm0006 merged 1 commit into
mainfrom
autopilot/skills-1792887472
Oct 25, 2026
Merged

wdm0006 merged 1 commit into
mainfrom
autopilot/skills-1792887472

Conversation

@wdm0006

@wdm0006 wdm0006 commented Oct 25, 2026

Copy link
Copy Markdown
Owner

Adds a short section to the testing-strategy skill's ambient-state chapter, plus two checklist lines.

Pattern: date-grouping logic (daily totals, 'midnight today', fixed 24h arithmetic) passes on UTC CI and on laptops but is wrong on 23/25-hour DST days; a frozen clock doesn't help because the local day depends on the process timezone, which many runtimes read only at startup. The guidance: pin the zone in a child process (or pass an explicit ZoneInfo), use a real transition date, assert exact per-day values, and cover the exact-midnight and future-event boundaries.

Readers get a concrete recipe for tests that actually fail on the DST bug instead of depending on the runner's zone.

@wdm0006
wdm0006 merged commit 1d9d15a into main Oct 25, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant