fix(iwooos): retry incomplete wazuh closure
Some checks failed
CD Pipeline / workflow-shape (push) Successful in 0s
CD Pipeline / cancel-stale-cd (push) Has been skipped
CD Pipeline / tests (push) Successful in 2m43s
AWOOOI Harbor 110 Local Repair / workflow-shape (push) Successful in 0s
AWOOOI Harbor 110 Local Repair / harbor-110-local-repair (push) Failing after 4m6s
CD Pipeline / build-and-deploy (push) Failing after 17m10s
CD Pipeline / post-deploy-checks (push) Has been skipped
Some checks failed
CD Pipeline / workflow-shape (push) Successful in 0s
CD Pipeline / cancel-stale-cd (push) Has been skipped
CD Pipeline / tests (push) Successful in 2m43s
AWOOOI Harbor 110 Local Repair / workflow-shape (push) Successful in 0s
AWOOOI Harbor 110 Local Repair / harbor-110-local-repair (push) Failing after 4m6s
CD Pipeline / build-and-deploy (push) Failing after 17m10s
CD Pipeline / post-deploy-checks (push) Has been skipped
This commit is contained in:
@@ -238,10 +238,10 @@ def build_iwooos_wazuh_controlled_executor_runtime_readback(
|
||||
check_failed = data.get("check_status") == "failed"
|
||||
check_failure_class = _check_failure_class(data)
|
||||
apply_terminal = data.get("apply_status") in {"success", "failed"}
|
||||
apply_passed = (
|
||||
data.get("apply_status") == "success"
|
||||
and str(data.get("apply_returncode") or "") == "0"
|
||||
)
|
||||
apply_passed = apply_terminal and str(
|
||||
data.get("apply_returncode") or ""
|
||||
) == "0"
|
||||
apply_failed = apply_terminal and not apply_passed
|
||||
verifier_passed = data.get("verification_result") == "success" and str(
|
||||
data.get("verifier_run_id") or ""
|
||||
) == str(data.get("candidate_op_id") or "")
|
||||
@@ -302,7 +302,7 @@ def build_iwooos_wazuh_controlled_executor_runtime_readback(
|
||||
active_blockers.append("wazuh_manager_posture_check_mode_failed")
|
||||
if check_failure_class:
|
||||
active_blockers.append(check_failure_class)
|
||||
if data.get("apply_status") == "failed":
|
||||
if apply_failed:
|
||||
active_blockers.append("wazuh_manager_posture_controlled_probe_failed")
|
||||
if apply_passed and not verifier_passed:
|
||||
active_blockers.append("independent_post_verifier_missing_or_failed")
|
||||
|
||||
Reference in New Issue
Block a user