ci: add diagnostic step for git remote connectivity in CI workflow
CI / Export Linux (push) Failing after 4s
CI / Export Android (push) Failing after 31s
CI / Export Windows (push) Failing after 43s
Test Suite / Unit Tests (GUT) (push) Failing after 33s
Test Suite / Integration Tests (push) Failing after 30s
Test Suite / Security Scan (push) Failing after 36s
Test Suite / Code Style Check (push) Failing after 41s
CI / Create Release (push) Has been skipped

This commit is contained in:
2026-07-02 18:10:48 +08:00
parent e7a0717aff
commit 419771c50b
+15
View File
@@ -59,6 +59,21 @@ jobs:
run: | run: |
echo -e "Host gitea\n HostName 100.79.174.108\n Port 222\n StrictHostKeyChecking no" >> /etc/ssh/ssh_config echo -e "Host gitea\n HostName 100.79.174.108\n Port 222\n StrictHostKeyChecking no" >> /etc/ssh/ssh_config
- name: Diagnose git remote connectivity
run: |
echo "--- relevant env vars ---"
env | grep -Ei '^(GITHUB_|CI_|GITEA_)' || true
echo "--- /etc/ssh/ssh_config ---"
cat /etc/ssh/ssh_config
echo "--- raw TCP reachability to 100.79.174.108:222 ---"
timeout 5 bash -c 'cat < /dev/null > /dev/tcp/100.79.174.108/222' && echo "TCP 222: OPEN" || echo "TCP 222: CLOSED/UNREACHABLE"
echo "--- ls-remote against candidate hosts (verbose ssh) ---"
for url in "git@gitea:danchie/tekton.git" "git@git.klud.top:danchie/tekton.git" "ssh://git@100.79.174.108:222/danchie/tekton.git"; do
echo "=== trying $url ==="
GIT_SSH_COMMAND="ssh -vvv -o StrictHostKeyChecking=no -o ConnectTimeout=8" git ls-remote "$url" 2>&1 | tail -40
echo "exit code: $?"
done
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v4 uses: actions/checkout@v4
with: with: