merge: fix/nightly-datadir-dev-align
CI / go-vet-and-short-test (push) Failing after 0s
CI / backup-restore-drill (push) Failing after 0s
CI / web (push) Failing after 0s

This commit is contained in:
weichen
2026-09-16 15:30:39 +00:00
2 changed files with 47 additions and 2 deletions
@@ -0,0 +1,45 @@
# Nightly DATA_DIR 对齐测试报告
## 一、 测试背景 (Background)
Gitea nightly run#21 使用 `PI_AGENT_RUNNER_URL=http://127.0.0.1:18865`(dev PI,挂载 `data/dev/workspaces`),但 workflow 设置 `DATA_DIR=/host-agent-data/test`,导致 Go 侧 workspace 与 PI 容器物理路径错配;U8 出现 `quality_failed` → `product_fail`。
## 二、 测试目标 (Test Objectives)
- `DATA_DIR=/host-agent-data/dev` 与 `:18865` 对齐
- 确认 `quality_failed` 重试路径仍在脚本中
- `workflow_dispatch` 后 receipt 非因 DATA_DIR 错配导致的 infra/product 误判
## 三、 测试方案与环境 (Test Plan & Environment)
- OS: Linux;Gitea act_runner `nightly:host` + host network
- PI: `127.0.0.1:18865` MiniMax-M2.7-highspeed
- PG: `NIGHTLY_TEST_DATABASE_URL` → `:5434`
## 四、 预期结果 (Expected Results)
- checkout / setup-go / archive PASS
- 用例不再因 DATA_DIR skip;workspace 路径含 `data/dev/workspaces`
- receipt `pass`,或重试后 `pass`;若仍 `product_fail` 则归模型质量门并记录
## 五、 实际测试结果与判定 (Actual Results & Evaluation)
### 配置变更
- Input: `DATA_DIR` test → dev
- Actual: workflow 已合入 `dev`
- Verdict: PASS(配置)
- Duration: n/a
### Nightly 重跑
- 见 Gitea Actions 最新 `nightly-real-pi` run(dispatch 后回填 run id / verdict)
- Verdict: 待运行完成后更新本节
## 六、 自动化测试套件汇总 (Test Suite Execution)
- 本项为 CI workflow 配置修复;`go test -short` 不覆盖 nightly。
## 七、 测试结论与后续优化建议 (Conclusion & Next Steps)
- 配置对齐为 P1 必做项;若对齐后仍偶发 quality_failed,依赖脚本重试与产品侧质量门调优(不回退为 infra)。
+2 -2
View File
@@ -29,8 +29,8 @@ jobs:
RUNNER_AUTH_TOKEN: ${{ secrets.RUNNER_AUTH_TOKEN }}
PI_AGENT_RUNNER_AUTH_TOKEN: ${{ secrets.RUNNER_AUTH_TOKEN }}
TEST_DATABASE_URL: ${{ secrets.NIGHTLY_TEST_DATABASE_URL }}
# Local act_runner mounts repo data at /host-agent-data (see /home/weichen/gitea compose).
DATA_DIR: /host-agent-data/test
# Align with PI on :18865 (shuimu-pi-agent-dev mounts data/dev/workspaces).
DATA_DIR: /host-agent-data/dev
steps:
- uses: actions/checkout@v4