Skip to content

fix(switchyard): reduce GitHub checks traffic and honor rate limits - #65

Merged
managoat-switchyard[bot] merged 2 commits into
mainfrom
jhgaylor/moncton-c91afe37-81d2-48f3-834a-e31e699cf423
Sep 6, 2026
Merged

fix(switchyard): reduce GitHub checks traffic and honor rate limits#65
managoat-switchyard[bot] merged 2 commits into
mainfrom
jhgaylor/moncton-c91afe37-81d2-48f3-834a-e31e699cf423

Conversation

@managoat-switchyard

Copy link
Copy Markdown
Contributor

Every track row polled GitHub once a minute, spending up to three API requests per branch per viewer without shared caching or rate-limit backoff.

Cache checks for five minutes and share in-flight requests across viewers. Slow background row polling to five minutes, cache failures briefly, and pause installation requests until GitHub's retry/reset deadline. Report rate limiting explicitly and invalidate cached checks after Switchyard opens a PR.

Validation: 10 GitHub checks regression tests pass, covering concurrent readers, expiry, installation isolation, reset recovery, and permission failures. Reports can be up to five minutes old; the cache and cooldown are scoped to the server process.

@managoat-switchyard
managoat-switchyard Bot merged commit 87e012a into main Sep 6, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants