fix(e2e): bound scenario client logs

This commit is contained in:
Vincent Koc 2026-06-07 11:48:05 +02:00
parent 5d7e0b73a7
commit cdbf6d95ac
No known key found for this signature in database
3 changed files with 13 additions and 2 deletions

View file

@ -52,5 +52,5 @@ openclaw_e2e_wait_gateway_ready "$gateway_pid" "$GATEWAY_LOG" 480 "$PORT"
PORT="$PORT" OPENCLAW_GATEWAY_TOKEN="$TOKEN" \
tsx scripts/e2e/lib/codex-media-path/client.mjs >"$CLIENT_LOG" 2>&1
cat "$CLIENT_LOG"
openclaw_e2e_print_log "$CLIENT_LOG"
echo "Codex media-path Docker E2E passed"

View file

@ -82,5 +82,5 @@ node "$entry" gateway health \
PORT="$PORT" OPENCLAW_GATEWAY_TOKEN="$TOKEN" MODEL_REF="$MODEL_REF" \
node scripts/e2e/lib/openai-chat-tools/client.mjs >"$CLIENT_LOG" 2>&1
cat "$CLIENT_LOG"
openclaw_e2e_print_log "$CLIENT_LOG"
echo "OpenAI Chat Completions tools Docker E2E passed"

View file

@ -36,6 +36,7 @@ const KITCHEN_SINK_PLUGIN_DOCKER_E2E_PATH = "scripts/e2e/kitchen-sink-plugin-doc
const KITCHEN_SINK_RPC_DOCKER_E2E_PATH = "scripts/e2e/kitchen-sink-rpc-docker.sh";
const CODEX_ON_DEMAND_DOCKER_E2E_PATH = "scripts/e2e/codex-on-demand-docker.sh";
const CODEX_MEDIA_PATH_SCENARIO_PATH = "scripts/e2e/lib/codex-media-path/scenario.sh";
const OPENAI_CHAT_TOOLS_SCENARIO_PATH = "scripts/e2e/lib/openai-chat-tools/scenario.sh";
const CODEX_NPM_PLUGIN_LIVE_DOCKER_E2E_PATH = "scripts/e2e/codex-npm-plugin-live-docker.sh";
const CODEX_NPM_PLUGIN_LIVE_ASSERTIONS_PATH =
"scripts/e2e/lib/codex-npm-plugin-live/assertions.mjs";
@ -201,6 +202,16 @@ describe("docker build helper", () => {
}
});
it("prints in-container Docker client logs through bounded helpers", () => {
for (const scriptPath of [CODEX_MEDIA_PATH_SCENARIO_PATH, OPENAI_CHAT_TOOLS_SCENARIO_PATH]) {
const script = readFileSync(scriptPath, "utf8");
expect(script, scriptPath).toContain("source scripts/lib/openclaw-e2e-instance.sh");
expect(script, scriptPath).toContain('openclaw_e2e_print_log "$CLIENT_LOG"');
expect(script, scriptPath).not.toContain('cat "$CLIENT_LOG"');
}
});
it("runs cleanup smoke on the native ARM platform instead of pulling an amd64 tag", () => {
expect(runCleanupDefaultPlatform({ CI: "true" }, "aarch64")).toBe("linux/arm64");
expect(runCleanupDefaultPlatform({ GITHUB_ACTIONS: "true" }, "x86_64")).toBe("linux/amd64");