Commit bc721c6e by PLN (Algolia)

test(gate): the loud-probe assertion was reading the weather, not the table

It asked plan(audio=True) and then asserted a property of the probe table. The
loud probe needs=('scsynth',), so the test passed with the rig up and failed
with it down -- a verdict that depends on the box is the one thing a gate's own
suite may not have. force=True asks the table the question the docstring says
it is asking.
parent 64c29a05
......@@ -124,7 +124,12 @@ def test_the_loud_probe_is_never_in_a_default_run():
"""--audio makes sound for ~45s a track. A gate run backstage must not."""
default = [p for p, skip in CG.plan() if skip is None]
assert not any(p.loud for p in default)
with_audio = [p for p, skip in CG.plan(audio=True) if skip is None]
# `force=True` because the claim is about the TABLE, not about the box this
# runs on. The loud probe `needs=("scsynth",)`, so asking plan() plainly
# made this assertion pass with the rig up and FAIL with it down — a test
# whose verdict depends on the weather, which is the one thing a gate's own
# suite may not be (caught on a cold box, 2026-09-22).
with_audio = [p for p, skip in CG.plan(audio=True, force=True) if skip is None]
assert any(p.loud for p in with_audio)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment