fix(e2e): extend kitchen rpc watchdog

This commit is contained in:
Vincent Koc
2026-06-19 04:21:07 +02:00
parent 459bcd6198
commit eedb6678f1
4 changed files with 20 additions and 14 deletions
+3 -1
View File
@@ -7,7 +7,9 @@ source "$ROOT_DIR/scripts/lib/docker-e2e-image.sh"
IMAGE_NAME="$(docker_e2e_resolve_image "openclaw-kitchen-sink-rpc-e2e" OPENCLAW_KITCHEN_SINK_RPC_E2E_IMAGE)"
MAX_MEMORY_MIB="$(docker_e2e_read_nonnegative_decimal_env OPENCLAW_KITCHEN_SINK_MAX_MEMORY_MIB 2048)"
MAX_CPU_PERCENT="$(docker_e2e_read_nonnegative_decimal_env OPENCLAW_KITCHEN_SINK_MAX_CPU_PERCENT 1200)"
DOCKER_RUN_TIMEOUT="${OPENCLAW_KITCHEN_SINK_RPC_DOCKER_RUN_TIMEOUT:-900s}"
# Keep the outer Docker watchdog above the walker's install, enable, inspect,
# readiness, and first-RPC retry budgets so inner failures stay diagnostic.
DOCKER_RUN_TIMEOUT="${OPENCLAW_KITCHEN_SINK_RPC_DOCKER_RUN_TIMEOUT:-1500s}"
CONTAINER_NAME="openclaw-kitchen-sink-rpc-e2e-$$"
RUN_LOG="$(mktemp "${TMPDIR:-/tmp}/openclaw-kitchen-sink-rpc.XXXXXX")"
STATS_LOG="$(mktemp "${TMPDIR:-/tmp}/openclaw-kitchen-sink-rpc-stats.XXXXXX")"
+8 -12
View File
@@ -255,7 +255,7 @@ function kitchenSinkRpcLane() {
{
resources: ["npm"],
stateScenario: "empty",
timeoutMs: 15 * 60 * 1000,
timeoutMs: 25 * 60 * 1000,
weight: 3,
},
);
@@ -521,17 +521,13 @@ export const mainLanes = [
lane("commitments-safety", "OPENCLAW_SKIP_DOCKER_BUILD=1 pnpm test:docker:commitments-safety", {
stateScenario: "empty",
}),
liveLane(
"npm-telegram-live",
"OPENCLAW_SKIP_DOCKER_BUILD=1 pnpm test:docker:npm-telegram-live",
{
e2eImageKind: "bare",
provider: "openai",
resources: ["live:telegram", "npm", "service"],
timeoutMs: 30 * 60 * 1000,
weight: 3,
},
),
liveLane("npm-telegram-live", "OPENCLAW_SKIP_DOCKER_BUILD=1 pnpm test:docker:npm-telegram-live", {
e2eImageKind: "bare",
provider: "openai",
resources: ["live:telegram", "npm", "service"],
timeoutMs: 30 * 60 * 1000,
weight: 3,
}),
lane("qr", "pnpm test:docker:qr"),
];
+8
View File
@@ -3580,6 +3580,14 @@ output="$(cat "$sampler_log")"
expect(missing).toEqual([]);
});
it("keeps the kitchen-sink RPC Docker watchdog above the internal walk budgets", () => {
const runner = readFileSync(KITCHEN_SINK_RPC_DOCKER_E2E_PATH, "utf8");
expect(runner).toContain(
'DOCKER_RUN_TIMEOUT="${OPENCLAW_KITCHEN_SINK_RPC_DOCKER_RUN_TIMEOUT:-1500s}"',
);
});
it("bounds kitchen-sink plugin CLI commands inside the Docker sweep", () => {
const runner = readFileSync(KITCHEN_SINK_PLUGIN_DOCKER_E2E_PATH, "utf8");
const sweep = readFileSync("scripts/e2e/lib/kitchen-sink-plugin/sweep.sh", "utf8");
+1 -1
View File
@@ -397,7 +397,7 @@ describe("scripts/lib/docker-e2e-plan", () => {
name: "kitchen-sink-rpc",
resources: ["docker", "service", "npm"],
stateScenario: "empty",
timeoutMs: 900_000,
timeoutMs: 1_500_000,
weight: 3,
},
{