mirror of
https://github.com/openclaw/openclaw.git
synced 2026-06-06 05:51:15 +08:00
fix(e2e): show plugins docker sweep progress
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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 \
|
||||
"$@"
|
||||
}
|
||||
|
||||
@@ -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");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user