fix(e2e): bound bundled plugin lifecycle commands

This commit is contained in:
Vincent Koc
2026-06-01 19:18:21 +02:00
parent 16807824cc
commit 83cd3cbe2a
4 changed files with 34 additions and 8 deletions

View File

@@ -201,6 +201,15 @@ describe("bundled plugin install/uninstall probe", () => {
expect(sweep).not.toContain("readarray ");
});
it("bounds bundled plugin package lifecycle commands", () => {
const sweep = fs.readFileSync(sweepPath, "utf8");
expect(sweep).toContain("OPENCLAW_BUNDLED_PLUGIN_SWEEP_COMMAND_TIMEOUT:-300s");
expect(sweep.match(/openclaw_e2e_maybe_timeout/g)).toHaveLength(1);
expect(sweep).toContain('run_logged_sweep_command "install $plugin_id"');
expect(sweep).toContain('run_logged_sweep_command "uninstall $plugin_id"');
});
it("keeps runtime command output capture bounded", async () => {
const runtimeSmoke = await import(pathToFileURL(runtimeSmokePath).href);

View File

@@ -1696,6 +1696,7 @@ test -f "$TMPDIR/docker-cmd-seen"
expect(runner).toContain("OPENCLAW_BUNDLED_PLUGIN_SWEEP_TOTAL");
expect(runner).toContain("OPENCLAW_BUNDLED_PLUGIN_SWEEP_INDEX");
expect(runner).toContain("OPENCLAW_BUNDLED_PLUGIN_SWEEP_COMMAND_TIMEOUT");
expect(runner).toContain("OPENCLAW_BUNDLED_PLUGIN_RUNTIME_READY_MS");
expect(runner).toContain("OPENCLAW_PLUGIN_LIFECYCLE_TRACE");
expect(runner).toContain("scripts/e2e/lib/bundled-plugin-install-uninstall/sweep.sh");