Repository navigation
test: plan against the clock the run was made on - #44
Merged
Merged
Conversation
Four integration tests ran maintenance at a frozen instant and then planned with now=None -- the wall clock. Everything they asserted was true on the day they were written and stopped being true on a calendar boundary: the foreign-leaf grace test detaches on 2026-08-26 with a seven-day grace, so from 2026-09-02 the wall-clock plan sees an orphan past its grace and no GRACE_PENDING finding, and the test fails for everyone from that morning on. Every plan now looks at the instant the run did, and the grace test looks four days after it, inside the window it is about.
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
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.
Not part of #32 — a time bomb in the integration suite that went off this morning.
Four tests run maintenance at a frozen instant and then call
plan(config, now=None), which plans against the wall clock. The foreign-leaf grace test detaches on 2026-08-26 with a seven-day grace; from 2026-09-02 the wall-clock plan sees an orphan past its grace and noGRACE_PENDINGfinding, sotest__foreign_leaves__grace_period__foreign_orphan_waits_with_a_comment_then_goesfails in both mirrors, onmaster, for everyone. The other two were asserting things that happen to still be true today and would have stopped being true on a later boundary.Every plan now looks at the instant the run did; the grace test looks four days after it, inside the window it is about. 29 tests in the four affected files pass; nothing outside
tests/changes.The same commit is cherry-picked onto
feat/cli-and-containerso #43 is green independently of merge order.