test(docker): skip bootstrap ritual in install smoke · openclaw/openclaw@6d0e84a
steipete
·
2026-04-27
·
via Recent Commits to openclaw:main
File tree
scripts/docker/install-sh-e2e
| Original file line number | Diff line number | Diff line change |
|---|
|
1 | 1 | #!/usr/bin/env bash |
| 2 | +# Official installer E2E harness for Docker. |
| 3 | +# |
| 4 | +# Installs OpenClaw through the public one-liner, verifies the resolved npm |
| 5 | +# version, then exercises onboard + local embedded agent tool turns for the |
| 6 | +# configured model providers. Keep this script package-install based: it should |
| 7 | +# validate the installed npm artifact, not repo sources. |
2 | 8 | set -euo pipefail |
3 | 9 | |
4 | 10 | SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" |
@@ -496,6 +502,10 @@ run_profile() {
|
496 | 502 | test -f "$workspace/USER.md" |
497 | 503 | test -f "$workspace/SOUL.md" |
498 | 504 | test -f "$workspace/TOOLS.md" |
| 505 | +# The remaining checks are deterministic tool smokes, not the interactive |
| 506 | +# first-run identity ritual. Drop BOOTSTRAP.md so provider prompts stay focused |
| 507 | +# on the fixture task and do not spend turns following onboarding copy. |
| 508 | + rm -f "$workspace/BOOTSTRAP.md" |
499 | 509 | |
500 | 510 | echo "==> Configure models ($profile)" |
501 | 511 | local agent_model |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -68,4 +68,13 @@ describe("docker build helper", () => {
|
68 | 68 | 'OPENCLAW_VERSION="$INSTALL_TAG" curl -fsSL "$INSTALL_URL" | bash', |
69 | 69 | ); |
70 | 70 | }); |
| 71 | + |
| 72 | +it("keeps installer E2E agent turns out of the interactive bootstrap ritual", () => { |
| 73 | +const runner = readFileSync(INSTALL_E2E_RUNNER_PATH, "utf8"); |
| 74 | + |
| 75 | +expect(runner).toContain('rm -f "$workspace/BOOTSTRAP.md"'); |
| 76 | +expect(runner.indexOf('rm -f "$workspace/BOOTSTRAP.md"')).toBeLessThan( |
| 77 | +runner.indexOf('echo "==> Agent turns ($profile)"'), |
| 78 | +); |
| 79 | +}); |
71 | 80 | }); |
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。