mirror of
https://github.com/stablyai/orca.git
synced 2026-11-16 10:58:10 +00:00
* fix(github): stop PR pages from hanging when the rate-limit cache expires Slot holders await assertRateLimitBudget -> getRateLimit while holding a gh semaphore slot, and the /rate_limit probe queued for a slot behind them. With all four slots held by budget waiters nothing ever released. The probe is quota-exempt and deduped, so it no longer takes a slot. * fix(github): bound rate-limit probe concurrency without the gh semaphore Forced getRateLimit calls now join an in-flight probe, and all /rate_limit probes share a small probe-only limiter that acquires nothing else. Fold the deadlock regression test into rate-limit.test.ts as a direct await. * fix(github): make forced rate-limit probes read quota after the call Forced callers (403 reset refinement) share one follow-up probe queued behind the running one instead of joining a probe that may predate the 403, so a stale positive budget cannot clear a fresh breaker block. * fix(github): hand forced rate-limit follow-ups off synchronously A pending forced follow-up could outlive its probe's settlement, so a later forced caller joined a probe that predated it. Settlement now detaches the shared deferred follow-up and starts its probe in one synchronous step. Run rate-limit.test.ts on the Node runtime, where the V8 scheduling that opens the race is reproducible.