Repository navigation
Conversation
## Human comments ## What was wrong The builtin GitHub plugin refreshed every 5 minutes with four `gh` list calls per tracked repository. On a machine with dozens of BB projects that is well over a thousand GraphQL invocations per hour, a large slice of the shared personal GitHub token. ## What changed - Drop the fixed 5-minute `SYNC_INTERVAL_MS` (and the later 15-minute select setting). - Auto-scale the park from tracked repo count, targeting ~400 list calls per hour, clamped 5–60 minutes. A 34-repo catalog now parks ~21 minutes. - Document the scaling in README and PLUGIN_OVERVIEW. ## How you verified - `pnpm exec turbo run test --filter=bb-plugin-github` — 34 passed, including new interval unit and service tests. - Live overlay on this machine logged `next sync in 21 min (34 repo(s))`. > AGENT GENERATED Signed-off-by: Lars Trieloff <[email protected]>
Contributor
|
Thanks @trieloff for the PR. This repo needs approval before a PR. Join the #contributors channel in Discord (https://discord.gg/kvBU6tJhcJ) and explain what you want to open a PR for and why. A maintainer then adds you to the allow list. This PR now closes on its own. Reopen it or open a new one after approval. |
Author
|
Filing this as an issue with a copy-pasteable repro instead of a PR (this repo needs Discord allow-list before PRs): #3406 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Human comments
What was wrong
The builtin GitHub plugin refreshed every 5 minutes with four
ghlist calls per tracked repository. On a machine with dozens of BB projects that is well over a thousand GraphQL invocations per hour, a large slice of the shared personal GitHub token.What changed
SYNC_INTERVAL_MS.How you verified
pnpm exec turbo run test --filter=bb-plugin-github— 34 passed, including new interval unit and service tests.next sync in 21 min (34 repo(s)).