MCPcopy Create free account
hub / github.com/github/gh-aw / shouldRetryLocal

Function shouldRetryLocal

actions/setup/js/copilot_harness.test.cjs:379–384  ·  view source on GitHub ↗
(r, attempt)

Source from the content-addressed store, hash-verified

377 };
378 const MAX_RETRIES = 3;
379 const shouldRetryLocal = (r, attempt) => {
380 if (r.exitCode === 0) return false;
381 if (hasNumerousPermissionDeniedIssues(r.output)) return false;
382 if (isCAPIQuotaExceededError(r.output)) return false;
383 return attempt < MAX_RETRIES && r.hasOutput;
384 };
385 expect(shouldRetryLocal(result, 0)).toBe(true);
386 });
387

Callers 1

Calls 2

isCAPIQuotaExceededErrorFunction · 0.85

Tested by

no test coverage detected