3.2 KiB
3.2 KiB
phase, slug, status, nyquist_compliant, wave_0_complete, created
| phase | slug | status | nyquist_compliant | wave_0_complete | created |
|---|---|---|---|---|---|
| 09 | pipeline-integration | draft | false | false | 2026-03-17 |
Phase 09 — Validation Strategy
Per-phase validation contract for feedback sampling during execution.
Test Infrastructure
| Property | Value |
|---|---|
| Framework | pytest |
| Config file | pytest.ini |
| Quick run command | pytest tests/test_platforms/test_zhihu.py -x -v |
| Full suite command | pytest tests/ -v |
| Estimated runtime | ~30 seconds |
Sampling Rate
- After every task commit: Run
pytest tests/test_platforms/test_zhihu.py -x -v - After every plan wave: Run
pytest tests/test_platforms/ tests/test_processors/test_download.py -v - Before
/gsd:verify-work: Full suite must be green - Max feedback latency: 30 seconds
Per-Task Verification Map
| Task ID | Plan | Wave | Requirement | Test Type | Automated Command | File Exists | Status |
|---|---|---|---|---|---|---|---|
| 09-01-01 | 01 | 1 | PIPE-01 | unit | pytest tests/test_platforms/test_zhihu.py -k "test_fetch" -v |
✅ 需修改 | ⬜ pending |
| 09-01-02 | 01 | 1 | PIPE-01 | unit | pytest tests/test_platforms/test_zhihu.py -k "test_crawl" -v |
✅ 需修改 | ⬜ pending |
| 09-01-03 | 01 | 1 | PIPE-02 | integration | pytest tests/test_processors/test_download.py -k "zhihu" -v |
✅ 已存在 | ⬜ pending |
| 09-01-04 | 01 | 1 | PIPE-03 | unit | pytest tests/test_pipeline/test_idempotency.py -v |
✅ 已存在 | ⬜ pending |
| 09-01-05 | 01 | 1 | PIPE-01 | unit | pytest tests/test_platforms/test_zhihu.py -k "test_cookie" -v |
❌ W0 | ⬜ pending |
| 09-01-06 | 01 | 1 | PIPE-01 | unit | pytest tests/test_platforms/test_zhihu.py -k "test_comment" -v |
❌ W0 | ⬜ pending |
Status: ⬜ pending · ✅ green · ❌ red · ⚠️ flaky
Wave 0 Requirements
tests/test_platforms/test_zhihu.py— 更新测试使用 ZhihuCrawler mocktests/test_platforms/test_zhihu.py::test_cookie_expired_login— Cookie 过期自动触发登录流程测试tests/test_platforms/test_zhihu.py::test_comment_format— 评论追加到正文格式验证测试tests/test_platforms/test_zhihu.py::test_crawlresult_to_metadata— CrawlResult 到 metadata 转换正确性测试
现有测试基础设施完善,主要是更新和新增 ZhihuAdapter 相关测试
Manual-Only Verifications
| Behavior | Requirement | Why Manual | Test Instructions |
|---|---|---|---|
| 扫码登录实际流程 | PIPE-01 | 需要 Zhihu API 真实交互 | 1. 删除 Cookie 文件 2. 运行 Pipeline 3. 验证二维码显示 4. 扫码后流程继续 |
| 评论实际爬取 | PIPE-01 | 需要 Zhihu API 真实交互 | 1. 运行 Pipeline 处理知乎链接 2. 验证评论追加到 content.md |
Validation Sign-Off
- All tasks have
<automated>verify or Wave 0 dependencies - Sampling continuity: no 3 consecutive tasks without automated verify
- Wave 0 covers all MISSING references
- No watch-mode flags
- Feedback latency < 30s
nyquist_compliant: trueset in frontmatter
Approval: pending