Repository navigation
Document the remote cache request limits and how LPM CLI waits them out - #389
Open
tolgaergin wants to merge 60 commits into
Open
tolgaergin wants to merge 60 commits into
tolgaergin wants to merge 60 commits into
Conversation
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The Registry now also limits requests of any kind, uploaded data and uploads at once, and gives accounts without remote cache a small allowance. LPM CLI pauses a limited kind of request until Retry-After rather than for the rest of the run, and a lookup limit pauses uploads too. Custom cache endpoints keep the 500 MiB archive limit. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…fly refused upload Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…LPM CLI's retry Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…d lookup retries Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…ts and a busy Registry server Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Storage and remote cache allowances are counted in 1024s, as the LPM.dev Registry now labels them (tolgaergin/a-package-manager#235). Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This was referenced Oct 11, 2026
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…d-only tokens Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…on tokens, as round 12 found Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…ads past the hit limit, and expired project tokens at the cap Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…dress's limit too Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…onth Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…hecks count, and the download host refuses proxy headers Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…tation limits Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…m count against the address and end a pass Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
… with the dashboard Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…rage waits while billing isn't active Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…on limit, and exempt tarballs Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…nd trickle, and a body's 30-second deadline Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…ens and failing tokens, and correct revocation and token limits Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Contributor
Author
Third review: ledgerFixed in d3dbf4e.
|
…ain English Shorter sentences with one fact each, no contractions or semicolons, the caution's instruction before its risk, and the reasons for a busy answer as a list. The login page now says lpm login tries again for up to 30 seconds when the Registry can't complete the sign-in at once. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Contributor
Author
|
Rewrote this PR's changed passages in plain English (the simple-english skill, Plain mode): sentences of at most 20 words for steps and 25 for descriptions, active voice, can/will/must instead of other modals, no contractions, semicolons or em-dashes, each condition before its result, and cautions with the instruction first. Code, identifiers, quoted messages and facts are unchanged. |
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.
Companion to tolgaergin/a-package-manager#233, which limits remote cache requests per account and caps artifacts at 100 MiB, and lpm-dev/rust-client#950, which makes LPM CLI wait limits out.
What changes
content/docs/infra/remote-cache.mdx:cache-dl.lpm.dev, through a link the Registry answers with that works for a minute, so a CI firewall must allow that host; Turborepo downloads a signed artifact through the Registry, as do other clients and older LPM CLI releases; LPM CLI treats an artifact without a content hash, as Turborepo uploads one, as a miss and replaces it;paused;slugorteamIdnaming any other gets 403, whether or not that account exists, and a pair of which only one names the token's own account gets 400;--remote-cache-read-only, or it turns its remote cache off after the first refused upload. LPM CLI stops uploading for the run after a refused upload, and stops the remote cache for the run after a refused lookup or once the organization's billing lapses; an upload the cache has no room for is skipped on its own;lpm loginsession, the session's previous access token stops working within five minutes, and any older one at once, or within that minute on a server that checked it;enabledorover_limit);Retry-After; LPM CLI skips that kind of request until then, pauses uploads during a lookup limit too, and warns once a run for each kind. A wait of 5 seconds or less usually means the Registry is busy for a moment, or a minute's window is about to reset: LPM CLI sends such a lookup or upload once more after the wait plus up to half again, unless that kind was paused meanwhile, and notesremote cache is busy; skipping some uploads for a moment(or lookups) once a run if it skips some anyway. Turborepo gets per-minute limits as 429 and daily limits as 403remote_caching_over_limit.lpm logincredentials read and write the user's personal cache; an organization's cache needs one of its tokens.Retry-After: 1for uploads or downloads in flight, andRetry-After: 2for a busy Registry server, with LPM CLI's notice and retry; and the 409 for an artifact another upload is storing, which LPM CLI leaves to that upload.content/docs/infra/login.mdxsays an account keeps up to 20 activelpm loginsessions, and a sign-in past that ends the one used least recently.content/docs/infra/setup.mdxsays an account holds up to 100 active tokens it created, thatlpm setup localpast that fails for a new project or one whose token has expired, while replacing a live project token works, and that expired and revoked ones are deleted 30 days later.content/docs/lpm-dev-and-pro.mdxlists the daily uploads and cache hits (4,000 and 50,000) with the plans and links to the full limits, and labels plan sizes in binary units (100 MiB, 5 GiB, 25 GiB), as the LPM.dev Registry does after tolgaergin/a-package-manager#235.Each content commit is followed by one that refreshes the content dates.
Testing
npm run checkpasses on 6a116c2, the content before its dates commit: content dates, SEO audit and lint, types, 91 unit and 22 component tests, and the build at 405 pages.🤖 Generated with Claude Code