mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 12:40:43 +00:00
test(release): extend cli backend live timeout
This commit is contained in:
@@ -56,12 +56,24 @@ 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 = 240_000;
|
||||
const CLI_BACKEND_REQUEST_TIMEOUT_MS = resolvePositiveIntEnv(
|
||||
"OPENCLAW_LIVE_CLI_BACKEND_REQUEST_TIMEOUT_MS",
|
||||
360_000,
|
||||
);
|
||||
const CLI_BACKEND_AGENT_TIMEOUT_SECONDS = Math.max(
|
||||
1,
|
||||
Math.ceil(CLI_BACKEND_REQUEST_TIMEOUT_MS / 1000) - 10,
|
||||
);
|
||||
|
||||
function resolvePositiveIntEnv(name: string, fallback: number): number {
|
||||
const value = process.env[name];
|
||||
if (!value) {
|
||||
return fallback;
|
||||
}
|
||||
const parsed = Number(value);
|
||||
return Number.isFinite(parsed) && parsed > 0 ? Math.floor(parsed) : fallback;
|
||||
}
|
||||
|
||||
function logCliBackendLiveStep(step: string, details?: Record<string, unknown>): void {
|
||||
if (!CLI_DEBUG) {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user