mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 18:50:42 +00:00
ci: retry cross-os agent runtime deps staging
This commit is contained in:
@@ -41,6 +41,7 @@ import {
|
||||
shouldSkipInstallerDaemonHealthCheck,
|
||||
shouldStopManagedGatewayBeforeManualFallback,
|
||||
shouldRunMainChannelDevUpdate,
|
||||
shouldRetryCrossOsAgentTurnError,
|
||||
shouldUseManagedGatewayForInstallerRuntime,
|
||||
shouldUseManagedGatewayService,
|
||||
verifyDevUpdateStatus,
|
||||
@@ -83,6 +84,22 @@ describe("scripts/openclaw-cross-os-release-checks", () => {
|
||||
}
|
||||
});
|
||||
|
||||
it("retries transient bundled runtime deps staging failures during agent turns", () => {
|
||||
expect(
|
||||
shouldRetryCrossOsAgentTurnError(
|
||||
new Error("document-extract: failed to install bundled runtime deps: npm install failed"),
|
||||
),
|
||||
).toBe(true);
|
||||
expect(
|
||||
shouldRetryCrossOsAgentTurnError(
|
||||
new Error("document-extract failed to stage bundled runtime deps after 463ms"),
|
||||
),
|
||||
).toBe(true);
|
||||
expect(shouldRetryCrossOsAgentTurnError(new Error("Agent output did not contain OK."))).toBe(
|
||||
false,
|
||||
);
|
||||
});
|
||||
|
||||
it("treats explicit empty-string args as values instead of boolean flags", () => {
|
||||
expect(parseArgs(["--ubuntu-runner", "", "--mode", "both"])).toEqual({
|
||||
"ubuntu-runner": "",
|
||||
|
||||
Reference in New Issue
Block a user