mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-18 09:24:45 +00:00
fix(release): stabilize slow live release gates
This commit is contained in:
@@ -56,12 +56,27 @@ const DEFAULT_MODEL =
|
||||
// The cron/MCP live probe now tolerates more cancelled tool-call retries in CI,
|
||||
// so the outer test budget needs enough headroom to finish those retries.
|
||||
const CLI_BACKEND_LIVE_TIMEOUT_MS = 20 * 60_000;
|
||||
const CLI_BACKEND_REQUEST_TIMEOUT_MS = 600_000;
|
||||
const CLI_BACKEND_REQUEST_TIMEOUT_MS = parsePositiveIntegerEnv(
|
||||
"OPENCLAW_LIVE_CLI_BACKEND_REQUEST_TIMEOUT_MS",
|
||||
15 * 60_000,
|
||||
);
|
||||
const CLI_BACKEND_AGENT_TIMEOUT_SECONDS = Math.max(
|
||||
1,
|
||||
Math.ceil(CLI_BACKEND_REQUEST_TIMEOUT_MS / 1000) - 10,
|
||||
);
|
||||
|
||||
function parsePositiveIntegerEnv(name: string, fallback: number): number {
|
||||
const raw = process.env[name]?.trim();
|
||||
if (!raw) {
|
||||
return fallback;
|
||||
}
|
||||
const value = Number(raw);
|
||||
if (!Number.isSafeInteger(value) || value <= 0) {
|
||||
throw new Error(`${name} must be a positive integer. Got: ${JSON.stringify(raw)}`);
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
function logCliBackendLiveStep(step: string, details?: Record<string, unknown>): void {
|
||||
if (!CLI_DEBUG) {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user