Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 10 additions & 6 deletions tests/test_timings.py
Original file line number Diff line number Diff line change
Expand Up @@ -776,15 +776,19 @@ def test_main_show_prints_the_epoch_keys_too(tmp_path, capsys):
assert "'label': 'legacy'" in out and "'date': '2026-09-05'" in out


def test_the_committed_record_carries_exactly_the_legacy_boundary():
def test_the_committed_record_carries_the_legacy_and_fast_tests_boundaries():
"""Declared data in the record, read the way the config tests read
config/repos.yaml: the `legacy` boundary labels the pre-rebuild reference
round, and the phase that lands the rebuild appends the NEXT one."""
round, and `fast-tests` is the one the rebuild phases appended when they
landed (the day after). Readers take `since` from the newest one."""
epochs = timings.read_epochs(timings.EPOCHS_FILE)
assert len(epochs) == 1
assert epochs[0]["date"] == "2026-09-05" and epochs[0]["label"] == "legacy"
assert epochs[0]["note"]
assert len(timings.EPOCHS_FILE.read_text().splitlines()) == 1
assert [(e["date"], e["label"]) for e in epochs] == [
("2026-09-05", "legacy"),
("2026-09-06", "fast-tests"),
]
assert all(e["note"] for e in epochs)
assert len(timings.EPOCHS_FILE.read_text().splitlines()) == 2
assert timings.current_epoch(epochs)["label"] == "fast-tests"


# --- the cache state a measurement was taken under --------------------------
Expand Down
1 change: 1 addition & 0 deletions timings/epochs.jsonl
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
{"date":"2026-09-05","label":"legacy","note":"pre-rebuild reference round of the ci-timing-fast-tests epic: phases 5-7 change _test script content, datasets, pinned likelihoods and CI caches; comparisons must not cross this boundary"}
{"date":"2026-09-06","label":"fast-tests","note":"post-rebuild boundary of the ci-timing-fast-tests epic: phases 5 (autogalaxy_workspace_test#117) and 6 (autolens_workspace_test#294) changed _test script content, datasets, meshes and pinned likelihoods, and phase 7 (#211) put JAX compile and dataset caches in the reusable smoke workflow; per-script and gate comparisons must not cross this boundary"}
Loading