From 376e9804737ec40d4e0fc9c02638e1f0fd6b586a Mon Sep 17 00:00:00 2001 From: Max Ghenis Date: Sun, 15 Nov 2026 15:04:12 -0500 Subject: [PATCH] Drop the wall-clock assert from the composed stage-scan test test_precalibration_ancestry_composed_stage_scan_is_linear already pins the linear scan exactly: it counts JSON decodes from an offset and expects none. Its extra `elapsed < 1` assert measured 2.13 s on a loaded engine-free 3.13 runner and failed a Belgian PR's CI, though the exact count passed. The docstring already says the count is exact, not timed. Co-Authored-By: Claude Opus 5.5 --- changelog.d/composed-scan-test-untimed.fixed.md | 4 ++++ .../tests/engine_free/shared/test_transport_composed_graph.py | 3 --- 2 files changed, 4 insertions(+), 3 deletions(-) create mode 100644 changelog.d/composed-scan-test-untimed.fixed.md diff --git a/changelog.d/composed-scan-test-untimed.fixed.md b/changelog.d/composed-scan-test-untimed.fixed.md new file mode 100644 index 0000000000..557e405d49 --- /dev/null +++ b/changelog.d/composed-scan-test-untimed.fixed.md @@ -0,0 +1,4 @@ +Drop the wall-clock assert from +`test_precalibration_ancestry_composed_stage_scan_is_linear`. The test already +pins the composed pass's linear scan exactly (no JSON decoded from an offset); +the extra `elapsed < 1` check flaked on a loaded CI runner (2.13 s). diff --git a/packages/microcosm-build/tests/engine_free/shared/test_transport_composed_graph.py b/packages/microcosm-build/tests/engine_free/shared/test_transport_composed_graph.py index 5b6681b73e..916e014f8f 100644 --- a/packages/microcosm-build/tests/engine_free/shared/test_transport_composed_graph.py +++ b/packages/microcosm-build/tests/engine_free/shared/test_transport_composed_graph.py @@ -7138,12 +7138,9 @@ def raw_decode(self, text, idx=0): spec = _synthetic_stage_spec( [binding], [_synthetic_stage(binding, ["p_out"])], rows ) - started = time.perf_counter() outcomes = _synthetic_outcomes(spec, nodes, {"p": "p-ref"}) - elapsed = time.perf_counter() - started assert outcomes == {"declaration": None, "composed": None} assert Counted.offsets == 0 - assert elapsed < 1 @pytest.mark.parametrize(