From 5b049635f23bc763d2d947feee374ea1118dcd23 Mon Sep 17 00:00:00 2001 From: agent-exec-transport Date: Fri, 23 Oct 2026 12:22:53 +0000 Subject: [PATCH] agent-exec transport a585136683482f35894f1bc0d75761a0/c202188f5f7b --- tests/test_svc_realcombo.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/test_svc_realcombo.py b/tests/test_svc_realcombo.py index 9e01c195..10d89781 100644 --- a/tests/test_svc_realcombo.py +++ b/tests/test_svc_realcombo.py @@ -49,8 +49,11 @@ def ci_git_env(): if not (CI_SERVER and CI_TOKEN): return {} scheme = CI_SERVER.split("://", 1)[0] + # 嵌套 pins 的 SSH 端点有两代:旧 git-ssh.* 与迁移后的 gitea.*:52222。 + # 只映射旧端点会让 pins 取件退回真实 SSH,而 CI 运行器没有 key,必然 + # host key verification failed。同键多值,git 会依次匹配。 return { - "GIT_CONFIG_COUNT": "4", + "GIT_CONFIG_COUNT": "5", "GIT_CONFIG_KEY_0": "protocol.%s.allow" % scheme, "GIT_CONFIG_VALUE_0": "always", "GIT_CONFIG_KEY_1": "http.%s/.extraheader" % CI_SERVER, @@ -59,6 +62,8 @@ def ci_git_env(): "GIT_CONFIG_VALUE_2": "ssh://git@git-ssh.u1680832.nyat.app:31411/weichen/", "GIT_CONFIG_KEY_3": "core.hooksPath", "GIT_CONFIG_VALUE_3": "/dev/null", + "GIT_CONFIG_KEY_4": "url.%s/weichen/.insteadOf" % CI_SERVER, + "GIT_CONFIG_VALUE_4": "ssh://git@gitea.naitangbaobao.cn:52222/weichen/", } PG = os.environ.get("SVC_TEST_PG") == "1" and bool(os.environ.get("AGENT_PG_TEST_DSN"))