ci: retry release live smokes faster

This commit is contained in:
Peter Steinberger
2026-04-29 13:31:25 +01:00
parent 56d2749b5b
commit 7a69069bfc
4 changed files with 23 additions and 4 deletions

View File

@@ -30,6 +30,7 @@ import {
CROSS_OS_WINDOWS_GATEWAY_READY_TIMEOUT_MS,
CROSS_OS_DASHBOARD_FETCH_TIMEOUT_MS,
CROSS_OS_DASHBOARD_SMOKE_TIMEOUT_MS,
CROSS_OS_AGENT_TURN_TIMEOUT_SECONDS,
isImmutableReleaseRef,
looksLikeReleaseVersionRef,
normalizeRequestedRef,
@@ -120,6 +121,16 @@ describe("scripts/openclaw-cross-os-release-checks", () => {
),
),
).toBe(true);
expect(
shouldRetryCrossOsAgentTurnError(
new Error("gateway request timeout for agent after 210000ms"),
),
).toBe(true);
expect(
shouldRetryCrossOsAgentTurnError(
new Error("Command timed out and could not be terminated cleanly"),
),
).toBe(true);
});
it("allows cross-OS provider smoke models to use faster CI overrides", () => {
@@ -150,6 +161,8 @@ describe("scripts/openclaw-cross-os-release-checks", () => {
const source = readFileSync("scripts/openclaw-cross-os-release-checks.ts", "utf8");
expect(source).toContain('"--thinking",\n "minimal"');
expect(CROSS_OS_AGENT_TURN_TIMEOUT_SECONDS).toBeLessThanOrEqual(180);
expect(source).toContain('"--timeout",\n String(CROSS_OS_AGENT_TURN_TIMEOUT_SECONDS)');
expect(source.match(/buildReleaseAgentTurnArgs\(sessionId\)/g)?.length).toBeGreaterThanOrEqual(
2,
);

View File

@@ -132,7 +132,10 @@ describe("package artifact reuse", () => {
expect(workflow).toContain("OPENCLAW_LIVE_CLI_BACKEND_MODEL=codex-cli/gpt-5.5");
expect(workflow).toContain("OPENCLAW_LIVE_CLI_BACKEND_AUTH=api-key");
expect(workflow).toContain("OPENCLAW_LIVE_CLI_BACKEND_USE_CI_SAFE_CODEX_CONFIG=1");
expect(workflow).toContain('service_tier=\\"fast\\"');
expect((workflow.match(/service_tier=\\"fast\\"/g) ?? []).length).toBeGreaterThanOrEqual(2);
expect(workflow).not.toContain(
'OPENCLAW_LIVE_CLI_BACKEND_ARGS=["exec","--json","--color","never","--sandbox","danger-full-access","--skip-git-repo-check"]',
);
expect(workflow).toContain("bash .release-harness/scripts/ci-live-command-retry.sh");
expect(workflow).toContain("suite_id: native-live-src-gateway-core");
expect(workflow).toContain("suite_id: native-live-src-gateway-backends");