Skip to content

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

test(test-modules): cache every release the E2E runner stages in its fixture

M3gA-Mind371b890b19f4
diff --git a/scripts/__tests__/test-module-installation.test.mjs b/scripts/__tests__/test-module-installation.test.mjs
index e4d0e187b3..4a55a03469 100644
--- a/scripts/__tests__/test-module-installation.test.mjs
+++ b/scripts/__tests__/test-module-installation.test.mjs
@@ -445,6 +445,13 @@ for (const runner of ["test-rust-with-mock.sh", "test-rust-e2e.sh"]) {
const boxDir = join(root, "target/test-modules/tinybox/test-digest");
mkdirSync(boxDir, { recursive: true });
writeFileSync(join(boxDir, "libtinybox.so"), "fixture");
+ // The E2E runner stages these releases too. Cache them as well: staging
+ // stops on a download that fails, so an uncached one fails the runner.
+ for (const id of ["tinyconnectors", "tinyflows", "tinysearch"]) {
+ const dir = join(root, `target/test-modules/${id}/test-digest`);
+ mkdirSync(dir, { recursive: true });
+ writeFileSync(join(dir, `lib${id}_module.so`), "fixture");
+ }
// Evaluate the real runner branches with only external commands stubbed.
// A cached fixture avoids downloads while exercising the path export.
const cargoStub = `cargo_test() {