fix(agent): normalize ssh session timeout blocker
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 35s
CD Pipeline / build-and-deploy (push) Failing after 27s
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 35s
CD Pipeline / build-and-deploy (push) Failing after 27s
CD Pipeline / post-deploy-checks (push) Has been skipped
This commit is contained in:
@@ -655,6 +655,11 @@ def build_readback(
|
||||
"latest_visible_harbor_110_repair_remote_ssh_publickey_auth_stalled": (
|
||||
harbor_110_repair_log_classifier["remote_ssh_publickey_auth_stalled"]
|
||||
),
|
||||
"latest_visible_harbor_110_repair_remote_ssh_server_accepts_key_then_session_timeout": (
|
||||
harbor_110_repair_log_classifier[
|
||||
"remote_ssh_server_accepts_key_then_session_timeout"
|
||||
]
|
||||
),
|
||||
"latest_visible_harbor_110_repair_remote_ssh_auth_permission_denied": (
|
||||
harbor_110_repair_log_classifier["remote_ssh_auth_permission_denied"]
|
||||
),
|
||||
@@ -926,6 +931,11 @@ def build_readback(
|
||||
"harbor_110_repair_remote_ssh_publickey_auth_stalled": (
|
||||
harbor_110_repair_log_classifier["remote_ssh_publickey_auth_stalled"]
|
||||
),
|
||||
"harbor_110_repair_remote_ssh_server_accepts_key_then_session_timeout": (
|
||||
harbor_110_repair_log_classifier[
|
||||
"remote_ssh_server_accepts_key_then_session_timeout"
|
||||
]
|
||||
),
|
||||
"harbor_110_repair_remote_ssh_auth_permission_denied": (
|
||||
harbor_110_repair_log_classifier["remote_ssh_auth_permission_denied"]
|
||||
),
|
||||
@@ -1076,6 +1086,14 @@ def classify_harbor_110_repair_log(text: str) -> dict[str, Any]:
|
||||
and remote_ssh_publickey_reply_timeout_seen is True
|
||||
)
|
||||
)
|
||||
remote_ssh_server_accepts_key_then_session_timeout = (
|
||||
"harbor_110_remote_ssh_server_accepts_key_then_session_timeout=true" in text
|
||||
or "classification=server_accepts_key_then_timeout" in text
|
||||
or (
|
||||
("Server accepts key" in text or "server_accepts_key_then_timeout" in text)
|
||||
and _HARBOR_110_REMOTE_SSH_TIMEOUT_RE.search(text) is not None
|
||||
)
|
||||
)
|
||||
remote_ssh_auth_permission_denied = _last_bool_marker(
|
||||
"harbor_110_remote_ssh_auth_permission_denied",
|
||||
text,
|
||||
@@ -1136,6 +1154,9 @@ def classify_harbor_110_repair_log(text: str) -> dict[str, Any]:
|
||||
remote_ssh_publickey_reply_timeout_seen
|
||||
),
|
||||
"remote_ssh_publickey_auth_stalled": remote_ssh_publickey_auth_stalled,
|
||||
"remote_ssh_server_accepts_key_then_session_timeout": (
|
||||
remote_ssh_server_accepts_key_then_session_timeout
|
||||
),
|
||||
"remote_ssh_auth_permission_denied": remote_ssh_auth_permission_denied,
|
||||
"local_registry_v2_status": local_status,
|
||||
"public_registry_v2_status": public_status,
|
||||
|
||||
@@ -296,6 +296,8 @@ harbor_110_remote_ssh_userauth_service_accept_seen=true
|
||||
harbor_110_remote_ssh_publickey_offered=true
|
||||
harbor_110_remote_ssh_publickey_reply_timeout_seen=true
|
||||
harbor_110_remote_ssh_publickey_auth_stalled=true
|
||||
harbor_110_remote_ssh_server_accepts_key_then_session_timeout=true
|
||||
SSH_AUTH user=wooo mode=publickey rc=124 classification=server_accepts_key_then_timeout
|
||||
BLOCKED harbor_110_remote_ssh_publickey_auth_stalled target=wooo@192.168.0.110
|
||||
harbor_110_remote_ssh_auth_permission_denied=false
|
||||
harbor_110_remote_ssh_diag_raw_log_printed=false
|
||||
@@ -751,6 +753,12 @@ def test_build_readback_classifies_harbor_repair_publickey_auth_stalled() -> Non
|
||||
]
|
||||
is True
|
||||
)
|
||||
assert (
|
||||
payload["readback"][
|
||||
"latest_visible_harbor_110_repair_remote_ssh_server_accepts_key_then_session_timeout"
|
||||
]
|
||||
is True
|
||||
)
|
||||
assert (
|
||||
payload["readback"][
|
||||
"latest_visible_harbor_110_repair_remote_ssh_publickey_reply_timeout_seen"
|
||||
@@ -773,6 +781,12 @@ def test_build_readback_classifies_harbor_repair_publickey_auth_stalled() -> Non
|
||||
payload["rollups"]["harbor_110_repair_remote_ssh_publickey_auth_stalled"]
|
||||
is True
|
||||
)
|
||||
assert (
|
||||
payload["rollups"][
|
||||
"harbor_110_repair_remote_ssh_server_accepts_key_then_session_timeout"
|
||||
]
|
||||
is True
|
||||
)
|
||||
assert payload["operation_boundaries"]["secret_or_runner_token_read"] is False
|
||||
assert payload["operation_boundaries"]["host_write_performed"] is False
|
||||
|
||||
|
||||
Reference in New Issue
Block a user