fix(runner): add safe non110 registration helper

This commit is contained in:
Your Name
2026-06-28 20:44:54 +08:00
parent aa4d141c64
commit 9bbef8eaec
6 changed files with 285 additions and 8 deletions

View File

@@ -48913,3 +48913,20 @@ production browser smoke:
**下一個 P0**
- 使用既有 Gitea `workflow_dispatch` / controlled CD lane 對含 `6a933e3f0` source 變更的最新 `main` 觸發 CD 與 code-reviewCD 成功後再做 production GET/POST readback 與 `/zh-TW/iwooos` desktop / mobile smoke。
## 2026-06-28 — 20:43 non-110 user runner 註冊前置實作與 188 prepare-only readback
**完成內容**
- 接續 `5f20d654d` non-110 user runner installer補上安全 registration helperinstaller 的 `REGISTER_NOW=1` 也改成只從互動 TTY 隱藏讀 token透過 stdin 餵給 `act_runner register`,不使用 `--token` argv、不列印 token、不讀 `.runner` 內容。
- 188 已套用 user-level Docker runner prepare-only`/home/ollama/awoooi-non110-runner/data/config.yaml`、user systemd service、rollback service 與 `gitea/act_runner:latest` image 都可讀回service 維持 `loaded/inactive/disabled`
- 舊 `/home/ollama/act-runner-awoooi` 裸 binary scaffold 確認沒有 `.runner` 後移到 disabled quarantine避免 verifier 同時看見兩套 runner source。
**驗證結果**
- 本地:`bash -n`、runner focused pytest `9 passed``guard-gitea-runner-pressure.py``git diff --check`
- 188 verifier`READY_CONFIG_COUNT=1``READY_BINARY_COUNT=1``READY_SERVICE_COUNT=1``READY_REGISTRATION_COUNT=0``READY_ACTIVE_SERVICE_COUNT=0``BLOCKER_COUNT=3`safe next step 指向 safe registration helper。
- 110 readbackrunner units 維持 masked/inactive`ACTIVE_JOB_CONTAINERS=0`failclosed enforcer timer active/enabled。
**仍維持**
- 沒有讀、複製、貼上、外送 runner token / secret / `.env` / raw sessions / SQLite / auth。
- 沒有啟動 188 runner service、沒有重開 110 runner、沒有 GitHub API / gh / GitHub Actions、沒有 force push。
- Gitea CD 仍需等 non-110 runner 完成外部安全註冊並讀回 `AWOOOI_NON110_RUNNER_READY=1` 後才可承接。