Repository navigation
Fix llama.cpp Studio update failures on GitHub API rate limits (#9970) - #9980
Conversation
…thai#9970) Route pinned release-tag updates through the download-host CDN path so in-app updates avoid api.github.com entirely. When the prebuilt installer still fails, surface the fallback reason instead of a truncated PATH dump, and map exit 2 to an actionable rate-limit message in the updater.
|
Reproduced on my side. Pinned Fix: route pinned tags through the CDN path we already use for latest, and pull the fallback reason before truncating the error. Tests included. |
|
Confirmed the pinned --published-release-tag path in studio/install_llama_prebuilt.py still returns before the download-host fast path, so in-app updates always go through api.github.com, and the tail-only error hides the 403 line. Will get this reviewed. |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex Review: Didn't find any major issues. Swish! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
Codex Review: Didn't find any major issues. 🎉 Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
Reviewed and pushed one commit to this branch (5c1c203) for the two points Codex raised:
I checked the CDN routing separately: the in-app updater runs the install path, so a pinned tag now reaches Backend CI is red on two tests unrelated to this change ( |
|
Codex Review: Something went wrong. Try again later by commenting “@codex review”. ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
Codex Review: Didn't find any major issues. 👍 Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
Verified the routing change end to end on a Linux CUDA host, with every
Routing edge cases, all with the API blocked: macOS walk-back ( Also compared CDN-resolved and API-resolved bundles for five real releases (b10715, b10679, b10639, b10360, b10333): identical release tag, upstream tag, source commit, artifact set and checksum set. The one difference is an extra Three follow-up commits on top of the original change:
|
|
@codex review |
|
Codex Review: Didn't find any major issues. You're on a roll. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
@codex review |
|
Codex Review: Didn't find any major issues. Already looking forward to the next diff. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
Thanks @Souravrajvi0. I verified the routing change with every api.github.com request forced to fail: on main the pinned update stops after four attempts and exits 2, on this branch it installs with zero API calls, and the marker and llama-server binary come out identical to the API path. I pushed four follow-ups on top of your commit, covering the two Codex rounds and my own review: keeping the installer's verdict out of the bounded output tail, reporting that verdict rather than an earlier rate-limit retry, recognizing GitHub's 429 alongside 403, and only claiming a GitHub rate limit on GitHub evidence so a huggingface.co failure or an already-authenticated run gets advice it can act on. Asset selection is unchanged across fourteen host shapes (CUDA, ROCm, Vulkan, CPU, Windows, macOS), and macOS still takes the old API path. I exercised the update flow live in Studio for the success case and three failure shapes; no AMD hardware was available, though the ROCm host shapes resolve identically on both paths and the PR changes no detection or selection code. |
Fixes #9970
Root cause
--published-release-tag, which always used the GitHub API to resolve release metadata.GH_TOKEN/GITHUB_TOKEN, unauthenticated calls hit HTTP 403 rate limits.EXIT_FALLBACK). On Windows, the in-app updater does not source-build (unlikesetup.ps1), so the update fails.stream_installerkept only the last 1500 chars of stdout, hiding the realprebuilt fallback reason: ... set GH_TOKENline.Fix
api.github.comin the common case).prebuilt fallback reason, rate-limit hints) over raw stdout tail.Testing