Compare commits

...
Author SHA1 Message Date
jesse-ux faba3ba78a docs: record purpose-gate quick checks (#186) 2026-11-09 19:27:30 +08:00
@@ -39,6 +39,8 @@
| `python -m pytest tests/test_repo_privacy_markers.py -o addopts='' -q` | 62 条通过,退出码 0 |
| `python scripts/pre_work_check.py --remote-timeout 8 --command-timeout 45` | Gitea 远端已核对。整体退出码 1,复现台账中的 Windows 预检断言,独立工作树缺少历史 `.workbuddy` 镜像路径 |
| `python -m pytest -o addopts='' -q tests/test_python_hygiene_budget.py` | 1 条通过,1 条失败。`scripts/` 顶层有 477 个 Python 文件,门禁上限为 476 |
| `python scripts/run_quality_gate.py --profile quick`(Windows 沙箱内) | 1387 条通过、52 条失败、2 条跳过,退出码 1。失败包含本地回环 HTTP 的 `WinError 10013` |
| `python -u scripts/run_quality_gate.py --profile quick`(沙箱外复跑) | 1435 条通过、4 条失败、2 条跳过,退出码 1。失败为目录预算和 `test_upstream_technique_layers.py` 的 3 条。用途合同测试全部通过 |
初版新增的两条:
@@ -51,4 +53,4 @@
- 测试从 `unittest` 风格原样移植(pytest 直接能跑),没有改成 pytest 函数式;这样与参考测试可以逐条对照。
- `examples.json` 与参考测试直接从 `docs/tasks/assets/purpose-gate-20261109/` 读,没有复制进 `tests/fixtures/`:任务书只允许新建那两个文件,复制会多出一份可能走样的副本。
- 合入前需确认模块路径。初版远端分支已有 477 个顶层 Python 文件,当前 `origin/staging` 有 476 个。原任务书指定的 `scripts/rectification_purpose_gate.py` 会使门禁超限。此次修复按修复单保留该路径和原门禁,待确认是否像 #179 一样将模块移入子目录并调整测试导入。
- 合入前需确认模块路径。初版远端分支已有 477 个顶层 Python 文件,本轮核对的 `origin/staging` 有 476 个。原任务书指定的 `scripts/rectification_purpose_gate.py` 会使门禁超限。此次修复按修复单保留该路径和原门禁。建议迁入 `scripts/rectification_purpose_gate/__init__.py`,保留 Python 导入路径。