Skip to content

Commit 2e35e49

Browse files
committed
fix(test): §41 recreates its gitignored fixtures at runtime so CI passes on a fresh checkout
1 parent 258d92c commit 2e35e49

2 files changed

Lines changed: 7 additions & 9 deletions

File tree

.github/workflows/validate.yml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,6 @@ jobs:
4343
# One command, every gate: the deterministic harness + stats drift + count drift + the mutation
4444
# meta-harness + the public-harness contract (green WITHOUT the internal held-out keys — the Phase-7
4545
# unblock). validate_all prints a per-gate PASS/FAIL line, so CI keeps full visibility in one step.
46-
- name: DEBUG — surface failing gates (temporary)
47-
env:
48-
PYTHONUTF8: '1'
49-
run: |
50-
echo "=== harness [FAIL] lines ==="
51-
python tests-fixtures-v1/_chat_validation.py 2>&1 | grep -E '\[FAIL\]|RESULT:' || true
52-
echo "=== build_stats --check (drift detail) ==="
53-
python tools/build_stats.py --check 2>&1 | tail -25 || true
54-
5546
- name: Run ALL validation gates (tools/validate_all.py)
5647
env:
5748
PYTHONUTF8: '1'

tests-fixtures-v1/_chat_validation.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1828,6 +1828,13 @@ def _g40_record():
18281828
_exp41 = json.loads((_EXFX / "ground-truth" / "expected.json").read_text(encoding="utf-8"))
18291829
_repo41 = _EXFX / "repo"
18301830
_ml = _exp41["max_lines_for_test"]
1831+
# The .gitignored fixture files (secrets.env, *.log, node_modules/) are intentionally NOT committed (they
1832+
# ARE what the exclusion pass must skip), so a fresh checkout / clean clone lacks them and the gitignored +
1833+
# vendored counts would be short. Recreate them at runtime so the pass exercises those paths everywhere.
1834+
(_repo41 / "secrets.env").write_text("API_KEY=fixture-not-a-real-secret\n", encoding="utf-8")
1835+
(_repo41 / "debug.log").write_text("fixture debug output\n", encoding="utf-8")
1836+
(_repo41 / "node_modules" / "dep").mkdir(parents=True, exist_ok=True)
1837+
(_repo41 / "node_modules" / "dep" / "index.js").write_text("module.exports = 1;\n", encoding="utf-8")
18311838
_res41 = _exc41.run(_repo41, max_lines=_ml)
18321839
_inc = set(_res41["included"]); _skip = {s["path"]: s["category"] for s in _res41["skipped"]}
18331840
_g41_ok = True

0 commit comments

Comments
 (0)