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) <noreply@anthropic.com>
This commit is contained in:
@@ -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
|
||||
|
||||
+7
-1
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user