Repository navigation
Gate rust:test on --tests so integration tests run by default - #1863
Conversation
rust:test ran --lib --bins, which never executed tests/*.rs — the exact allowlist-shaped gap #1792 was filed to close, one level down. 18 of the 20 previously-ungated integration files (core: 11, daemon: 5, cli: 1, agent: 1) turned out to be hermetic and fast once actually run, so they now gate by default via --tests. The 2 that aren't gate-safe relied on a runtime model/backend probe that silently ran for real (and slowly — 72s and 2+ minutes measured locally) on any machine with a GGUF or inference server already available, instead of failing closed. Both now carry #[ignore] with a documented opt-in, matching the pattern already used by this repo's other live/latency suites (live_openai_compat_*.rs, routing_latency.rs). Closes #1796
Pragmatic code reviewVerified the PR's core claims by re-deriving them independently rather than trusting the description: Inventory checks out. The two
Spot-checked the 16 "hermetic, no changes needed" files for hidden risk (network calls, real daemon spawns, fixed ports, order-dependent shared state, sleep-based races):
Two minor, pre-existing observations, neither a blocker:
Everything else checks out:
VerdictApprove. The diff is small, the triage claims are independently verifiable and hold up, and the two genuinely non-hermetic files are handled the same way the rest of the codebase already handles live/latency suites. The two minor items above (temp-dir leak on failure, sleep-based test timing) are pre-existing and not introduced by this PR — flagging as follow-up material, not blocking. |
malibio
left a comment
There was a problem hiding this comment.
Review posted above (self-approval blocked by GitHub — PR author and reviewing account are the same). Verdict: approve, no blocking issues found.
Summary
rust:testrancargo test --lib --bins, which never executestests/*.rs— the same allowlist-shaped gap Rust test gate covers 2 of 9 crates: nodespace-daemon's 92 tests never run automatically #1792 was filed to close, one level down. 20 integration test files across core (11), daemon (5), agent (2), nlp-engine (1), and cli (1) were silently ungated.embedding_service_test.rs(uses stub embeddings despite its doc comment) and all ofpackages/daemon/tests/*.rs(in-process gRPC +PtySession::launch_for_testbypass, no real agent binary needed).rust:testnow runs--lib --bins --testsinstead of--lib --bins, sotests/*.rsis covered by default going forward — a new integration test file no longer needs a script change to be gated.packages/agent/tests/search_skills_latency.rs,packages/nlp-engine/tests/integration_tests.rs) relied on a runtime model/backend probe that returns early when nothing is available — but ran for real, slowly, on any machine that happens to have a backend configured. Measured locally: nlp-engine's suite took 72.68s and agent's didn't finish in 2 minutes, both because this machine has a model/backend available. Both now carry#[ignore]with a documented opt-in, matching the pattern already used by this repo's other live/latency suites (live_openai_compat_*.rs,routing_latency.rs).Test plan
bun run test:all— no new failures (Rust: all previously-ungated files now run and pass; frontend/skill/scripts unchanged)bun run quality:fix— clean, no lint issues (reverted 3 unrelatedcargo fmtreflows in files this PR doesn't otherwise touch)test:all+cargo build --bin nodespaced+test:e2e+cargo test -p nodespace-app(ADR-048 Tauri-seam suite)search_skills_latency.rsandintegration_tests.rsnow showignoredwith the documented reason instead of running for realCloses #1796
🤖 Generated with Claude Code