ci: avoid pnpm prompts in live docker tests · openclaw/openclaw@f1ddaf4
steipete
·
2026-05-13
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -232,7 +232,7 @@ openclaw_live_stage_state_dir "$tmp_dir/.openclaw-state"
|
232 | 232 | openclaw_live_prepare_staged_config |
233 | 233 | cd "$tmp_dir" |
234 | 234 | export OPENCLAW_LIVE_ACP_BIND_AGENT_COMMAND="${OPENCLAW_LIVE_ACP_BIND_AGENT_COMMAND:-}" |
235 | | -pnpm test:live src/gateway/gateway-acp-bind.live.test.ts |
| 235 | +node scripts/test-live.mjs -- src/gateway/gateway-acp-bind.live.test.ts |
236 | 236 | EOF |
237 | 237 | |
238 | 238 | openclaw_live_acp_bind_append_build_extension acpx |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -439,7 +439,7 @@ if [ "$provider" = "codex-cli" ] && [ "${OPENCLAW_LIVE_CLI_BACKEND_AUTH:-auto}"
|
439 | 439 | fi |
440 | 440 | echo "==> Direct Codex CLI probe ok" |
441 | 441 | fi |
442 | | -pnpm test:live src/gateway/gateway-cli-backend.live.test.ts |
| 442 | +node scripts/test-live.mjs -- src/gateway/gateway-cli-backend.live.test.ts |
443 | 443 | EOF |
444 | 444 | |
445 | 445 | OPENCLAW_LIVE_DOCKER_REPO_ROOT="$ROOT_DIR" "$TRUSTED_HARNESS_DIR/scripts/test-live-build-docker.sh" |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -253,7 +253,7 @@ if ! "$NPM_CONFIG_PREFIX/bin/codex" exec \
|
253 | 253 | cat "$codex_preflight_log" >&2 |
254 | 254 | exit 1 |
255 | 255 | fi |
256 | | -pnpm test:live ${OPENCLAW_LIVE_CODEX_TEST_FILES:-src/gateway/gateway-codex-harness.live.test.ts} |
| 256 | +node scripts/test-live.mjs -- ${OPENCLAW_LIVE_CODEX_TEST_FILES:-src/gateway/gateway-codex-harness.live.test.ts} |
257 | 257 | EOF |
258 | 258 | |
259 | 259 | openclaw_live_codex_harness_append_build_extension codex |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -162,7 +162,7 @@ openclaw_live_link_runtime_tree "$tmp_dir"
|
162 | 162 | openclaw_live_stage_state_dir "$tmp_dir/.openclaw-state" |
163 | 163 | openclaw_live_prepare_staged_config |
164 | 164 | cd "$tmp_dir" |
165 | | -pnpm test:live:gateway-profiles |
| 165 | +node scripts/test-live.mjs -- src/gateway/gateway-models.profiles.live.test.ts |
166 | 166 | EOF |
167 | 167 | |
168 | 168 | OPENCLAW_LIVE_DOCKER_REPO_ROOT="$ROOT_DIR" "$TRUSTED_HARNESS_DIR/scripts/test-live-build-docker.sh" |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -187,7 +187,7 @@ openclaw_live_link_runtime_tree "$tmp_dir"
|
187 | 187 | openclaw_live_stage_state_dir "$tmp_dir/.openclaw-state" |
188 | 188 | openclaw_live_prepare_staged_config |
189 | 189 | cd "$tmp_dir" |
190 | | -pnpm test:live:models-profiles |
| 190 | +node scripts/test-live.mjs -- src/agents/models.profiles.live.test.ts |
191 | 191 | EOF |
192 | 192 | |
193 | 193 | OPENCLAW_LIVE_DOCKER_REPO_ROOT="$ROOT_DIR" "$TRUSTED_HARNESS_DIR/scripts/test-live-build-docker.sh" |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -20,6 +20,9 @@ for (const arg of process.argv.slice(2)) {
|
20 | 20 | |
21 | 21 | const env = { |
22 | 22 | ...process.env, |
| 23 | +CI: process.env.CI || "1", |
| 24 | +PNPM_CONFIG_VERIFY_DEPS_BEFORE_RUN: process.env.PNPM_CONFIG_VERIFY_DEPS_BEFORE_RUN || "false", |
| 25 | +pnpm_config_verify_deps_before_run: process.env.pnpm_config_verify_deps_before_run || "false", |
23 | 26 | OPENCLAW_LIVE_TEST: process.env.OPENCLAW_LIVE_TEST || "1", |
24 | 27 | OPENCLAW_LIVE_TEST_QUIET: quietOverride ?? process.env.OPENCLAW_LIVE_TEST_QUIET ?? "1", |
25 | 28 | }; |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -13,6 +13,15 @@ function readForwardedDockerEnvVars(): string[] {
|
13 | 13 | } |
14 | 14 | |
15 | 15 | describe("scripts/test-live-cli-backend-docker.sh", () => { |
| 16 | +it("runs the staged live test without invoking pnpm inside Docker", () => { |
| 17 | +const script = fs.readFileSync(SCRIPT_PATH, "utf8"); |
| 18 | + |
| 19 | +expect(script).toContain( |
| 20 | +"node scripts/test-live.mjs -- src/gateway/gateway-cli-backend.live.test.ts", |
| 21 | +); |
| 22 | +expect(script).not.toContain("pnpm test:live src/gateway/gateway-cli-backend.live.test.ts"); |
| 23 | +}); |
| 24 | + |
16 | 25 | it("forwards both fresh and resume CLI arg overrides into the Docker container", () => { |
17 | 26 | const forwardedVars = readForwardedDockerEnvVars(); |
18 | 27 | |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。