修复 Mac release 构建的 Git 心跳
Project CI / AI game creator shell Rust crates (pull_request) Successful in 5m49s
Project CI / AI game creator shell Rust lane 2/2 (pull_request) Successful in 6m35s
Project CI / AI game creator shell Rust lane 1/2 (pull_request) Successful in 7m19s
Project CI / Backend tests (pull_request) Successful in 8m31s
Project CI / Frontend tests (pull_request) Successful in 3m30s
Project CI / AI game creator shell web tests (pull_request) Successful in 3m6s
Project CI / Repository checks (pull_request) Successful in 5m21s
Project CI / Native shell tests (pull_request) Successful in 7m3s

为 macOS Jenkins Checkout 增加 SSH 保活与 fetch 心跳。\n增加 fetch 超时诊断并补充生产运维门禁。\n更新 Mac 构建运维说明。
This commit is contained in:
kdletters
2026-10-05 11:37:37 +08:00
parent 6c95660588
commit a377ece48e
3 changed files with 60 additions and 2 deletions
@@ -7725,6 +7725,28 @@ for (const [file, content] of [
}
}
for (const [snippet, reason] of [
[
'-o ServerAliveInterval=20 -o ServerAliveCountMax=6',
'Mac AGC Checkout 的 Git SSH 必须启用保活,避免 WebSocket idle timeout 断开 agent。',
],
[
'echo "[agc-macos] git fetch 仍在进行',
'Mac AGC Checkout 的 git fetch 必须持续输出心跳,避免长时间无 stdout 被误判为 agent 失联。',
],
[
'AGC_GIT_FETCH_TIMEOUT_SECONDS',
'Mac AGC Checkout 的 git fetch 必须有可配置的超时和失败诊断。',
],
]) {
if (!agcMacosPipelineContent.includes(snippet)) {
failed = true;
console.error(
`[check:production-ops] jenkins/Jenkinsfile.ai-game-creator-shell-macos-build ${reason}`,
);
}
}
// 更新签名私钥只允许经 Jenkins 凭据绑定注入构建进程:既不得把凭据本身写进 Jenkinsfile,
// 也不得回显到日志或进归档(对应「AGC 更新发布管线渠道化」第 5 条的可静态复核部分)。
for (const [file, content] of [