Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

test(ci): assert the installer builds no modules from source

Steven Enamakel06f736e5648e
diff --git a/scripts/__tests__/test-module-installation.test.mjs b/scripts/__tests__/test-module-installation.test.mjs
index 468cf9dd76..a8730eea38 100644
--- a/scripts/__tests__/test-module-installation.test.mjs
+++ b/scripts/__tests__/test-module-installation.test.mjs
@@ -44,6 +44,7 @@ test("locally built native Rust test modules come from build.mjs, not ad hoc car
assert.match(source, /modules\/stage-local-modules\.sh/);
assert.match(source, /stage_source_modules "\$\{local_source_ids\[@\]\}"/);
assert.match(source, /target\/module-sources\/tinyconnectors/);
+ assert.match(source, /stage_release_module tinyconnectors/);
assert.doesNotMatch(source, /cargo build/, "no hand-rolled module build");
assert.doesNotMatch(source, /--target-dir|native-test-modules/);
assert.doesNotMatch(
@@ -335,3 +336,17 @@ for (const runner of ["test-rust-with-mock.sh", "test-rust-e2e.sh"]) {
}
});
}
+
+test("the CI installer builds nothing: every module, tinyconnectors included, is a registry release", () => {
+ const source = readFileSync(installer, "utf8");
+ assert.doesNotMatch(source, /cargo build|cargo-cancel|--target-dir/);
+ assert.doesNotMatch(source, /stage-connector-test-module|modules\.toml/);
+ const assets = resolveTestModuleAssets(
+ readRegistrySource(),
+ "ubuntu-22.04-x86_64",
+ );
+ const connectors = assets.find((asset) => asset.id === "tinyconnectors");
+ assert.ok(connectors, "the installer resolves tinyconnectors from the registry");
+ assert.match(connectors.sha256, /^[a-f0-9]{64}$/);
+ assert.match(connectors.url, /\/releases\/download\/v\d+\.\d+\.\d+\//);
+});
diff --git a/scripts/ci/README.md b/scripts/ci/README.md
index 1d3e1713a0..d0397cae98 100644
--- a/scripts/ci/README.md
+++ b/scripts/ci/README.md
@@ -11,7 +11,7 @@ authoritative spec; this is an index so a CI failure log points somewhere.
| [`check-crate-chain.mjs`](check-crate-chain.mjs) | The crate chain holds: each OpenHuman crate's normal dependencies name only the layer below it (core: none; embed: core; tinyhumans: embed; rpc: tinyhumans; app/cli/tui: rpc), and host `src/` never names `__host`, `core_host` or `openhuman_core::`. Dev-dependencies are exempt. Runs as part of `pnpm rust:layout`. |
| [`product-features.txt`](product-features.txt) / [`product-features.sh`](product-features.sh) | Source of truth for the shipped desktop product's Cargo feature gates, distinct from `[features] default` (the contributor build). The `.sh` prints them comma-separated for `cargo --features "$(scripts/ci/product-features.sh)"`. |
| [`check-module-pins.mjs`](check-module-pins.mjs) + [`module-pin-exemptions.json`](module-pin-exemptions.json) | A loadable module's registry pin ([`crates/openhuman-core/src/modules/registry.rs`](../../crates/openhuman-core/src/modules/registry.rs)) and its `vendor/*` submodule pin must describe the same release (openhuman#5727). The exemptions file records known, expected drift, not a way to silence the gate. Logic lives in [`scripts/lib/module-pins.mjs`](../lib/module-pins.mjs). |
-| [`check-ci-module-source.mjs`](check-ci-module-source.mjs) | CI selects the pinned, digest-checked release only: no `OPENHUMAN_MODULE_SOURCE*`, no `linked`/`source` override, no `linked-modules` feature, and no call to the local source build `scripts/modules/build.mjs`. `self-hosted/install-test-modules.sh` still builds libtinyconnectors inline until E0.6 removes the CI source builds. |
+| [`check-ci-module-source.mjs`](check-ci-module-source.mjs) | CI selects the pinned, digest-checked release only: no module-source environment override, no linked or source mode, no non-product linked feature, and no call to the local module build script. Every module, tinyconnectors included, is downloaded from its release (#7618); nothing is compiled from source in CI. |
| [`check-submodule-monotonic.mjs`](check-submodule-monotonic.mjs) | A `vendor/*` submodule pin may never move backwards onto a commit that is an ancestor of what the base branch already has. |
| [`check-toolchain-image.mjs`](check-toolchain-image.mjs) | The CI image's toolchain, the version-pinned `dtolnay/rust-toolchain@<version>` workflow steps, and [`.github/Dockerfile`](../../.github/Dockerfile) all match the channel pinned in [`rust-toolchain.toml`](../../rust-toolchain.toml). |
| [`rust-coverage.sh`](rust-coverage.sh) | Runs the complete product-feature Rust suite under `cargo-llvm-cov`, including every core integration target and the root Rust support crates. |