Skip to content

test: plan against the clock the run was made on - #44

Merged
AlexeyShalaev merged 1 commit into
masterfrom
fix/plan-against-the-frozen-clock
Sep 2, 2026
Merged

AlexeyShalaev merged 1 commit into
masterfrom
fix/plan-against-the-frozen-clock

Conversation

@AlexeyShalaev

Copy link
Copy Markdown
Member

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 no GRACE_PENDING finding, so test__foreign_leaves__grace_period__foreign_orphan_waits_with_a_comment_then_goes fails in both mirrors, on master, 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-container so #43 is green independently of merge order.

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

codecov Bot commented Sep 2, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@AlexeyShalaev
AlexeyShalaev merged commit f4a86de into master Sep 2, 2026
9 checks passed
@AlexeyShalaev
AlexeyShalaev deleted the fix/plan-against-the-frozen-clock branch September 2, 2026 06:59
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