Skip to content

rust:test still gates by target allowlist: 20 tests/*.rs integration files never run, including the daemon's gRPC suites #1796

Closed

Description

@malibio

Overview

PR #1795 widened rust:test from 2 crates to the whole workspace, closing #1792. But it widened the crate filter while leaving the target filter an allowlist:

cargo test --lib --bins --workspace --exclude nodespace-app --exclude nodespace-app-test-support

--lib --bins runs unit tests and binary tests. It does not run tests/*.rs — the integration tests. Those are 20 files across the workspace:

packages/core        11
packages/daemon       5
packages/agent        2
packages/nlp-engine   1
packages/cli          1

packages/daemon/tests/ alone holds grpc_round_trip.rs, agent_session_grpc.rs, database_service_e2e.rs, import_round_trip.rs, and per_db_compute.rs — gRPC coverage for the same service layer #1792 was filed to protect.

Why this is the same bug one level down

#1792 existed because the gate named crates to include, so crates added later were silently ungated. --lib --bins has the identical shape: a new tests/*.rs file is silently ungated the day it lands, and nothing signals it.

nodespace-app is the one crate whose integration tests do run, via its own pre-push step (ADR-048) which builds all 13 targets. Every other crate's tests/*.rs runs only when someone invokes it by hand.

Why it wasn't folded into #1795

It needs triage rather than a flag change. Some of these suites are not gate-safe as-is:

  • real-model / live-inference suites that need provisioned GGUF files
  • latency and performance assertions that are machine-load-sensitive
  • anything spawning a real nodespaced, which the ADR-048 step already serializes with --test-threads=1 for exactly this reason

Turning them all on blindly would make the gate slow, flaky, or both — which is worse than the gap, because a flaky gate gets bypassed with --no-verify and then protects nothing.

Suggested approach

  1. Inventory the 20 files: for each, does it need external state (model files, network, a real daemon), and what is its warm wall-clock cost?
  2. Gate the ones that are hermetic and fast.
  3. For the rest, decide deliberately: mark #[ignore] with a documented opt-in, move to a nightly workflow, or leave out with the reason recorded.
  4. Prefer an exclude-list once triaged, so new files are covered by default — the same inversion Rust test gate covers 2 of 9 crates: nodespace-daemon's 92 tests never run automatically #1795 applied at the crate level.

Source

Raised in the code review of PR #1795.

Activity

  1. self-assigned this
    on Jul 29, 2026
  2. mstomar125 commented on Jul 29, 2026

    @mstomar125
    Contributor

    Picking this up now (remote/mini session).

  3. mstomar125 commented on Jul 29, 2026

    @mstomar125
    Contributor

    Handing this to @malibio — it falls under the local-agent / skills work he flagged he's actively on, so reassigning to avoid a collision. Unassigning myself; not starting or continuing it on the remote side.

  4. malibio commented on Jul 31, 2026

    @malibio
    CollaboratorAuthor

    Frontend baseline: 171 test files passed, 4113 tests passed

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions