Skip to content

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

test(ci): update e2e build script and tests

Steven Enamakel3d3e5b5d0803
diff --git a/app/scripts/e2e-web-build.sh b/app/scripts/e2e-web-build.sh
index fd269ef501..57e047d70f 100755
--- a/app/scripts/e2e-web-build.sh
+++ b/app/scripts/e2e-web-build.sh
@@ -75,4 +75,5 @@ echo "Building standalone openhuman-core for web E2E into ${E2E_WEB_CORE_TARGET_
# The web suite exercises the shipped desktop surface, so compile the same
# explicit product gates that the Tauri shell and product CI lanes forward.
PRODUCT_FEATURES="$(bash "$REPO_ROOT/scripts/ci/product-features.sh")"
-bash "$REPO_ROOT/scripts/ci-cancel-aware.sh" "$CARGO_BIN" build --manifest-path "$REPO_ROOT/Cargo.toml" --target-dir "$E2E_WEB_CORE_TARGET_DIR" --bin openhuman-core --features "$PRODUCT_FEATURES"
+E2E_FEATURES="${PRODUCT_FEATURES},e2e-test-support"
+bash "$REPO_ROOT/scripts/ci-cancel-aware.sh" "$CARGO_BIN" build --manifest-path "$REPO_ROOT/Cargo.toml" --target-dir "$E2E_WEB_CORE_TARGET_DIR" --bin openhuman-core --features "$E2E_FEATURES"
diff --git a/scripts/__tests__/e2e-web-bundle-guard.test.mjs b/scripts/__tests__/e2e-web-bundle-guard.test.mjs
index 5a2b1e5c82..aca597a2cc 100644
--- a/scripts/__tests__/e2e-web-bundle-guard.test.mjs
+++ b/scripts/__tests__/e2e-web-bundle-guard.test.mjs
@@ -341,6 +341,11 @@ test("e2e-web-build.sh marks the bundle it builds, recording the E2E settings",
assert.match(recorded, /^VITE_OPENHUMAN_E2E_DEFAULT_CORE_MODE=cloud$/m);
assert.match(recorded, /^VITE_BACKEND_URL=http:\/\/127\.0\.0\.1:18473$/m);
assert.match(recorded, /^VITE_OPENHUMAN_CORE_RPC_URL=http:\/\/127\.0\.0\.1:17788\/rpc$/m);
+ const cargoBuild = tree.calls().find((call) => call.startsWith("cargo "));
+ assert.ok(cargoBuild, "web E2E build invokes Cargo for the standalone core");
+ assert.match(cargoBuild, /--target-dir [^ ]*target\/e2e-web-test-triple/);
+ assert.match(cargoBuild, /--features voice,e2e-test-support/);
+ assert.doesNotMatch(cargoBuild, /CARGO_TARGET_DIR=/);
} finally {
tree.cleanup();
}