Commit 3b9d93b
authored
ci: propagate HF_TOKEN to e2e tests to avoid HF Hub rate limits (#1572)
GitHub Actions runners share public IPs that frequently hit the
HF Hub anonymous API quota, causing 429 errors during vllm-render
model downloads. This accounts for a large fraction of e2e flakes.
Propagate HF_TOKEN from a repo secret into the e2e builder container
so the vllm-render sidecar and the model-existence check authenticate
against HF Hub. Authenticated requests have a substantially higher
rate limit than anonymous ones.
Changes:
- Add HF_TOKEN to the Makefile E2E_ENV_VARS forwarding list
- Read HF_TOKEN from the environment in setup_test.go instead of
hardcoding an empty string
- Attach a Bearer token header to the isModelReal HF API call
in utils_test.go
- Pass secrets.HF_TOKEN in both e2e-gaie and e2e-router CI steps
The secret must be created as a GitHub repo secret. If the secret
is not set, behavior is unchanged (empty token, anonymous requests).
Closes #1527
Signed-off-by: Jonathan Wrede <wrede.jonathan00@gmail.com>1 parent f61ab91 commit 3b9d93b
4 files changed
Lines changed: 14 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
363 | 363 | | |
364 | 364 | | |
365 | 365 | | |
| 366 | + | |
366 | 367 | | |
367 | 368 | | |
368 | 369 | | |
| |||
450 | 451 | | |
451 | 452 | | |
452 | 453 | | |
| 454 | + | |
453 | 455 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
125 | | - | |
| 125 | + | |
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| |||
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
34 | | - | |
| 35 | + | |
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
193 | 194 | | |
194 | 195 | | |
195 | 196 | | |
196 | | - | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
197 | 204 | | |
198 | | - | |
| 205 | + | |
199 | 206 | | |
200 | 207 | | |
201 | 208 | | |
| |||
0 commit comments