Skip to content

fix(tests): eight spec_checklist targets read repo paths from the crate dir — 77 vacuous rows now read the tree (#3130) - #3131

Closed
noahgift wants to merge 1 commit into
mainfrom
PMAT-1098-spec-checklist-paths
Closed

fix(tests): eight spec_checklist targets read repo paths from the crate dir — 77 vacuous rows now read the tree (#3130)#3131
noahgift wants to merge 1 commit into
mainfrom
PMAT-1098-spec-checklist-paths

Conversation

@noahgift

Copy link
Copy Markdown
Contributor

Part of #3130 (the eight-file sweep; the four targets that already failed are on #3112/#3127/#3128).

Eight spec_checklist_* integration targets bound repo paths as bare string literals (let spec_path = "docs/specifications/archive/…", let import_cmd = "crates/apr-cli/src/commands/import.rs") and read them from the test binary's cwd — the CRATE dir — so 77 rows guarded by if let Ok(content) = read_to_string(path) passed by never reading the file. Every site now anchors on workspace_root() (CARGO_MANIFEST_DIR/../.., the monorepo_invariants.rs pattern) and every read has a panic message that prints the path tried. No assertion was weakened; no roadmap change, so this stays mergeable behind the 0.67 train (#3127).

Written by an agy goal lane (PMAT-1098 phase 4); re-verified by the orchestrator on the lane's commit:

cargo nextest run -p aprender-core --test spec_checklist_{t_realizar,u_performance,r_model_import,w_advanced_perf,v_sovereign,x_anti_stub,q_qwen_coder,f_wasm} --no-fail-fast
     Summary [ 117.420s] 101 tests run: 101 passed (1 slow), 0 skipped
bash scripts/check_tree_reader_tests.sh      -> exit 0 (unwired ledger: +spec_checklist_f_wasm, a tree reader no workflow runs — the FULL-vs-QUICK question stays on #3130)
cargo fmt -p aprender-core -- --check        -> exit 0

Auto-merge is deliberately NOT armed yet: this branch is off main @ bbd3243 without the #3112 aarch64 lint fix, and gx10 pools carry clean-room now. It is update-branch'd and armed once #3127 lands.

🤖 Generated with Claude Code

…te dir -- 77 vacuous rows now read the tree (#3130)

Defect: integration tests under crates/aprender-core/tests/ bind repo-relative paths as bare string literals but cargo/nextest run a test binary with cwd = the CRATE dir, so the file is never found; most rows hid it behind if let Ok and were vacuous.
Anchor: Added workspace_root() helper to resolve paths correctly from the crate directory to the repo root.
Summary Lines:
- spec_checklist_f_wasm: ok. 5 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s
- spec_checklist_q_qwen_coder: ok. 9 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 118.50s
- spec_checklist_r_model_import: ok. 10 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
- spec_checklist_t_realizar: ok. 25 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
- spec_checklist_u_performance: ok. 15 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s
- spec_checklist_v_sovereign: ok. 15 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
- spec_checklist_w_advanced_perf: ok. 12 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
- spec_checklist_x_anti_stub: ok. 10 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

Pmat-Ticket: PMAT-1098
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@noahgift noahgift added this to the 0.67.0 milestone Sep 11, 2026
@noahgift noahgift added bug Something isn't working pp-067 PP-066 spec §6: 0.67 lane (carried row) labels Sep 11, 2026
@github-actions

Copy link
Copy Markdown

§13.11 rung 1 — quorum shadow verdict

S13-SHADOW pr=3131 head=9b8475fd1b6e3b8e66d23764565c0cb443fc7d90 verdict=REFUSE class=Q1 arm_rc=1

Shadow mode: this records a verdict and merges nothing. A refusal
to arm is not a block (§13 adds zero rows to §7) — the pull request is
exactly as green as it was.

@noahgift

Copy link
Copy Markdown
Contributor Author

Landed on main via train #3127 (cb829fc) — this branch's head is an ancestor of the train head a6148ab (PMAT-1098, 0.67.0).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working pp-067 PP-066 spec §6: 0.67 lane (carried row)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant