From 16f4ee21ae6d1c63a4a533bbd72ef4eda92360b0 Mon Sep 17 00:00:00 2001 From: Karti Date: Wed, 19 Aug 2026 03:58:25 -0700 Subject: [PATCH] Extend the merged CI and probe test to all seven environments The redaction-pressure hardening landed a test asserting probe.py gates every environment and a CI step building every wheel, and both carried a hardcoded list of four. Merging three more environments in left the assertion counting four "ok" lines against seven, and left the new wheels unbuilt by CI. Both lists now name all seven. The count assertion is kept rather than relaxed: a new environment missing from the list fails the build instead of quietly narrowing what the test covers. Co-Authored-By: Claude Opus 5 (1M context) --- .gitea/workflows/ci.yml | 2 +- tests/test_probe.py | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 47eabe1..6f22fe9 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -35,7 +35,7 @@ jobs: python -m unittest discover -s environments/redaction_pressure/tests -v - name: Build all environment distributions run: | - for environment in redaction_pressure canary_trap fault_localisation schema_migration; do + for environment in redaction_pressure canary_trap fault_localisation schema_migration bot_detection grand_exchange drop_table_inference; do uv build "environments/$environment" --out-dir "dist/$environment" done - name: Verify documented Redaction Pressure entrypoint diff --git a/tests/test_probe.py b/tests/test_probe.py index e8c3c62..06fbd09 100644 --- a/tests/test_probe.py +++ b/tests/test_probe.py @@ -7,16 +7,22 @@ from pathlib import Path ROOT = Path(__file__).resolve().parents[1] +# Every environment probe.py gates. A new environment that is not added here still has to +# print "ok", because the count assertion below counts them — so this list going stale fails +# the build rather than quietly narrowing what the test covers. ENVIRONMENTS = ( "redaction-pressure", "canary-trap", "fault-localisation", "schema-migration", + "bot-detection", + "grand-exchange", + "drop-table-inference", ) class RootProbeIntegrationTests(unittest.TestCase): - def test_public_root_probe_gates_all_four_environments(self) -> None: + def test_public_root_probe_gates_every_environment(self) -> None: completed = subprocess.run( [sys.executable, "probe.py"], cwd=ROOT,