mirror of
https://github.com/moltbot/moltbot.git
synced 2026-05-13 15:47:28 +00:00
ci: avoid pnpm prompts in live docker tests
This commit is contained in:
@@ -232,7 +232,7 @@ openclaw_live_stage_state_dir "$tmp_dir/.openclaw-state"
|
||||
openclaw_live_prepare_staged_config
|
||||
cd "$tmp_dir"
|
||||
export OPENCLAW_LIVE_ACP_BIND_AGENT_COMMAND="${OPENCLAW_LIVE_ACP_BIND_AGENT_COMMAND:-}"
|
||||
pnpm test:live src/gateway/gateway-acp-bind.live.test.ts
|
||||
node scripts/test-live.mjs -- src/gateway/gateway-acp-bind.live.test.ts
|
||||
EOF
|
||||
|
||||
openclaw_live_acp_bind_append_build_extension acpx
|
||||
|
||||
@@ -439,7 +439,7 @@ if [ "$provider" = "codex-cli" ] && [ "${OPENCLAW_LIVE_CLI_BACKEND_AUTH:-auto}"
|
||||
fi
|
||||
echo "==> Direct Codex CLI probe ok"
|
||||
fi
|
||||
pnpm test:live src/gateway/gateway-cli-backend.live.test.ts
|
||||
node scripts/test-live.mjs -- src/gateway/gateway-cli-backend.live.test.ts
|
||||
EOF
|
||||
|
||||
OPENCLAW_LIVE_DOCKER_REPO_ROOT="$ROOT_DIR" "$TRUSTED_HARNESS_DIR/scripts/test-live-build-docker.sh"
|
||||
|
||||
@@ -253,7 +253,7 @@ if ! "$NPM_CONFIG_PREFIX/bin/codex" exec \
|
||||
cat "$codex_preflight_log" >&2
|
||||
exit 1
|
||||
fi
|
||||
pnpm test:live ${OPENCLAW_LIVE_CODEX_TEST_FILES:-src/gateway/gateway-codex-harness.live.test.ts}
|
||||
node scripts/test-live.mjs -- ${OPENCLAW_LIVE_CODEX_TEST_FILES:-src/gateway/gateway-codex-harness.live.test.ts}
|
||||
EOF
|
||||
|
||||
openclaw_live_codex_harness_append_build_extension codex
|
||||
|
||||
@@ -162,7 +162,7 @@ openclaw_live_link_runtime_tree "$tmp_dir"
|
||||
openclaw_live_stage_state_dir "$tmp_dir/.openclaw-state"
|
||||
openclaw_live_prepare_staged_config
|
||||
cd "$tmp_dir"
|
||||
pnpm test:live:gateway-profiles
|
||||
node scripts/test-live.mjs -- src/gateway/gateway-models.profiles.live.test.ts
|
||||
EOF
|
||||
|
||||
OPENCLAW_LIVE_DOCKER_REPO_ROOT="$ROOT_DIR" "$TRUSTED_HARNESS_DIR/scripts/test-live-build-docker.sh"
|
||||
|
||||
@@ -187,7 +187,7 @@ openclaw_live_link_runtime_tree "$tmp_dir"
|
||||
openclaw_live_stage_state_dir "$tmp_dir/.openclaw-state"
|
||||
openclaw_live_prepare_staged_config
|
||||
cd "$tmp_dir"
|
||||
pnpm test:live:models-profiles
|
||||
node scripts/test-live.mjs -- src/agents/models.profiles.live.test.ts
|
||||
EOF
|
||||
|
||||
OPENCLAW_LIVE_DOCKER_REPO_ROOT="$ROOT_DIR" "$TRUSTED_HARNESS_DIR/scripts/test-live-build-docker.sh"
|
||||
|
||||
@@ -20,6 +20,9 @@ for (const arg of process.argv.slice(2)) {
|
||||
|
||||
const env = {
|
||||
...process.env,
|
||||
CI: process.env.CI || "1",
|
||||
PNPM_CONFIG_VERIFY_DEPS_BEFORE_RUN: process.env.PNPM_CONFIG_VERIFY_DEPS_BEFORE_RUN || "false",
|
||||
pnpm_config_verify_deps_before_run: process.env.pnpm_config_verify_deps_before_run || "false",
|
||||
OPENCLAW_LIVE_TEST: process.env.OPENCLAW_LIVE_TEST || "1",
|
||||
OPENCLAW_LIVE_TEST_QUIET: quietOverride ?? process.env.OPENCLAW_LIVE_TEST_QUIET ?? "1",
|
||||
};
|
||||
|
||||
@@ -13,6 +13,15 @@ function readForwardedDockerEnvVars(): string[] {
|
||||
}
|
||||
|
||||
describe("scripts/test-live-cli-backend-docker.sh", () => {
|
||||
it("runs the staged live test without invoking pnpm inside Docker", () => {
|
||||
const script = fs.readFileSync(SCRIPT_PATH, "utf8");
|
||||
|
||||
expect(script).toContain(
|
||||
"node scripts/test-live.mjs -- src/gateway/gateway-cli-backend.live.test.ts",
|
||||
);
|
||||
expect(script).not.toContain("pnpm test:live src/gateway/gateway-cli-backend.live.test.ts");
|
||||
});
|
||||
|
||||
it("forwards both fresh and resume CLI arg overrides into the Docker container", () => {
|
||||
const forwardedVars = readForwardedDockerEnvVars();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user