Commit ae3ed0c
authored
Use setup-uv wrapper in upload-benchmark-results (#8078)
## Summary
`upload-benchmark-results` calls `astral-sh/setup-uv@v6.1.0` directly
without
pinning a `version:`, so setup-uv has to query the GitHub API to resolve
the
latest uv release. In PyTorch CI, setup-uv has been observed rejecting
the
workflow `GITHUB_TOKEN` (logs `No (valid) GitHub token provided`) and
falling
back to anonymous requests, which then hit the per-IP rate limit. This
is
especially painful on the OSDC ARC fleet where many jobs share a NAT
egress
IP (e.g. `3.139.130.18`), so the 60/hr anonymous budget is exhausted
almost
immediately. Example failure:
https://github.com/pytorch/pytorch/actions/runs/25825809816/job/75882485920
Switch to `pytorch/test-infra/.github/actions/setup-uv`, the wrapper we
introduced precisely for this case — it pins uv to an explicit version
so no
GitHub API call is made.
## Test plan
- [ ] After merge, re-run an OSDC ARC test job that uploads benchmark
results
(e.g. a `linux-jammy-py3.10-clang18` test-osdc shard) and confirm the
"Upload the benchmark results" step no longer falls back to anonymous uv
setup.1 parent 9c4ab3f commit ae3ed0c
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| |||
0 commit comments