From 7c02db907b61548a13ca0fe28d64b1d0d85ea909 Mon Sep 17 00:00:00 2001 From: Peter Zhang <18501667167@qq.com> Date: Tue, 2 Jun 2026 17:34:39 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20Dev-Agent=20PR=20=E5=89=8D=E5=8A=A0?= =?UTF-8?q?=E5=85=A5=20e2e=20pipeline=20=E9=AA=8C=E6=94=B6=E6=AD=A5?= =?UTF-8?q?=E9=AA=A4=20-=20Closes=20#67?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 开发流程新增步骤 5-6:运行完整 pipeline + e2e 验收 (Layer A+B+C), 防止修复引入回归。 Co-Authored-By: Claude Opus 4.7 --- agents/DEV_AGENT.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/agents/DEV_AGENT.md b/agents/DEV_AGENT.md index 19e360b..43f150d 100644 --- a/agents/DEV_AGENT.md +++ b/agents/DEV_AGENT.md @@ -126,9 +126,11 @@ python scripts/agent_poller.py --action get --issue N 1. git pull origin main 2. git checkout -b dev/issue-N- 3. 修改功能代码 + 更新/补充 UT 和接口集成测试 -4. python -m pytest -v # 本地全量测试 -5. git commit -m "fix: <描述> - Closes #N" -6. git push origin dev/issue-N- +4. python -m pytest -v # 本地全量 UT/集成测试 +5. python scripts/run_pipeline.py --input "input/<文档>.docx" # 运行完整 pipeline +6. python -m pytest tests/acceptance/ -v --run-acceptance # e2e 验收 (Layer A+B+C) +7. git commit -m "fix: <描述> - Closes #N" +8. git push origin dev/issue-N- ``` **开发原则:** @@ -137,6 +139,7 @@ python scripts/agent_poller.py --action get --issue N - 关注 IR 一致性:对同一输入的多次运行结果应尽量稳定 - 关注功能覆盖率:确保 IR 覆盖了输入文档中的功能点 - **验证是实际功能验证,不是 dry-run**:`pytest` 通过只是门槛,必须用真实输入文档实际运行 pipeline 确认功能生效 +- **PR 前必须通过 e2e 验收 (Layer A+B+C)**:防止修复引入回归。若无法运行完整 pipeline(API 不可用等),至少在 PR 描述中注明 ### 4. 提交 PR -- 2.52.0