fix(runner): accept controlled cd lane drain readback

This commit is contained in:
Your Name
2026-06-28 10:42:35 +08:00
parent 9b9f1cf385
commit b7b475983f
5 changed files with 156 additions and 9 deletions

View File

@@ -48384,3 +48384,23 @@ production browser smoke:
**仍未做**
- 尚未推 main等待本修正進 feature、再於 main CD idle 時 normal push。
## 2026-06-28 — 10:45 controlled cd-lane drain source verifier 補齊
**時間與來源**
- 2026-06-28 10:33-10:45 Asia/Taipei。
- 來源110 live `awoooi-cd-lane-drain.service` readback、feature branch `codex/source-controlled-cd-lane-drain-20260628`
**完成內容**
- `scripts/reboot-recovery/awoooi-startup-110.sh` 新增 drain lane verifier`/home/wooo/awoooi-cd-lane-drain` 符合 `capacity=1`、AWOOOI 專用 labels、binary 為 ELF、systemd active 時,保留 drain lane 並只 fail-close regular `awoooi-cd-lane.service`
- `full-stack-cold-start-check.sh``post-start-quick-check.sh``p3-controlled-release-gate.sh` 新增 `CD_LANE_DRAIN_CONTROLLED``CD_LANE_GUARDRAILS_OK` readback接受 regular controlled/failclosed 或 drain controlled-open 任一通過。
- legacy direct/Gitea runner fail-closed、direct runner process count、runner binary stub 檢查維持原樣;未恢復泛用 runner。
**本地與 live 驗證結果**
- `bash -n scripts/reboot-recovery/awoooi-startup-110.sh scripts/reboot-recovery/full-stack-cold-start-check.sh scripts/reboot-recovery/post-start-quick-check.sh scripts/reboot-recovery/p3-controlled-release-gate.sh`:通過。
- `git diff --check`:通過。
- 110 live readback`CD_LANE_DRAIN_CONTROLLED mode=controlled_open load=loaded unitfile=enabled active=active capacity=1 labels=1 binary_elf=1 ok=1``CD_LANE_GUARDRAILS_OK 1`
**仍維持**
- regular `awoooi-cd-lane.service` masked/inactivelegacy direct runner units fail-closed。
- 不讀 `.runner`、SQLite、raw session、auth、`.env`;只驗 systemd、capacity/labels 與 binary kind。