fix(reboot): add windows99 no-secret verify collector
Some checks failed
CD Pipeline / workflow-shape (push) Successful in 0s
CD Pipeline / cancel-stale-cd (push) Has been skipped
CD Pipeline / tests (push) Failing after 2m3s
CD Pipeline / build-and-deploy (push) Has been skipped
CD Pipeline / post-deploy-checks (push) Has been skipped

This commit is contained in:
Your Name
2026-07-02 15:37:24 +08:00
parent 39cdd6dc5d
commit 85007db90c
7 changed files with 539 additions and 0 deletions

View File

@@ -503,6 +503,12 @@ def _build_windows99_verify_collection_packet(
"powershell -ExecutionPolicy Bypass -File "
".\\windows99-vmware-autostart.ps1 -Mode Verify"
),
"no_secret_collector_check_command": (
"bash scripts/reboot-recovery/collect-windows99-vmware-verify.sh --check"
),
"no_secret_collector_collect_command": (
"bash scripts/reboot-recovery/collect-windows99-vmware-verify.sh --collect"
),
"post_verifier": (
"rerun_reboot_auto_recovery_slo_scorecard_with_"
"windows99_vmware_file_no_secret_no_reboot"
@@ -511,6 +517,7 @@ def _build_windows99_verify_collection_packet(
"safe_collection_channels": [
"authorized_windows99_console_verify_stdout_only",
"existing_management_channel_verify_mode_only",
"no_secret_ssh_batchmode_verify_collector",
"committed_no_secret_artifact_file_then_scorecard_rerun",
],
"forbidden_actions": [

View File

@@ -262,6 +262,16 @@ def _assert_reboot_slo_payload(payload: dict):
]
assert "VMRUN_PRESENT" in collection["expected_no_secret_output_fields"]
assert "-Mode Verify" in collection["no_secret_verify_command"]
assert collection["no_secret_collector_check_command"] == (
"bash scripts/reboot-recovery/collect-windows99-vmware-verify.sh --check"
)
assert collection["no_secret_collector_collect_command"] == (
"bash scripts/reboot-recovery/collect-windows99-vmware-verify.sh --collect"
)
assert (
"no_secret_ssh_batchmode_verify_collector"
in collection["safe_collection_channels"]
)
assert "host_reboot" in collection["forbidden_actions"]
assert "windows_password_or_secret_collection" in collection["forbidden_actions"]
windows99_management = payload["windows99_management_channel"]