From 4ce031fd1a6684b8cab485f2c3649d0923592a23 Mon Sep 17 00:00:00 2001 From: Vincent Koc Date: Fri, 1 May 2026 01:14:43 -0700 Subject: [PATCH] test(e2e): share runtime deps across matrix probes --- .../e2e/lib/bundled-plugin-install-uninstall/runtime-smoke.mjs | 1 + scripts/e2e/lib/bundled-plugin-install-uninstall/sweep.sh | 2 ++ 2 files changed, 3 insertions(+) diff --git a/scripts/e2e/lib/bundled-plugin-install-uninstall/runtime-smoke.mjs b/scripts/e2e/lib/bundled-plugin-install-uninstall/runtime-smoke.mjs index 5729bc89f35..73071e79fd8 100644 --- a/scripts/e2e/lib/bundled-plugin-install-uninstall/runtime-smoke.mjs +++ b/scripts/e2e/lib/bundled-plugin-install-uninstall/runtime-smoke.mjs @@ -469,6 +469,7 @@ function assertNoPostReadyRuntimeDepsWork(logPath, readyIndex) { function assertNoRuntimeDepsLocks() { const roots = [ + ...(process.env.OPENCLAW_PLUGIN_STAGE_DIR ? [process.env.OPENCLAW_PLUGIN_STAGE_DIR] : []), path.join( process.env.OPENCLAW_STATE_DIR || path.join(process.env.HOME || os.homedir(), ".openclaw"), "plugin-runtime-deps", diff --git a/scripts/e2e/lib/bundled-plugin-install-uninstall/sweep.sh b/scripts/e2e/lib/bundled-plugin-install-uninstall/sweep.sh index c778557077a..bbd0ca243e9 100644 --- a/scripts/e2e/lib/bundled-plugin-install-uninstall/sweep.sh +++ b/scripts/e2e/lib/bundled-plugin-install-uninstall/sweep.sh @@ -15,6 +15,8 @@ fi export OPENCLAW_ENTRY openclaw_e2e_eval_test_state_from_b64 "${OPENCLAW_TEST_STATE_SCRIPT_B64:?missing OPENCLAW_TEST_STATE_SCRIPT_B64}" +export OPENCLAW_PLUGIN_STAGE_DIR="${OPENCLAW_PLUGIN_STAGE_DIR:-$HOME/.openclaw/plugin-runtime-deps}" +mkdir -p "$OPENCLAW_PLUGIN_STAGE_DIR" probe="scripts/e2e/lib/bundled-plugin-install-uninstall/probe.mjs" runtime_smoke="scripts/e2e/lib/bundled-plugin-install-uninstall/runtime-smoke.mjs"