Commit 658fa25
committed
fix: make TestTarballRegistry resilient to CDN rate limiting
The test was firing 254 full GET requests at MySQL's CDN in rapid
succession. When the CDN rate-limits (HTTP 403), these cascaded into
77 failures, exceeding the max-3 threshold.
Two fixes:
- Use CheckRemoteUrl (HEAD-first) instead of checkRemoteUrl (full GET)
to avoid downloading entire tarballs just to check URL reachability
- Treat HTTP 403 as transient (CDN rate limit) rather than a hard
failure, logging it separately
- Add 50ms delay between requests to reduce rate limit triggering1 parent 1b514f5 commit 658fa25
1 file changed
Lines changed: 17 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| |||
153 | 154 | | |
154 | 155 | | |
155 | 156 | | |
| 157 | + | |
156 | 158 | | |
157 | 159 | | |
158 | | - | |
| 160 | + | |
159 | 161 | | |
160 | | - | |
161 | | - | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
162 | 171 | | |
163 | 172 | | |
164 | 173 | | |
165 | 174 | | |
166 | 175 | | |
167 | 176 | | |
| 177 | + | |
| 178 | + | |
168 | 179 | | |
169 | 180 | | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
170 | 184 | | |
171 | 185 | | |
172 | 186 | | |
| |||
0 commit comments