docs(test): report PG fix, CI short suite, and soak/E2E progress.
Document seed user reactivation, full short test pass, readiness soak, and blocked git push pending credentials. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -0,0 +1,77 @@
|
||||
# PG 测试修复 / CI 短测 / Soak / Pi-Agent E2E 测试报告
|
||||
|
||||
## 一、 测试背景 (Background)
|
||||
|
||||
QA-001 落地后,`go test -short ./...` 仍存在 PG 集成失败(`zhanggong` 被停用、CAS chunk_hash 冲突、auth session 重复)及 CI 短测包失败。同时需按优先级推进 soak 与 pi-agent 真实 E2E。
|
||||
|
||||
## 二、 测试目标 (Test Objectives)
|
||||
|
||||
1. 修复 dev PG 演示账号停用导致的集成测试失败
|
||||
2. `go test -short ./...` 全绿(CI 门禁前提)
|
||||
3. CI 增加 `pg_restore` 全量恢复演练 job
|
||||
4. readiness soak 短循环 PASS
|
||||
5. pi-agent 真实全链路 E2E(进行中)
|
||||
|
||||
## 三、 测试方案与环境 (Test Plan & Environment)
|
||||
|
||||
- **OS**:Linux,Go 1.27.1
|
||||
- **PG**:`shuimu-context-pg-dev` @ 127.0.0.1:5433,goose v20
|
||||
- **Pi-Agent**:`http://127.0.0.1:18865/health` OK
|
||||
- **App**:本机 `:8080` 旧进程(无 `/api/v1/ready`,health 可用)
|
||||
|
||||
## 四、 预期结果 (Expected Results)
|
||||
|
||||
- PG 测试登录 `zhanggong` 返回 200
|
||||
- 全量 short 测试 0 FAIL
|
||||
- `TestPhase5_SoakReadinessLoop_Short` 8/8 ready OK
|
||||
- Pi-Agent E2E 全生命周期 PASS
|
||||
|
||||
## 五、 实际测试结果与判定 (Actual Results & Evaluation)
|
||||
|
||||
### T1:zhanggong 账号恢复
|
||||
|
||||
- **Input**:`UPDATE users SET status='active' WHERE username='zhanggong'` + `ReactivateDevSeedUsers`
|
||||
- **Actual Output**:`zhanggong|active`,`go test -short ./internal/server/...` → **ok**
|
||||
- **Verdict**:**PASS**
|
||||
|
||||
### T2:全量 short 回归
|
||||
|
||||
- **Input**:`go test -short -timeout 15m ./...`
|
||||
- **Actual Output**:全部包 **ok**(含 auth/storage/server/chat/coordinator/bizdev)
|
||||
- **Verdict**:**PASS**
|
||||
|
||||
### T3:readiness soak 短循环
|
||||
|
||||
- **Input**:`go test -run TestPhase5_SoakReadinessLoop_Short ./internal/server/...`
|
||||
- **Actual Output**:
|
||||
```
|
||||
--- PASS: TestPhase5_SoakReadinessLoop_Short (0.51s)
|
||||
ok chat-agent-system/internal/server 0.519s
|
||||
```
|
||||
- **Verdict**:**PASS**
|
||||
|
||||
### T4:Pi-Agent 全链路 E2E
|
||||
|
||||
- **Input**:`go test -timeout 1h -run TestPiAgent_FullLifecycle ./internal/server/...`
|
||||
- **Actual Output**:运行中(日志 `/tmp/piagent-e2e.log`)
|
||||
- **Verdict**:**PENDING**
|
||||
|
||||
### T5:Git Push
|
||||
|
||||
- **Input**:`git push origin dev`
|
||||
- **Actual Output**:HTTPS/SSH 均无凭据,`Permission denied (publickey)` / 无法读取 Username
|
||||
- **Verdict**:**BLOCKED**(需用户配置 Git 凭据)
|
||||
|
||||
## 六、 自动化测试套件汇总 (Test Suite Execution)
|
||||
|
||||
```
|
||||
go test -short -timeout 15m ./... → ALL PASS
|
||||
go test -run TestPhase5_SoakReadinessLoop_Short ./internal/server/... → PASS
|
||||
```
|
||||
|
||||
## 七、 测试结论与后续优化建议 (Conclusion & Next Steps)
|
||||
|
||||
1. PG 种子用户与 CI 短测已稳定,可合并进 QA-001 流水线。
|
||||
2. **Push 阻塞**:请在本地配置 Git 凭据后执行 `git push origin dev`(52+ commits ahead)。
|
||||
3. 待 Pi-Agent E2E 完成后更新本报告 T4 判定。
|
||||
4. 建议重启 `:8080` 旧 server 二进制以启用 `/api/v1/ready`,便于 `scripts/test-soak.sh` 对真实 dev 服务探测。
|
||||
Reference in New Issue
Block a user