Skip to content

Wire cargo test -p nodespace-app (Tauri-seam, ADR-048) into CI #1571

Closed as not planned

Description

@mstomar125

Follow-up to #1495 / PR #1570.

The local pre-push gate (scripts/test-gate.ts, ADR-047) ends with cargo test -p nodespace-app (the Tauri-seam integration tests, ADR-048), run with NODESPACED_TEST_BIN pointing at the freshly-built daemon. The new ci.yml covers test:all + test:e2e but omits this last step, because it trips the Tauri externalBin build-script check in CI:

resource path `binaries/nodespaced-aarch64-apple-darwin` doesn't exist
error: failed to run custom build command for `nodespace-app`

tauri.conf.json declares externalBin: ["binaries/nodespaced", "binaries/nodespace"], and binaries/ is gitignored, so the sidecars are absent on a fresh CI checkout. Locally the gate passes because the dev has binaries/ populated.

Task

Add a staging step to the e2e job (or a dedicated seam job) before cargo test -p nodespace-app:

  • cargo build --bin nodespaced --bin nodespace
  • copy both into packages/desktop-app/src-tauri/binaries/ with the runner triple suffix (-aarch64-apple-darwin)
  • confirm whether bundle.resources (resources/models/**/*) also needs a placeholder for the non-bundle cargo test build script (release.yml mkdir -p resources/models first)

Then run cargo test -p nodespace-app with NODESPACED_TEST_BIN=$GITHUB_WORKSPACE/target/debug/nodespaced, restoring full parity with the local gate.

Acceptance

  • The Tauri-seam tests run in CI and are green
  • Added to the required status checks alongside unit + e2e

Activity

  1. mstomar125 commented on Jul 28, 2026

    @mstomar125
    ContributorAuthor

    ⏸️ PARKED pending an architecture decision — this contradicts an Accepted ADR.

    The ci.yml this issue extends no longer exists: #1618 deleted it (closes #1617) because it "contradicted ADR-047 (Accepted), which scopes GitHub Actions to release/signing only and explicitly rejected a hosted test-gating workflow." ADR-047's rationale is architectural — a desktop app has no production deployment / no shared server to protect, so the local pre-push hook (scripts/test-gate.ts via Husky) is the sole gate. Public-repo CI being free answers a cost objection ADR-047 did not make.

    So implementing this = re-introducing the exact workflow that was deliberately removed, which #1617 says is a team decision, not a silent code change. Two paths:

    • (a) Supersede ADR-047 with a new ADR (records the try→revert→re-add history, argues free public CI + the --no-verify/never-ran-bun install gap No CI runs any test — add a PR test-gating workflow #1495 raised) + re-add ci.yml with the Tauri-seam staging step. I can draft both for malibio review.
    • (b) Keep local-only gating per ADR-047 and close this as won't-do.

    Parked until (a) or (b) is chosen.

  2. mstomar125 commented on Jul 29, 2026

    @mstomar125
    ContributorAuthor

    Deferring to backlog — no definitive pick-up date.

    The premise here is obsolete: this asks to wire the Tauri-seam test into ci.yml, but ci.yml was intentionally removed (#1617/#1618) and ADR-047 (Accepted, amended 2026-07-11) now states the local pre-push hook scripts/test-gate.ts is the sole test-enforcement mechanism, with no ci.yml or other test-running workflow added.

    The seam test this issue targets (cargo test -p nodespace-app) is already run today as the final step of the local gate, so it is not unguarded. The only thing this issue would add is hosted-CI coverage of the --no-verify / never-ran-bun install bypass gap — the exact gap ADR-047 weighed and deliberately accepted for a pre-release desktop app with no external contributors.

    There's no present need for hosted CI gating, so parking this in the backlog with no scheduled date. Reviving it would be a policy reversal that requires superseding ADR-047 first, not just an implementation task.

  3. mstomar125 commented on Aug 1, 2026

    @mstomar125
    ContributorAuthor

    Resolution — obsolete by ADR-047 (no code change)

    This issue asked to wire the Tauri-seam suite (cargo test -p nodespace-app, ADR-048) into ci.yml. That target no longer exists, and the coverage it wanted is already enforced elsewhere:

    1. ci.yml was deliberately removed. After #1571 was split off (c1da3e56 deferred the seam step from the test-gating workflow), the whole workflow was deleted in #1618 (ec36d75e, "Remove ci.yml and restore local-only test gating"). Rationale from that commit: "ci.yml contradicted ADR-047 (Accepted), which scopes GitHub Actions to release/signing only and explicitly rejected a hosted test-gating workflow. The local pre-push hook (scripts/test-gate.ts via Husky) remains the sole test-enforcement mechanism." ADR-047 was amended to record the addition-and-reversal. So there is no CI test-gating job to wire the seam step into, and re-adding one would reverse an Accepted ADR.

    2. The seam tests are already gated. The local pre-push gate runs them unconditionally on every push — scripts/test-gate.ts:42-68:

    await run("cargo test -p nodespace-app (Tauri-seam integration tests, ADR-048)", () => {
      ...
      return $`cargo test -p nodespace-app -- --test-threads=1`.env({
        ...process.env,
        NODESPACED_TEST_BIN: binary,
      });
    });
    

    It builds the daemon, points NODESPACED_TEST_BIN at it, and serializes daemon spawns (--test-threads=1, tuned per #1610). This is exactly the parity the issue's acceptance wanted, achieved via the mechanism ADR-047 designates as the sole test gate — not via CI.

    The sidecar problem the issue described (binaries/… gitignored → Tauri externalBin build-script failure on a fresh CI checkout) is also moot once the suite runs locally where binaries/ is populated.

    Closing as resolved-by-architecture (ADR-047 / #1618). No PR needed.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions