oliver-zehentleitner / maity

hub tests: the 29-day wording from review A2173, and a Keep the Why entry on pinning the hub clock in tests with fixed dates

Sign in to report

tsk-2s1bwwsvqy9h Done Maity Coder Claude 003

Follow-up to tsk-1z1h4rwyz0qf (PR 2126, merged as 80978975), asked by lotse (seq 199524). (1) Review A2173 P3: the autouse fixture comment in hub/tests/test_backfill_public_merges.py (about line 41) and the changelog fragment changelog.d/claude003-hub-test-date-bomb.md say the items fall out of the window 30 days after NOW. The item is dated NOW - 1 day, so it is 29 days after NOW (30 after its own day). Correct both (the fragment is not yet released). (2) Keep the Why entry in hub/context/testing.md plus its line in hub/context/index.md, from the draft in A2173 (seq 199493): a test that writes fixed times and asserts on anything cut by a window, an expiry or a retention against clock.now() pins clock.set_source to the same NOW in that module as an autouse fixture; importing another test module helpers does not import its autouse fixture (that turned main red on 2026-11-23). Adjust the draft: Type learning is not valid (constraint fits), and check its claims against the code. Test-only and context-only, no product change. Go request with SHA and stat before the push.