fix(release): speed windows upgrade fallback · openclaw/openclaw@1342727
steipete
·
2026-05-28
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -978,6 +978,7 @@ async function runUpgradeLane(params) {
|
978 | 978 | env, |
979 | 979 | packageSpec: params.candidateUrl, |
980 | 980 | logPath: join(params.logsDir, "upgrade-update-fallback-install.log"), |
| 981 | +ignoreScripts: true, |
981 | 982 | }); |
982 | 983 | }); |
983 | 984 | } else { |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -371,6 +371,16 @@ describe("scripts/openclaw-cross-os-release-checks", () => {
|
371 | 371 | ]); |
372 | 372 | }); |
373 | 373 | |
| 374 | +it("keeps the Windows packaged-upgrade fallback install out of npm lifecycle scripts", () => { |
| 375 | +const source = readFileSync("scripts/openclaw-cross-os-release-checks.ts", "utf8"); |
| 376 | +const fallbackInstallSource = source.slice( |
| 377 | +source.indexOf('runTimedLanePhase(lane, "update-fallback-install"'), |
| 378 | +source.indexOf('runTimedLanePhase(lane, "update-status"'), |
| 379 | +); |
| 380 | + |
| 381 | +expect(fallbackInstallSource).toContain("ignoreScripts: true"); |
| 382 | +}); |
| 383 | + |
374 | 384 | it("keeps packaged-upgrade release updates out of service restart flow", () => { |
375 | 385 | const args = buildPackagedUpgradeUpdateArgs("http://127.0.0.1:49152/openclaw-current.tgz"); |
376 | 386 | expect(args.slice(0, 6)).toEqual([ |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。