Repository navigation
fix(id): fail world doctor clock check at or after 2100-01-01 (#3004) - #4288
Conversation
check_clock only tested now_ms > 0 while its doc comment promises absurd readings are caught: year 2100, year 3000 and u64::MAX all reported Ok. Add ABSURD_FUTURE_NOW_MS (4_102_444_800_000) next to check_clock: a reading at or after the bound is a Fail finding naming the reading and the bound, with the zero case fix text. Boundary tests: bound-1 Ok, bound Fail, u64::MAX Fail.
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 58 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Salvage check (duplicate close, queue §8 protocol) — task 13520, lane code-n, 2026-11-10: PR #7218 ("fix(id): fail world doctor clock check at or after 2100-01-01 (#3004)") is being closed as a duplicate of this PR. Verified fresh today:
Salvage verdict: nothing unique in the duplicate — no code, test, or doc exists in #7218 that did not land through this PR. |
Summary
Fixes #3004 (task 5515; triage task 4342 CONFIRMED):
check_clockinpkgs/id/src/world_doctor.rsonly testednow_ms > 0, so a clock set to year 2100, year 3000, oru64::MAXreported Ok despite the doc comment promising absurd readings are caught.ABSURD_FUTURE_NOW_MS = 4_102_444_800_000(2100-01-01T00:00:00Z) next tocheck_clock.Failfinding whose detail names the reading and the bound, with the zero case's fix text ("set the system clock (schedules and expiries depend on it)").Tests
New boundary test
a_clock_at_or_after_2100_failsbesidea_clock_before_the_epoch_fails:4_102_444_799_999→ Ok4_102_444_800_000→ Fail (detail names the reading and the 2100-01-01 bound; fix text matches the zero case)u64::MAX→ FailA laptop
cargo test --lib world_doctorrun was interrupted by an SSH drop mid-compile; CI on this PR is the verification of record.Need help on this PR? Tag
@codesmith-botwith what you need.