fix(runner): emit ssh session timeout marker
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 33s
CD Pipeline / build-and-deploy (push) Failing after 27s
CD Pipeline / post-deploy-checks (push) Has been skipped

This commit is contained in:
Your Name
2026-07-01 12:51:27 +08:00
parent 4b5f8ea537
commit 8e4b96b60a
3 changed files with 26 additions and 1 deletions

View File

@@ -131,7 +131,15 @@ jobs:
else
echo "harbor_110_remote_ssh_publickey_offered=false"
fi
if printf '%s\n' "${diag_output}" | grep -q "we sent a publickey packet, wait for reply" \
if printf '%s\n' "${diag_output}" | grep -q "Server accepts key" \
&& printf '%s\n' "${diag_output}" | grep -Eq "timed out|Timeout, server"; then
echo "harbor_110_remote_ssh_server_accepts_key_then_session_timeout=true"
echo "SSH_AUTH user=wooo mode=publickey rc=${diag_rc} classification=server_accepts_key_then_timeout"
else
echo "harbor_110_remote_ssh_server_accepts_key_then_session_timeout=false"
fi
if { printf '%s\n' "${diag_output}" | grep -q "we sent a publickey packet, wait for reply" \
|| printf '%s\n' "${diag_output}" | grep -q "Server accepts key"; } \
&& printf '%s\n' "${diag_output}" | grep -Eq "timed out|Timeout, server"; then
echo "harbor_110_remote_ssh_publickey_reply_timeout_seen=true"
echo "harbor_110_remote_ssh_publickey_auth_stalled=true"