fix(e2e): show plugins docker sweep progress

This commit is contained in:
Vincent Koc
2026-05-31 15:52:53 +02:00
parent f2ace9ff4e
commit 0833c68b1b
3 changed files with 26 additions and 1 deletions

View File

@@ -37,6 +37,10 @@ if [[ "${OPENCLAW_PLUGINS_E2E_LIVE_CLAWHUB:-0}" = "1" ]]; then
fi
echo "Running plugins Docker E2E..."
docker_e2e_run_logged_with_harness plugins-run "${DOCKER_ENV_ARGS[@]}" "$IMAGE_NAME" bash scripts/e2e/lib/plugins/sweep.sh
docker_e2e_run_logged_print_with_harness \
plugins-run \
"${DOCKER_ENV_ARGS[@]}" \
"$IMAGE_NAME" \
bash scripts/e2e/lib/plugins/sweep.sh
echo "OK"

View File

@@ -158,3 +158,13 @@ docker_e2e_run_logged_with_harness() {
shift
run_logged "$label" docker_e2e_run_with_harness "$@"
}
docker_e2e_run_logged_print_with_harness() {
local label="$1"
shift
run_logged_print_heartbeat \
"$label" \
"${OPENCLAW_DOCKER_E2E_LOG_HEARTBEAT_SECONDS:-30}" \
docker_e2e_run_with_harness \
"$@"
}

View File

@@ -1343,6 +1343,17 @@ test -f "$TMPDIR/docker-cmd-seen"
expect(runner).not.toContain("docker run --rm");
});
it("prints plugins Docker E2E logs on successful runs", () => {
const helper = readFileSync(DOCKER_E2E_PACKAGE_HELPER_PATH, "utf8");
const runner = readFileSync(PLUGINS_DOCKER_E2E_PATH, "utf8");
expect(helper).toContain("docker_e2e_run_logged_print_with_harness()");
expect(helper).toContain("run_logged_print_heartbeat \\");
expect(helper).toContain("OPENCLAW_DOCKER_E2E_LOG_HEARTBEAT_SECONDS");
expect(runner).toContain("docker_e2e_run_logged_print_with_harness \\");
expect(runner).not.toContain("docker_e2e_run_logged_with_harness plugins-run");
});
it("includes procps in the shared Docker E2E image for process watchdogs", () => {
const dockerfile = readFileSync("scripts/e2e/Dockerfile", "utf8");