Commit eee9566
committed
fix(ci): wire GITHUB_TOKEN into the tox test job
test_real_download_on_cache_miss makes a real, unauthenticated
api.github.com call to resolve tflint's latest-releases listing.
GITHUB_TOKEN was never actually forwarded into the pytest job's
environment - tox.ini's 'pass_env = GITHUB_*' can only pick up a
variable that's already there, and reusable-tox.yml never set it.
With a 5-python x 4-OS matrix (20 jobs) all potentially sharing
GitHub-hosted runners' pooled egress IPs, unauthenticated requests
(60/hr per IP, shared with unrelated concurrent traffic) are a
well-known source of exactly this kind of intermittent, job-specific
failure - matches what was observed: a fast (~0.3s) failure on one
matrix cell (pytest-3.12) while the rest of the matrix passed.
This wires in the same GITHUB_TOKEN auto-authentication the project
already documents as supported for version resolution (README.md,
'Most hooks: Pin a specific tool version') and already uses for
Docker image builds - it was simply never connected for this job.
Assisted-by: Sisyphus:claude-sonnet-5 claude1 parent 08768e8 commit eee9566
1 file changed
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
311 | 311 | | |
312 | 312 | | |
313 | 313 | | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
314 | 321 | | |
315 | 322 | | |
316 | 323 | | |
| |||
0 commit comments