docs: 第二轮修正记录、自检命令表与 README 入口
This commit is contained in:
@@ -67,4 +67,37 @@ curl -s http://127.0.0.1:8899/healthz
|
||||
| 构建受限 | 目标机 **不可达 Docker Hub** → 用 daocloud 镜像源;Go 用 `GOPROXY=https://goproxy.cn,direct` |
|
||||
| 本机网络 | 出网走 mihomo;境外全 000 时先查 `~/.clashctl` 节点(`PUT /proxies/三毛机场 {"name":"<活节点>"}`) |
|
||||
|
||||
> ⚠️ 上表里**只有一个数字是"规范"**(如"生产路径 /opt/dobotai"),其余都是"现状快照"。现状会漂;所以每项都给了取数命令。
|
||||
> ⚠️ 上表里**只有一个数字是"规范"**(如"生产路径 /opt/dobotai"),其余都是"现状快照"。现状会漂;所以每项都给了取数命令。
|
||||
|
||||
---
|
||||
|
||||
## 本地自检(不需要连 CI,可直接跑)
|
||||
|
||||
```bash
|
||||
# 通用门禁模板:汇总 / 前端判据 / pytest 退出码语义 / 完整 SHA / 清单比对
|
||||
python3 templates/ci-gate.py --self-test
|
||||
|
||||
# 上报核对(缺项/重复/未知项/短 SHA/档案/运行模式)
|
||||
python3 templates/ci_report.py --self-test
|
||||
|
||||
# 预览脚本的打包判定(空产物 / 缺 index.html 必须被拒)
|
||||
python3 templates/ci_preview.py --self-test
|
||||
|
||||
# 提交范围取法(截断/空范围/新分支/手工运行/shallow)
|
||||
python3 templates/ci_gate.py --self-test
|
||||
|
||||
# 检出脚本的协议保留(https 不许被降级;未知协议拒绝;URL 不带凭据)
|
||||
GITHUB_SERVER_URL=https://gitea.example.com GITHUB_REPOSITORY=owner/repo \
|
||||
bash templates/ci_checkout.sh --print-remote
|
||||
|
||||
# 合并:判定纯函数 + 真实调用链(假 Gitea,断言 merge 请求发没发)
|
||||
python3 scripts/adopt-existing.py --self-test
|
||||
python3 scripts/adopt-existing.py --self-test-chain
|
||||
|
||||
# 生成器端到端
|
||||
bash scripts/new-project.sh /tmp/probe Weknora/probe r1 && ls /tmp/probe/.gitea/scripts
|
||||
```
|
||||
|
||||
⚠️ `templates/ci_report.py --self-test` 在**规范仓里**会因为找不到 `scripts/ci_checks.py`
|
||||
(实现随项目走)而明确报"自检跑不了"—— 那是**故意**的:不许拿一份空清单去跑出莫名其妙的结论。
|
||||
|
||||
|
||||
Reference in New Issue
Block a user