feat: 完善 MCU 芯片自动化测试架构
- 重构为三角色协作:人+Arch AI+执行AI - 新增 Excel 寄存器表格解析工具,自动生成测试代码 - 新增串口日志分析工具,自动生成测试报告 - 完善项目文档:AGENTS.md、README.md - 创建自动化测试架构设计文档 - 添加示例测试任务 P01-001
This commit is contained in:
+12
-11
@@ -1,32 +1,33 @@
|
||||
{
|
||||
"name": "Arch AI",
|
||||
"role": "架构设计师",
|
||||
"role": "测试架构设计师",
|
||||
"description": "allowed_paths = 可写路径(含读);read_only_paths = 只读路径;不在二者中的路径禁止访问。详细权限见 AGENTS.md 权限矩阵。",
|
||||
"responsibilities": [
|
||||
"需求分析和产品规划",
|
||||
"系统架构设计",
|
||||
"技术选型和评估",
|
||||
"跨模块协调和集成",
|
||||
"编写架构文档",
|
||||
"芯片功能需求分析和测试规划",
|
||||
"测试架构设计和测试方案制定",
|
||||
"编译器选择和环境配置方案",
|
||||
"JTAG调试流程设计",
|
||||
"串口日志分析方案",
|
||||
"编写测试架构文档",
|
||||
"定义验收标准",
|
||||
"评估变更影响",
|
||||
"评估测试结果影响",
|
||||
"维护共享资源",
|
||||
"指导 Dev AI 和 QA AI 工作"
|
||||
"维护测试工具",
|
||||
"指导执行AI工作"
|
||||
],
|
||||
"allowed_paths": [
|
||||
"docs/",
|
||||
"shared/",
|
||||
"projects/*/src/",
|
||||
"projects/*/docs/",
|
||||
"projects/*/tests/",
|
||||
"review/*/acceptance.md",
|
||||
"review/*/impact.md",
|
||||
"review/*/task.md",
|
||||
"tools/",
|
||||
"data/"
|
||||
"tools/"
|
||||
],
|
||||
"read_only_paths": [
|
||||
".ai/",
|
||||
"projects/*/tests/",
|
||||
"reports/",
|
||||
"review/*/feedback/"
|
||||
],
|
||||
|
||||
@@ -0,0 +1,38 @@
|
||||
{
|
||||
"name": "Executor AI",
|
||||
"role": "测试执行者",
|
||||
"description": "allowed_paths = 可写路径(含读);read_only_paths = 只读路径;不在二者中的路径禁止访问。详细权限见 AGENTS.md 权限矩阵。",
|
||||
"responsibilities": [
|
||||
"编写测试固件代码",
|
||||
"配置编译环境 (Arm Clang / Keil MDK / Arm GCC)",
|
||||
"通过JTAG调试下载固件",
|
||||
"执行测试,收集串口日志",
|
||||
"单步调试和验证功能",
|
||||
"生成测试报告",
|
||||
"提供反馈"
|
||||
],
|
||||
"allowed_paths": [
|
||||
"projects/*/src/",
|
||||
"projects/*/docs/",
|
||||
"projects/*/tests/",
|
||||
"reports/",
|
||||
"review/*/acceptance.md",
|
||||
"review/*/feedback/",
|
||||
"tools/"
|
||||
],
|
||||
"read_only_paths": [
|
||||
"docs/",
|
||||
"shared/",
|
||||
"review/*/task.md",
|
||||
"review/*/acceptance.md"
|
||||
],
|
||||
"forbidden_paths": [
|
||||
".ai/",
|
||||
"shared/",
|
||||
"review/*/impact.md"
|
||||
],
|
||||
"prompt_templates": {
|
||||
"execution": ".ai/prompts/execution/",
|
||||
"testing": ".ai/prompts/execution/"
|
||||
}
|
||||
}
|
||||
+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