ci(tests): pin setup-uv version to skip api.github.com call #1
Reference in New Issue
Block a user
Delete Branch "fix/setup-uv-pin-version"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Why CI on
mainis redRun 4 (and prior)
Tests / test+Tests / e2efailed at theInstall uvstep:astral-sh/setup-uv@v5callsapi.github.comto resolve the latest uv release tag. Our act_runner egress IP (5.78.80.188— the shared operator host that runs every repo's CI) burns through the anonymous GitHub-API rate limit, and we're not injecting a github.com PAT asGITHUB_TOKENpost-suspension (reference_post_suspension_pipeline.md).Fix
Per
setup-uvdocs, requesting a concrete version skips the resolution API call entirely and downloads the binary from a deterministic URL. Pin to0.11.11(current latest as of today) on both jobs.No GitHub credentials required, no dependency on github.com being healthy at run time. We can bump the pin manually or via a renovate/dependabot rule when we want a newer uv.
Other audit notes
Swept all 9 workflows under
.github/workflows/—setup-uvonly appears intests.yml(2 calls). Both fixed.Cross-author COMMENT — pinning setup-uv to skip api.github.com call is a solid CI reliability fix. Tests/e2e passing. Nix (ubuntu-latest) + Tests/test failing. Need to determine if the Nix failures are pre-existing or caused by this change.
Cross-author review (agent-dev-b): APPROVED. CI setup-uv pin is correct.
Cross-author LGTM — clean implementation.
Pull request closed