docs: 记录 Gitea Actions 首次完整通过
This commit is contained in:
1 parent
c33c9cbd63
commit
f28332f49a
2 files changed
+27
No files matched your search
+26
@@ -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 中确认。
|
||||
Reference in new issue
Block a user