fix(test): keep Gemini CLI docker lane advisory · openclaw/openclaw@044df25
vincentkoc
·
2026-06-22
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -298,7 +298,7 @@ export const mainLanes = [
|
298 | 298 | "live-cli-backend-gemini", |
299 | 299 | liveDockerScriptCommand( |
300 | 300 | "test-live-cli-backend-docker.sh", |
301 | | -"OPENCLAW_LIVE_CLI_BACKEND_MODEL=google-gemini-cli/gemini-3-flash-preview", |
| 301 | +"OPENCLAW_LIVE_CLI_BACKEND_ADVISORY=1 OPENCLAW_LIVE_CLI_BACKEND_ALLOW_PROVIDER_SKIP=1 OPENCLAW_LIVE_CLI_BACKEND_MODEL=google-gemini-cli/gemini-3-flash-preview", |
302 | 302 | ), |
303 | 303 | { |
304 | 304 | cacheKey: "cli-backend-gemini", |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -487,6 +487,8 @@ DOCKER_RUN_ARGS+=(--rm -t \
|
487 | 487 | -e OPENCLAW_LIVE_TEST=1 \ |
488 | 488 | -e OPENCLAW_LIVE_CLI_BACKEND=1 \ |
489 | 489 | -e OPENCLAW_LIVE_CLI_BACKEND_DEBUG="${OPENCLAW_LIVE_CLI_BACKEND_DEBUG:-}" \ |
| 490 | + -e OPENCLAW_LIVE_CLI_BACKEND_ADVISORY="${OPENCLAW_LIVE_CLI_BACKEND_ADVISORY:-}" \ |
| 491 | + -e OPENCLAW_LIVE_CLI_BACKEND_ALLOW_PROVIDER_SKIP="${OPENCLAW_LIVE_CLI_BACKEND_ALLOW_PROVIDER_SKIP:-}" \ |
490 | 492 | -e OPENCLAW_CLI_BACKEND_LOG_OUTPUT="${OPENCLAW_CLI_BACKEND_LOG_OUTPUT:-}" \ |
491 | 493 | -e OPENCLAW_TEST_CONSOLE="${OPENCLAW_TEST_CONSOLE:-}" \ |
492 | 494 | -e OPENCLAW_LIVE_CLI_BACKEND_MODEL="$CLI_MODEL" \ |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -713,6 +713,17 @@ describe("scripts/lib/docker-e2e-plan", () => {
|
713 | 713 | } |
714 | 714 | }); |
715 | 715 | |
| 716 | +it("marks the aggregate Gemini CLI backend lane advisory for auth drift", () => { |
| 717 | +const plan = planFor({ selectedLaneNames: ["live-cli-backend-gemini"] }); |
| 718 | +const lane = requireFirstLane(plan); |
| 719 | + |
| 720 | +expect(lane.command).toContain("OPENCLAW_LIVE_CLI_BACKEND_ADVISORY=1"); |
| 721 | +expect(lane.command).toContain("OPENCLAW_LIVE_CLI_BACKEND_ALLOW_PROVIDER_SKIP=1"); |
| 722 | +expect(lane.command).toContain( |
| 723 | +"OPENCLAW_LIVE_CLI_BACKEND_MODEL=google-gemini-cli/gemini-3-flash-preview", |
| 724 | +); |
| 725 | +}); |
| 726 | + |
716 | 727 | it("plans Codex harness Docker-all lanes for API-key Testbox auth", () => { |
717 | 728 | for (const name of ["live-codex-harness", "live-codex-bind"]) { |
718 | 729 | const plan = planFor({ selectedLaneNames: [name] }); |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -32,6 +32,13 @@ describe("scripts/test-live-cli-backend-docker.sh", () => {
|
32 | 32 | expect(forwardedVars).toContain("OPENCLAW_TEST_CONSOLE"); |
33 | 33 | }); |
34 | 34 | |
| 35 | +it("forwards advisory provider-skip controls into the Docker container", () => { |
| 36 | +const forwardedVars = readForwardedDockerEnvVars(); |
| 37 | + |
| 38 | +expect(forwardedVars).toContain("OPENCLAW_LIVE_CLI_BACKEND_ADVISORY"); |
| 39 | +expect(forwardedVars).toContain("OPENCLAW_LIVE_CLI_BACKEND_ALLOW_PROVIDER_SKIP"); |
| 40 | +}); |
| 41 | + |
35 | 42 | it("rejects invalid setup timeout values before metadata or Docker setup", () => { |
36 | 43 | const result = spawnSync("bash", [SCRIPT_PATH], { |
37 | 44 | encoding: "utf8", |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。