agent-exec transport 5ec684b8397b2a29b9f633fd13d16136/ce357332d2d1
ci / svc-realcombo (pull_request) Successful in 6m55s
ci / test (pull_request) Successful in 10m31s
ci / test-pg (pull_request) Successful in 13m57s

This commit is contained in:
agent-exec-transport
2026-10-23 19:45:18 +00:00
parent 49c6b54b46
commit 48c8b608ce
2 changed files with 11 additions and 1 deletions
+1
View File
@@ -786,6 +786,7 @@ jobs:
export GIT_CONFIG_VALUE_3="ssh://git@gitea.naitangbaobao.cn:52222/weichen/"
export GIT_CONFIG_KEY_4="core.hooksPath"
export GIT_CONFIG_VALUE_4="/dev/null"
export GIT_SSH_COMMAND="ssh -o StrictHostKeyChecking=accept-new -o ConnectTimeout=10"
git config --global --unset-all "http.$SERVER/.extraheader" 2>/dev/null || true
git config --global --add "http.$SERVER/.extraheader" "AUTHORIZATION: token $SUBMODULE_TOKEN"
git config --global --unset-all "url.$SERVER/weichen/.insteadOf" 2>/dev/null || true
+10 -1
View File
@@ -78,6 +78,15 @@ class RealComboTests(tsr.SvcAutoRecoverTests):
self.assertTrue(self.real_bin.is_file() and os.access(self.real_bin, os.X_OK),
"SVC_REAL_BIN 不可执行:%s" % self.real_bin)
def svc(self, *args, check=True, env=None, timeout=120):
proc = subprocess.run(
["bash", str(self.root / "scripts" / "svc.sh"), *map(str, args)],
cwd=self.root, env=env if env is not None else self.env, text=True,
stdout=subprocess.PIPE, stderr=subprocess.STDOUT, timeout=timeout)
if check:
self.assertEqual(proc.returncode, 0, proc.stdout)
return proc
def manifest(self, name):
p = self.runtime(name) / "manifest.json"
return json.loads(p.read_text(encoding="utf-8")) if p.exists() else None
@@ -244,7 +253,7 @@ class RealComboTests(tsr.SvcAutoRecoverTests):
"SVC_RDM_ORIGIN": RDM_ORIGIN})
agent_port = free_test_port()
result = self.svc("rcf", "deploy", "--from", "rdm", "--port", str(agent_port),
env=env, check=False)
env=env, check=False, timeout=300)
if result.returncode != 0:
log = self.runtime("rcf") / "svc.log"
tail = log.read_text(encoding="utf-8", errors="replace")[-2000:] \