Skip to content

test: keep test_fanout_stats' orphan workers inside the report day in every timezone - #162

Merged
STRML merged 1 commit into
mainfrom
fix/fanout-fixture-timezone
Oct 20, 2026
Merged

STRML merged 1 commit into
mainfrom
fix/fanout-fixture-timezone

Conversation

@STRML

@STRML STRML commented Oct 20, 2026

Copy link
Copy Markdown
Owner

Summary

test_fanout_stats in tests/run-all.sh failed 5 assertions on any machine at UTC+8 or later. Its orphan workers carried 2020-01-02T18:05Z, which is 02:05 on 2020-01-03 in Hong Kong, Tokyo and Sydney. The report day is local midnight to local midnight, so the day window correctly dropped both workers and sessions_nested, fanout_parents, the fanouts.tsv row count, the group sizes and the orphan names all came up short. Nothing in run.sh is wrong; the fixture assumed a US timezone.

The timestamps are now 09:05Z: that is 2020-01-02 locally from UTC-5 to UTC+11, and still hours away from the other fixture sessions (parent at 12:00Z, lone session at 15:00Z), so the test still shows that a fanout is not multi-clauding.

Test-only change, one fixture and a comment.

Status

Check Result
test_fanout_stats, before the change 5 failures in each of Asia/Hong_Kong, Asia/Tokyo and Australia/Sydney; 0 in America/New_York, America/Los_Angeles, UTC, Europe/London
test_fanout_stats, after the change 0 failures in all seven zones
Rest of the suite not re-run on this commit. A full run in HKT before this change had exactly these 5 timezone failures plus the 4 known sandbox ones (adapter-claude needs ps, two review-cmux interactive assertions, the prune-worktrees watchdog), so no other test is timezone-sensitive on that evidence.

Test plan

  • test_fanout_stats under TZ= each of the seven zones above
  • CI (runs in the runner's timezone, so it never saw this)

… every timezone

The orphan fixture used 2020-01-02T18:05Z, which is 02:05 on the next local day in Hong Kong, Tokyo and Sydney. The report day is local midnight to local midnight, so the window correctly dropped both workers and 5 assertions failed on any machine at UTC+8 or later (0 failures from UTC-8 to UTC+0). Moved to 09:05Z, which is 2020-01-02 from UTC-5 to UTC+11 and still hours from the other fixture sessions. Verified red before (5 failures each in Asia/Hong_Kong, Asia/Tokyo, Australia/Sydney) and 0 failures after in all seven of New York, Los Angeles, UTC, London, Hong Kong, Tokyo and Sydney.
@STRML
STRML merged commit da90784 into main Oct 20, 2026
2 checks passed
@STRML
STRML deleted the fix/fanout-fixture-timezone branch October 25, 2026 04:30
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