fix(reboot): reconcile collected windows99 collector readback
Some checks failed
CD Pipeline / workflow-shape (push) Successful in 1s
CD Pipeline / cancel-stale-cd (push) Has been skipped
CD Pipeline / tests (push) Failing after 1m4s
CD Pipeline / build-and-deploy (push) Has been skipped
CD Pipeline / post-deploy-checks (push) Has been skipped

This commit is contained in:
ogt
2026-07-10 10:52:52 +08:00
parent 210d7db338
commit 23e191692b
3 changed files with 94 additions and 7 deletions

View File

@@ -1225,6 +1225,14 @@ def build_windows99_verify_collection_packet(
windows99_collector.get("ssh_batchmode_auth_ready") is True
or collector_status == "collected_windows99_vmware_verify_stdout"
)
collector_blocker_values = {
"windows99_ssh_publickey_auth_missing",
"windows99_ssh_port_closed",
"windows99_local_verify_script_missing",
"windows99_remote_verify_output_invalid",
"windows99_remote_verify_command_failed",
"windows99_no_secret_collector_not_ready",
}
blockers = strings(windows99.get("blockers"))
collection_blockers: list[str] = []
if not host99_reachable:
@@ -1238,6 +1246,10 @@ def build_windows99_verify_collection_packet(
blocker
for blocker in strings(windows99_collector.get("blockers"))
if blocker not in collection_blockers
and not (
collector_status == "collected_windows99_vmware_verify_stdout"
and blocker in collector_blocker_values
)
)
collection_blockers.extend(
blocker