Skip to content

test(storage#812): regression cover for 2.1.24 invocation-bookend gap (#813 follow-up)#814

Merged
FileSystemGuy merged 1 commit into
mainfrom
test/812-timestamp-gap-bookend
Jul 17, 2026
Merged

test(storage#812): regression cover for 2.1.24 invocation-bookend gap (#813 follow-up)#814
FileSystemGuy merged 1 commit into
mainfrom
test/812-timestamp-gap-bookend

Conversation

@FileSystemGuy

Copy link
Copy Markdown
Contributor

Regression coverage for the 2.1.24 checkpointingTimestampGap fix that #813 (fixing #812) shipped without a test.

Why

#813 correctly switched 2.1.24 from the DLIO summary start/end to the invocation bookends (metadata.invocation_start_time / invocation_end_time), mirroring 4.7.1 cache_flush_validation. But it added no test, and the existing 2.1.24 sentinel cases all pass metadata={} — so they exercise only the summary fallback path, leaving the new bookend behavior (the entire point of the fix) uncovered. A future refactor could silently regress it.

Tests added (test-only — no source change; the fix is in #813)

Three cases in the existing 2.1.24 sentinel file:

Testing

Full CI-equivalent sweep, all green: mlpstorage_py/tests 885 passed (882 + 3 new), tests 2930 passed (1 skipped), vdb_benchmark/tests 228 passed, kv_cache_benchmark/tests 238 passed. Based on main after #813 merged, so CI is green.

#813 switched 2.1.24 checkpointingTimestampGap from the DLIO summary start/end
to the invocation bookends (metadata.invocation_start_time /
invocation_end_time), but shipped without a test — the existing 2.1.24 cases
all pass metadata={} and exercise only the summary fallback, leaving the new
bookend behavior uncovered.

Add three cases to the 2.1.24 sentinel file:
- gap_uses_invocation_bookends_not_summary: the #812 scenario — a valid pair
  whose true quiet window is 5 s but whose DLIO summary window is inflated to a
  65 s apparent gap by read startup + write cluster collection. Must pass.
  (Verified RED against the pre-#813 summary-based code, GREEN with #813.)
- bookend_gap_still_flags_a_genuine_long_pause: a 5-minute bookend gap against
  10 s invocations must still fail — the source-swap must not neuter the check.
- falls_back_to_summary_when_bookends_absent: pre-bookend results dirs
  (metadata without the keys) still validate via the summary fallback.

Test-only; the fix landed in #813.
@FileSystemGuy
FileSystemGuy requested a review from a team July 17, 2026 17:08
@github-actions

Copy link
Copy Markdown

MLCommons CLA bot All contributors have signed the MLCommons CLA ✍️ ✅

@FileSystemGuy
FileSystemGuy merged commit 4a9b42f into main Jul 17, 2026
4 checks passed
@FileSystemGuy
FileSystemGuy deleted the test/812-timestamp-gap-bookend branch July 17, 2026 17:11
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