fix(installer): count verify progress stage · openclaw/openclaw@102b2c1
vincentkoc
·
2026-05-24
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -7,7 +7,7 @@ Docs: https://docs.openclaw.ai
|
7 | 7 | ### Changes |
8 | 8 | |
9 | 9 | ### Fixes |
10 | | - |
| 10 | +- Installer: include the optional verify phase in the progress counter so `--verify` shows `[4/4] Verifying installation` instead of `[4/3]`. |
11 | 11 | - Tests: fail the kitchen-sink RPC Docker walk when gateway RSS sampling is unavailable instead of silently disabling the per-process memory guard. |
12 | 12 | - Tests: suppress the current Rolldown plugin timing warning format in the Vitest wrapper so tiny focused runs do not drown useful stderr in repeated build-timing noise. |
13 | 13 | - Models/OpenRouter: use endpoint-specific OpenRouter context limits from `top_provider` metadata so provider-routed models no longer overstate available context. (#85949) Thanks @TurboTheTurtle. |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -339,6 +339,14 @@ ui_error() {
|
339 | 339 | INSTALL_STAGE_TOTAL=3 |
340 | 340 | INSTALL_STAGE_CURRENT=0 |
341 | 341 | |
| 342 | +configure_install_stage_total() { |
| 343 | + INSTALL_STAGE_TOTAL=3 |
| 344 | + INSTALL_STAGE_CURRENT=0 |
| 345 | +if [[ "${VERIFY_INSTALL:-0}" == "1" ]]; then |
| 346 | + INSTALL_STAGE_TOTAL=4 |
| 347 | +fi |
| 348 | +} |
| 349 | + |
342 | 350 | ui_section() { |
343 | 351 | local title="$1" |
344 | 352 | if [[ -n "$GUM" ]]; then |
@@ -3126,6 +3134,7 @@ main() {
|
3126 | 3134 | |
3127 | 3135 | if [[ "${OPENCLAW_INSTALL_SH_NO_RUN:-0}" != "1" ]]; then |
3128 | 3136 | parse_args "$@" |
| 3137 | + configure_install_stage_total |
3129 | 3138 | configure_verbose |
3130 | 3139 | main |
3131 | 3140 | fi |
| Original file line number | Diff line number | Diff line change |
|---|
@@ -148,6 +148,25 @@ describe("install.sh", () => {
|
148 | 148 | ); |
149 | 149 | }); |
150 | 150 | |
| 151 | +it("counts the verify stage when --verify is enabled", () => { |
| 152 | +const result = runInstallShell( |
| 153 | +[ |
| 154 | +`source ${JSON.stringify(SCRIPT_PATH)}`, |
| 155 | +"parse_args --verify", |
| 156 | +"configure_install_stage_total", |
| 157 | +'ui_stage "Preparing environment"', |
| 158 | +'ui_stage "Installing OpenClaw"', |
| 159 | +'ui_stage "Finalizing setup"', |
| 160 | +'ui_stage "Verifying installation"', |
| 161 | +].join("\n"), |
| 162 | +{ TERM: "dumb" }, |
| 163 | +); |
| 164 | + |
| 165 | +expect(result.status).toBe(0); |
| 166 | +expect(result.stdout).toContain("[4/4] Verifying installation"); |
| 167 | +expect(result.stdout).not.toContain("[4/3] Verifying installation"); |
| 168 | +}); |
| 169 | + |
151 | 170 | it("loads nvm before checking Node.js so stale system Node does not win", () => { |
152 | 171 | expect(script).toMatch( |
153 | 172 | /# Step 2: Node\.js\s+load_nvm_for_node_detection\s+if ! check_node; then/, |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。