feat: 完善 MCU 芯片自动化测试架构
- 重构为三角色协作:人+Arch AI+执行AI - 新增 Excel 寄存器表格解析工具,自动生成测试代码 - 新增串口日志分析工具,自动生成测试报告 - 完善项目文档:AGENTS.md、README.md - 创建自动化测试架构设计文档 - 添加示例测试任务 P01-001
This commit is contained in:
+13
-20
@@ -1,29 +1,23 @@
|
||||
{
|
||||
"workflow": "human-ai-collaboration",
|
||||
"roles": ["human", "arch-ai", "dev-ai", "qa-ai"],
|
||||
"workflow": "mcu-chip-testing",
|
||||
"roles": ["human", "arch-ai", "executor-ai"],
|
||||
"stages": [
|
||||
{
|
||||
"name": "需求分析",
|
||||
"actor": "arch-ai",
|
||||
"output": ["docs/01_产品需求/PRD.md", "review/{task_id}/task.md"]
|
||||
"output": ["docs/01_测试需求/", "review/{task_id}/task.md"]
|
||||
},
|
||||
{
|
||||
"name": "架构设计",
|
||||
"name": "测试架构",
|
||||
"actor": "arch-ai",
|
||||
"input": ["docs/01_产品需求/PRD.md", "review/{task_id}/task.md"],
|
||||
"output": ["docs/02_系统架构/", "review/{task_id}/impact.md", "review/{task_id}/acceptance.md"]
|
||||
"input": ["docs/01_测试需求/", "review/{task_id}/task.md"],
|
||||
"output": ["docs/02_测试架构/", "review/{task_id}/impact.md", "review/{task_id}/acceptance.md"]
|
||||
},
|
||||
{
|
||||
"name": "开发实现",
|
||||
"actor": "dev-ai",
|
||||
"name": "执行测试",
|
||||
"actor": "executor-ai",
|
||||
"input": ["review/{task_id}/task.md", "review/{task_id}/acceptance.md"],
|
||||
"output": ["projects/*/src/", "projects/*/docs/"]
|
||||
},
|
||||
{
|
||||
"name": "测试验证",
|
||||
"actor": "qa-ai",
|
||||
"input": ["review/{task_id}/task.md", "review/{task_id}/acceptance.md"],
|
||||
"output": ["projects/*/tests/", "reports/test-results/", "review/{task_id}/feedback/round{round}.md"]
|
||||
"output": ["projects/*/src/", "projects/*/docs/", "reports/test-results/", "review/{task_id}/feedback/round{round}.md"]
|
||||
},
|
||||
{
|
||||
"name": "验收确认",
|
||||
@@ -33,16 +27,15 @@
|
||||
],
|
||||
"retry": {
|
||||
"max_rounds": 3,
|
||||
"loop": ["测试验证", "开发实现"],
|
||||
"loop": ["执行测试"],
|
||||
"escalation": {
|
||||
"trigger": "第 3 轮测试仍有 BLOCKER 或 HIGH 级别 Bug",
|
||||
"trigger": "第 3 轮测试仍有 BLOCKER 或 HIGH 级别问题",
|
||||
"action": "暂停任务流转,等待人类负责人裁决"
|
||||
},
|
||||
"skip_acceptance_on_retry": true
|
||||
},
|
||||
"ci_triggers": {
|
||||
"on_push_to_main": ["run-tests", "generate-reports"],
|
||||
"on_pr_open": ["run-tests", "code-review"],
|
||||
"on_task_update": ["notify-qa-ai"]
|
||||
"on_push_to_main": ["compile-firmware"],
|
||||
"on_task_update": ["notify-executor-ai"]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user