You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit f6b5d77
Browse filesBrowse the repository at this point in the historyBrowse files
test: auto-discover test_*.py modules in the runner (no more hand-kept or-chain)
Track A (N2). The suite aggregator imported ~16 test modules by hand and gated
on a 25-term `or` of their return codes; adding a module meant remembering to
thread its rc through that chain, and a forgotten term silently dropped a whole
module from the gate.
The runner now globs `test_*.py`, calls each module's `run()`, and returns
`any(rc)` (plus the inline analysis/codegen flags). A new test file is picked up
with no edit here; a module missing `run()` fails the suite loudly; discovering
zero modules fails loud. `test_codegen_props` keeps its lighter in-suite
iteration count (3000) via a one-entry special-case map. Per-module output is
unchanged (now ordered by filename).
Refs docs/notes/tech-debt-register.md (N2).
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FJSfUpRbRXegrwJNV1rx1X
Copy file name to clipboardExpand all lines: docs/notes/tech-debt-register.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -193,7 +193,7 @@ Python walkers (§2.1).
193
193
| # | Item | Where | Why now |
194
194
|---|------|-------|---------|
195
195
| N1 ✅ |`else: raise` on unknown flow ops |`ownlang/ownir.py``_lower_flow`| Silent fact-swallowing → fabricated/missed verdicts (§2.1). *Done: raises `OwnIRError`; pinned by test_ownir. The five read-only walkers legitimately ignore ops they don't consume, so the guard is scoped to `_lower_flow` (the only pass that must handle every op or lose facts).*|
196
-
| N2 | Auto-discovery in the test runner |`tests/run_tests.py:1144-1149`| 25-term hand-rolled `or`; a forgotten `rc` silently stops gating |
196
+
| N2 ✅ | Auto-discovery in the test runner |`tests/run_tests.py`| 25-term hand-rolled `or`; a forgotten `rc` silently stopped gating. *Done: the runner now globs `test_*.py`, calls each module's `run()`, and gates on `any(rc)` — a new test file is auto-included, a module without `run()` fails the suite, and a discovery of zero modules fails loud. `test_codegen_props` keeps its lighter in-suite iteration count via a small special-case map.*|
197
197
| N3 | Golden facts snapshots in CI + feed to `test_ownir.py`|`ci.yml` wpf-extractor job | The seam is never diffed at the facts level (§2.2) |
198
198
| N4 ◑ |`spec/OwnIR.md` ✅ + JSON Schema (pending) + evolution policy ✅ |`spec/OwnIR.md`| §2.3–2.4. *Done: normative spec incl. the version evolution policy (IR1–IR6), registered in `spec/README.md`. Still to do: `spec/ownir.schema.json` + CI fixture validation.*|
199
199
| N5 | DI001–005 + EFF001 into `spec/` + `Diagnostics.md` + `test_spec.py`|`ownlang/di.py`, `effects.py`| Second-largest analyzer has zero normative governance |
0 commit comments