Repository navigation
Sign-in listing: GitHub's pages four at a time (picker wait ~7 s → ~3 s) - #187
Merged
Merged
Conversation
VisualCIdocspring/visualci · build #621 · 482 unchanged · no changes This PR vs base: 35 changed, 82 added since #494, across 2 builds docspring/visualci · journeys · build #618 · 50 unchanged · no changes This PR vs base: 7 changed, 15 added since #489, across 2 builds Updated as builds change. Agents can review with VisualCI's MCP tools. |
…es their totals need, four calls at a time
ndbroadbent
force-pushed
the
sign-in-listing-concurrent
branch
from
December 4, 2026 10:21
978c744 to
cf8eb25
Compare
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.
After #175, Nathan's sign-in listing (
SyncGithubAccess) made 5 GitHub calls one after another and took 6.53 s. The picker showed "Loading your repositories from GitHub…" for all of it.The listing now reads:
total_count;At most 4 calls are in flight, well inside GitHub's secondary limit on concurrent requests. So the wait is about three calls long, not the sum of them. It should drop from ~7 s to ~2–3 s for Nathan; I'll check the job's time in production after deploy.
The caps stay the same: 20 repository pages per sign-in, 10 per installation, and
SIGN_IN_SYNC_BUDGETis unchanged. The order changes: every installation (up to the cap) now gets its first page before any installation gets more, where before a large first installation could use up the pages and leave later ones with none. The budget test's expected counts change to match, and the test GitHub's pages now carrytotal_count, as GitHub's do.The coordinator asked for this to merge after #177.
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.