D6 · Testing & Ops · v1.0 Kickoff
D6 · 测试与运维文档
Xisound Testing / CI-CD / Monitoring / Release / Incident · 4-in-1
8
子目录
4
测试层(Unit/Integ/E2E/HIL)
1
扩展批目标
D6 · 测试与运维文档总览
摘要
D6 · 测试与运维是 Xisound 文档体系七层分治中的第六层,定位测试规范 + CI/CD + 监控告警 + 发布管理四合一。 贯穿研发 → 发布 → 运营全生命周期。与 D1-B-rd 的 test-spec 规范文档互补:D1 讲"规则",D6 讲"执行体系"。
骨架版说明
本层目录结构、8 个子目录 index 骨架已建立(整理批 1),约 30 份标准文档将在 扩展批(Phase 4 最后阶段)完成。
1. 八大子目录
| # | 子目录 | 主题 | 状态 |
|---|---|---|---|
| 1 | testing/unit/ |
各栈单测规范(xUnit / Vitest / Google Test / pytest) | 🟡 骨架 |
| 2 | testing/integration/ |
集成测试(已有 05_system_integration/) | 🟡 骨架 |
| 3 | testing/e2e/ |
端到端(Playwright / Selenium) | 🟡 骨架 |
| 4 | testing/hil/ |
硬件在环(XiAmp / XiBox 车规 bring-up) | 🟡 骨架 |
| 5 | cicd/ |
GitHub Actions / GitLab CI / Jenkins pipeline | 🟡 骨架 |
| 6 | ops/monitoring/ |
Prometheus / Grafana / 告警规则 | 🟡 骨架 |
| 7 | ops/release/ |
版本号规范 · 灰度策略 · 回滚剧本 | 🟡 骨架 |
| 8 | ops/incident/ |
事故响应 · Postmortem 模板 | 🟡 骨架 |
总计:8 子目录 ≈ 30 份标准文档(Phase 4 扩展批目标)。
2. D6 与 D3 / D4 / 其他层的关系
flowchart LR
D3[🏛️ D3 · 架构级] --> D6
D4[🔧 D4 · 实现级] --> D6
D6[🧪 D6 · 测试与运维<br/>本层] --> REL[发布 · 部署]
D1[🏢 D1 · 中心规范<br/>test-spec.md 规则] --> D6
classDef xyL0 fill:#6B3FA0,stroke:#6B3FA0,color:#fff
classDef xyL3 fill:#DFA66D,stroke:#DFA66D,color:#fff
classDef xyEnd fill:#3FB47F,stroke:#3FB47F,color:#fff
class D6 xyL0
class D3,D4,D1 xyL3
class REL xyEnd
3. 4 层测试矩阵(继承自 D1-B-rd test-spec.md)
| 层 | 触发时机 | 工具链 | D6 子目录 |
|---|---|---|---|
| Unit | 每次 commit | xUnit / Vitest / Google Test / pytest | testing/unit/ |
| Integration | PR 合并前 | 跨模块测试 · 05_system_integration/ | testing/integration/ |
| E2E | 预发布 | Playwright / Selenium | testing/e2e/ |
| HIL | Tapeout / 车规 | 硬件在环 · AudioPrecision · CAN UDS | testing/hil/ |
4. 版本演进
| 版本 | 日期 | 变更 |
|---|---|---|
| v1.0-draft | 2026-05-06 | D6 顶级骨架建立 · 8 子目录 index 占位 · 等待扩展批填充 30 份 |
D6 · 测试与运维文档总览 · v1.0-draft · 2026-05-06 · © Xisound Inc.