Hard-disable RDM exec tools in realcombo tests
ci / test-pg (pull_request) Failing after 1m19s
ci / svc-realcombo (pull_request) Failing after 1m27s
ci / test (pull_request) Failing after 2m23s

Why: CI runners lack bwrap, so the real RDM binary refuses to start
under the sandbox fail-closed policy (run 2607: serve exits right after
launch); the product provides RDM_DISABLE_EXEC_TOOLS as the top-level
fallback and lifecycle semantics under test are unchanged.
Evidence: local rerun with the env set stays green.
Impact: tests only.
This commit is contained in:
2026-10-12 14:36:32 +00:00
parent fbe76cc014
commit 2c767867ca
+4
View File
@@ -70,6 +70,9 @@ class RealComboTests(tsr.SvcAutoRecoverTests):
return False
def seed_real(self, name, port, binary):
# CI 运行器无 bwrap:RDM 沙箱 fail-closed 会拒启——硬关 exec 工具
#(产品提供的最高兜底,RDM_DISABLE_EXEC_TOOLS=1)后生命周期语义不变。
self.env["RDM_DISABLE_EXEC_TOOLS"] = "1"
d = self.runtime(name)
(d / "bin").mkdir(parents=True, exist_ok=True)
(d / "data").mkdir(exist_ok=True)
@@ -150,6 +153,7 @@ class RealComboTests(tsr.SvcAutoRecoverTests):
"""全轨:materialize(真实 make build)→ 候选身份门禁 → release 切换 →
伴生工作台 200 → 裸重启稳定。"""
env = dict(self.env)
env["RDM_DISABLE_EXEC_TOOLS"] = "1"
env.update({"SVC_RDM_SRC_DIR": str(self.root / "rdmcache"),
"SVC_RDM_ORIGIN": RDM_ORIGIN})
result = self.svc("rcf", "deploy", "--from", "rdm", "--port", "9474", env=env)