From f28332f49a8e1ec4db57907651ce595bff4be1d0 Mon Sep 17 00:00:00 2001 From: que01 Date: Wed, 21 Oct 2026 13:40:46 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E8=AE=B0=E5=BD=95=20Gitea=20Actions=20?= =?UTF-8?q?=E9=A6=96=E6=AC=A1=E5=AE=8C=E6=95=B4=E9=80=9A=E8=BF=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- PROJECT_STATUS.md | 1 + docs/ci.md | 26 ++++++++++++++++++++++++++ 2 files changed, 27 insertions(+) diff --git a/PROJECT_STATUS.md b/PROJECT_STATUS.md index e7aec58..10bceeb 100644 --- a/PROJECT_STATUS.md +++ b/PROJECT_STATUS.md @@ -27,6 +27,7 @@ ADR 0033 已落地: - Taro Runtime、Admin 组件预览、真实 manifest 驱动编辑、草稿/发布隔离。 - 发布备注为可选字段;空备注不会写入数据库,也不影响发布、回滚和公开内容。 - 依赖 override 的运行时兼容性通过 `miniprogram-ci` / Jimp / image-size / uuid smoke test 守卫。 +- Gitea Actions CI 已在 `oracle_arm` 自托管 runner 上落地,`static` / `build` / `api` 三个 job 已完整通过(run 21);详见 `docs/ci.md`。 - 小程序构建、上传任务状态机、attempt lease 和失败记录。 - Admin/Customer token version:修改 admin 密码或调用 logout 后旧 token 立即失效;无 membership 的账号不会自动获得 owner 权限。 - `visualPresentation` 已进入唯一 `template.json` 契约,旧手写 visual manifest 优先路径已删除。 diff --git a/docs/ci.md b/docs/ci.md index 20f3809..cf911ed 100644 --- a/docs/ci.md +++ b/docs/ci.md @@ -28,3 +28,29 @@ ssh oracle_arm 'journalctl --user -u gitea-runner -n 100 --no-pager' ## 注意 Runner 与生产 API 共用 `oracle_arm` 主机。任务容器已限制 CPU 与内存;如果 CI 期间生产延迟明显,应暂停 runner 或迁移到独立主机。 + +## 缓存 + +Runner 内置 cache server(`cache.host=172.17.0.1`、`cache.port=8193`、`cache.dir=/home/ubuntu/gitea-runner/cache-data`),供 `actions/setup-node` 的 pnpm 缓存使用。 + +任务容器通过 Docker bridge 网关 `172.17.0.1` 访问该端口,因此需要在主机放行容器网段: + +```bash +sudo ufw allow from 172.16.0.0/12 to any port 8193 proto tcp comment "gitea actions cache" +``` + +未放行时表现为 `Failed to GetCacheEntryDownloadURL ... ETIMEDOUT`,每个 job 会额外空等数分钟,且缓存永远不会命中。 + +## 首次完整通过 + +| 项 | 值 | +| ---------------- | ----------------------------- | +| run | `21`(`run_number=21`) | +| commit | `c33c9cb` | +| Static checks | 05:03:54 → 05:15:42 UTC,通过 | +| Production build | 05:15:47 → 05:27:27 UTC,通过 | +| API integration | 05:27:32 → 05:37:16 UTC,通过 | + +单并发下整轮约 33 分钟;三个 job 串行执行,主要耗时在 `pnpm install` 与构建。 + +该轮次全部告警均来自缓存后端不可达(`ETIMEDOUT`),已按上一节修复;修复后的命中情况在下一次 run 中确认。