diff --git a/.gitea/workflows/cd.yaml b/.gitea/workflows/cd.yaml index ed58b7f3..cac62721 100644 --- a/.gitea/workflows/cd.yaml +++ b/.gitea/workflows/cd.yaml @@ -316,6 +316,10 @@ jobs: ;; scripts/ci/wait-host-web-build-pressure.sh) ;; + scripts/reboot-recovery/dr-escrow-evidence-checklist.py) + ;; + scripts/reboot-recovery/tests/test_dr_escrow_evidence_checklist.py) + ;; *) CONTROLLED_RUNTIME_TEST_PROFILE=0 ;; @@ -423,6 +427,8 @@ jobs: src/services/product_awoooi_manifest_standard.py \ src/services/platform_operator_service.py \ src/services/telegram_gateway.py + python3.11 -m py_compile \ + ../../scripts/reboot-recovery/dr-escrow-evidence-checklist.py DATABASE_URL="${DATABASE_URL:-postgresql+asyncpg://ci:ci@localhost/ci}" \ PYTHONFAULTHANDLER=1 python3.11 -m pytest \ tests/test_agent_replay_normalizer.py \ @@ -440,6 +446,7 @@ jobs: ../../ops/runner/test_read_public_gitea_actions_queue.py \ ../../ops/runner/test_cd_controlled_runtime_profile.py \ ../../ops/runner/test_verify_awoooi_non110_cd_closure.py \ + ../../scripts/reboot-recovery/tests/test_dr_escrow_evidence_checklist.py \ -v --tb=short -x -p no:cacheprovider \ 2>&1 | tee /tmp/pytest-output.txt; PYTEST_EXIT=${PIPESTATUS[0]} else diff --git a/ops/runner/test_cd_controlled_runtime_profile.py b/ops/runner/test_cd_controlled_runtime_profile.py index e615ef53..acf73f7c 100644 --- a/ops/runner/test_cd_controlled_runtime_profile.py +++ b/ops/runner/test_cd_controlled_runtime_profile.py @@ -71,6 +71,18 @@ def test_ai_autonomous_runtime_control_stays_on_controlled_runtime_profile() -> assert source in text +def test_dr_escrow_checklist_stays_on_controlled_runtime_profile() -> None: + text = _workflow_text() + expected_sources = [ + "scripts/reboot-recovery/dr-escrow-evidence-checklist.py)", + "scripts/reboot-recovery/tests/test_dr_escrow_evidence_checklist.py)", + "../../scripts/reboot-recovery/dr-escrow-evidence-checklist.py", + "../../scripts/reboot-recovery/tests/test_dr_escrow_evidence_checklist.py", + ] + for source in expected_sources: + assert source in text + + def test_controlled_runtime_skips_b5_before_docker_socket_use() -> None: text = _workflow_text() b5_start = text.index("- name: Integration Tests (B5")