docs: add deployment test experience summary (methodology focused)

This commit is contained in:
Warren
2026-05-16 17:01:57 +08:00
parent 07c6bbf704
commit e3b699cda7

View File

@@ -608,5 +608,41 @@ curl -s -H "Authorization: token c5e025496ebc3c7408a971d64a33bd56aac9186c" \
---
##部署測試經驗2026-05-16
###核心方法論
**CI日志獲取方法**
```bash
#1.獲取 Run列表
curl -H "Authorization: token <TOKEN>" \
<GITEA_URL>/api/v1/repos/<OWNER>/<REPO>/actions/runs
#2.獲取 Job ID
curl -H "Authorization: token <TOKEN>" \
<GITEA_URL>/api/v1/repos/<OWNER>/<REPO>/actions/runs/<RUN_ID>/jobs
#3.獲取 Job日志
curl -H "Authorization: token <TOKEN>" \
<GITEA_URL>/api/v1/repos/<OWNER>/<REPO>/actions/jobs/<JOB_ID>/logs
```
**問題診斷思路:**
```
觀察現象 →獲取日志 →定位錯誤 →分析原因 →設計方案 →實施修復 →验证結果
```
**關鍵認知:**
- GitHub Actions ≠Gitea Runner環境不完全兼容
- 原生工具安裝 >Action依賴更穩定可靠
- 環境變數載入是必要步驟(`source $HOME/.cargo/env`
**測試結果:**
-失敗→成功迭代6次失敗 →1次成功
-執行時間對比5秒失敗→5分22秒成功
-修復方案原生rustup安裝替代GitHub Action
---
**最後更新2026-05-16**
**版本1.3CI修復成功版)**
**版本1.4部署測試經驗版)**