fix: 清除错误默认模型与端口硬编码,文档机器路径占位符化

This commit is contained in:
hangshuo652
2026-08-25 22:35:35 +08:00
parent 8e81f960af
commit c6fa6b1aeb
19 changed files with 85 additions and 57 deletions
+10 -10
View File
@@ -332,7 +332,7 @@ def check_coverage(structure: dict, test_records: list[dict]) -> dict:
- [ ] **Step 5: 运行 import 测试确认封装正确**
Run: `cd D:/cobol-java/v3-gstack-code-gen && python -c "from cobol_testgen import extract_structure, generate_data, incremental_supplement; print('API OK')"`
Run: `cd <project-root> && python -c "from cobol_testgen import extract_structure, generate_data, incremental_supplement; print('API OK')"`
Expected: `API OK`
- [ ] **Step 6: Commit**
@@ -384,7 +384,7 @@ class VerificationRun:
- [ ] **Step 2: 运行测试确认不破坏现有代码**
Run: `cd D:/cobol-java/v3-gstack-code-gen && python -c "from data.diff_result import VerificationRun; vr = VerificationRun(); print(vr.paragraph_rate, vr.quality_score)"`
Run: `cd <project-root> && python -c "from data.diff_result import VerificationRun; vr = VerificationRun(); print(vr.paragraph_rate, vr.quality_score)"`
Expected: `0.0 0.0`
- [ ] **Step 3: Commit**
@@ -435,7 +435,7 @@ enabled = false
- [ ] **Step 3: 确认 Config 向后兼容**
Run: `cd D:/cobol-java/v3-gstack-code-gen && python -c "from config import Config; c = Config(); print(c.quality_gate_mode, c.quality_gate_decision_threshold)"`
Run: `cd <project-root> && python -c "from config import Config; c = Config(); print(c.quality_gate_mode, c.quality_gate_decision_threshold)"`
Expected: `warn 0.9`
- [ ] **Step 4: Commit**
@@ -532,7 +532,7 @@ def run_pipeline(cfg: Config, cpath: str, cbl: str, java: str, map_path: str) ->
- [ ] **Step 2: 运行测试确认 import 正确**
Run: `cd D:/cobol-java/v3-gstack-code-gen && python -c "from orchestrator import run_pipeline; print('import OK')"`
Run: `cd <project-root> && python -c "from orchestrator import run_pipeline; print('import OK')"`
Expected: `import OK`
- [ ] **Step 3: Commit**
@@ -651,7 +651,7 @@ class RetryHandler:
- [ ] **Step 3: 测试 retry 模块**
Run: `cd D:/cobol-java/v3-gstack-code-gen && python -c "from hina.retry import RetryHandler; print('OK')"`
Run: `cd <project-root> && python -c "from hina.retry import RetryHandler; print('OK')"`
Expected: `OK`
- [ ] **Step 4: Commit**
@@ -851,7 +851,7 @@ def test_detect_keyword_no_match():
- [ ] **Step 3: 运行测试**
Run: `cd D:/cobol-java/v3-gstack-code-gen && python -c "from hina.classifier import detect_keyword; print('OK')"`
Run: `cd <project-root> && python -c "from hina.classifier import detect_keyword; print('OK')"`
Expected: `OK`
- [ ] **Step 4: Commit**
@@ -992,7 +992,7 @@ def supplement_only(base_tests: list[dict], hina_gaps: list[str]) -> list[dict]:
- [ ] **Step 2: 测试策略模板**
Run: `cd D:/cobol-java/v3-gstack-code-gen && python -c "from hina.strategy import get_strategy; s = get_strategy('マッチング'); print(len(s['required']))"`
Run: `cd <project-root> && python -c "from hina.strategy import get_strategy; s = get_strategy('マッチング'); print(len(s['required']))"`
Expected: `9`
- [ ] **Step 3: Commit**
@@ -1088,7 +1088,7 @@ def _compute_score(coverage: dict, hina_result: dict) -> float:
- [ ] **Step 2: 测试质量门禁**
Run: `cd D:/cobol-java/v3-gstack-code-gen && python -c "from hina.gate import check; r = check([], {}, {'branch_rate':0.8,'paragraph_rate':0.9,'uncovered_decision_ids':[1]}); print(r['passed'], r['score'])"`
Run: `cd <project-root> && python -c "from hina.gate import check; r = check([], {}, {'branch_rate':0.8,'paragraph_rate':0.9,'uncovered_decision_ids':[1]}); print(r['passed'], r['score'])"`
Expected: `False 0.87`
- [ ] **Step 3: Commit**
@@ -1437,7 +1437,7 @@ table{{border-collapse:collapse}} td,th{{padding:6px 12px}}
- [ ] **Step 2: 运行测试确认 HTML 生成正确**
Run: `cd D:/cobol-java/v3-gstack-code-gen && python -m pytest tests/report/test_generator.py -v`
Run: `cd <project-root> && python -m pytest tests/report/test_generator.py -v`
Expected: `3 passed`
- [ ] **Step 3: Commit**
@@ -1583,7 +1583,7 @@ def test_check_coverage():
- [ ] **Step 2: 运行集成测试**
Run: `cd D:/cobol-java/v3-gstack-code-gen && python -m pytest tests/test_quality/test_integration.py -v`
Run: `cd <project-root> && python -m pytest tests/test_quality/test_integration.py -v`
Expected: `6 passed`
- [ ] **Step 3: 最终 Commit**