The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
test(rust-e2e): align enumeration test with module staging
Steven Enamakel8dab79e2b669
diff --git a/scripts/__tests__/rust-e2e-enumeration.test.mjs b/scripts/__tests__/rust-e2e-enumeration.test.mjsindex 39e511670f..e35f0021aa 100644--- a/scripts/__tests__/rust-e2e-enumeration.test.mjs+++ b/scripts/__tests__/rust-e2e-enumeration.test.mjs@@ -243,28 +243,12 @@ test("mcp_registry_e2e runs serially because its module state is process-global");});-test("the E2E runner builds and exports its pinned search module fixture", () => {+test("the E2E runner builds its search and connector fixtures and puts them on the module path", () => {const source = fs.readFileSync(runner, "utf8");const start = source.indexOf("# Module-backed Composio coverage");const end = source.indexOf('echo "[rust-e2e] Running', start);assert.ok(start >= 0 && end > start, "module preparation block exists");const dir = fs.mkdtempSync(path.join(os.tmpdir(), "rust-e2e-modules-"));- const connectorDir = path.join(- dir,- "target/native-test-modules/tinyconnectors/release",- );- fs.mkdirSync(connectorDir, { recursive: true });- fs.writeFileSync(- path.join(connectorDir, "libtinyconnectors.so"),- "pinned connector fixture",- );- const runLog = path.join(dir, "runs.log");- const cargo = path.join(dir, "cargo");- fs.writeFileSync(- cargo,- '#!/usr/bin/env bash\nprintf \'%s\\n\' "$*" >> "$STUB_RUN_LOG"\n',- { mode: 0o755 },- );try {const output = execFileSync("bash",@@ -273,39 +257,23 @@ test("the E2E runner builds and exports its pinned search module fixture", () =>["set -euo pipefail",'REPO_ROOT="$STUB_DIR"',- 'CARGO_BIN="$STUB_DIR/cargo"',- "module_ext=so",- "unset TINYCONNECTORS_TEST_MODULE TINYSEARCH_TEST_MODULE",+ "e2e_source_ids=(tinyconnectors tinysearch)",+ "unset OPENHUMAN_MODULE_PATH",+ 'stage_source_modules() { printf "built=%s\\n" "$*"; }',source.slice(start, end),- "printf 'search=%s\\n' \"${TINYSEARCH_TEST_MODULE:-}\"",+ "printf 'path=%s\\n' \"${OPENHUMAN_MODULE_PATH:-}\"",].join("\n"),],- {- encoding: "utf8",- env: { ...process.env, STUB_DIR: dir, STUB_RUN_LOG: runLog },- },+ { encoding: "utf8", env: { ...process.env, STUB_DIR: dir } },);+ assert.match(output, /built=tinyconnectors tinysearch/);assert.ok(output.includes(- `search=${dir}/target/native-test-modules/tinysearch/release/libtinysearch.so`,+ `path=${dir}/target/module-sources/tinysearch:${dir}/target/module-sources/tinyconnectors`,),output,);- assert.match(- fs.readFileSync(- path.join(dir, "target/test-modules/tinyconnectors/modules.toml"),- "utf8",- ),- /"libtinyconnectors\.so" = "[a-f0-9]{64}"/,- );- assert.ok(- fs- .readFileSync(runLog, "utf8")- .includes(- "build --release --manifest-path vendor/tinysearch/crates/tinysearch/Cargo.toml --target-dir " +- path.join(dir, "target/native-test-modules/tinysearch"),- ),- );+ assert.doesNotMatch(source, /--target-dir/, "no temp or ad hoc target dir");} finally {fs.rmSync(dir, { recursive: true, force: true });}diff --git a/scripts/test-rust-e2e.sh b/scripts/test-rust-e2e.shindex e124ac53a8..94ff4fc51c 100755--- a/scripts/test-rust-e2e.sh+++ b/scripts/test-rust-e2e.sh@@ -173,9 +173,6 @@ fi# execute. Keep this list in the same canonical source as `pnpm test:rust`.PRODUCT_FEATURES="$(bash "$REPO_ROOT/scripts/ci/product-features.sh")"-# Shell command analysis and the storage URL E2E suites load TinyBox through-# the native module path. Download the registry-pinned release and verify its-# digest before the subprocesses start.module_target="$(bash "$SCRIPT_DIR/ci/native-test-module-platform.sh")"IFS=$'\t' read -r module_ext module_platform <<< "$module_target"# shellcheck source=modules/stage-local-modules.sh