Commit dc23a29
committed
feat: add BENCHMARK_FETCH_FAILED TierType
Previously getGPUTier() silently degraded to 'FALLBACK' tier 1 whenever
the benchmark fetch failed (unpkg outage, CSP, CORS on strict enterprise
networks, offline). Consumers couldn't distinguish "GPU unknown" from
"network blocked the benchmarks", so fast hardware was misreported as
slow with no way to detect the cause. See #121.
A new 'BENCHMARK_FETCH_FAILED' TierType is returned when loadBenchmarks
rejects. Consumers that only switch on `tier` keep working unchanged;
those that want to retry or surface the condition can opt in.
The underlying OutdatedBenchmarksError still re-throws so semver-style
incompatibility surfaces loudly, not as a fetch failure.1 parent 03b681a commit dc23a29
2 files changed
Lines changed: 39 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
80 | | - | |
| 80 | + | |
| 81 | + | |
81 | 82 | | |
82 | 83 | | |
83 | 84 | | |
| |||
103 | 104 | | |
104 | 105 | | |
105 | 106 | | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
106 | 112 | | |
107 | 113 | | |
108 | 114 | | |
| |||
178 | 184 | | |
179 | 185 | | |
180 | 186 | | |
| 187 | + | |
181 | 188 | | |
182 | 189 | | |
183 | 190 | | |
| |||
318 | 325 | | |
319 | 326 | | |
320 | 327 | | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
321 | 340 | | |
322 | 341 | | |
323 | 342 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
40 | 41 | | |
41 | 42 | | |
42 | 43 | | |
| |||
339 | 340 | | |
340 | 341 | | |
341 | 342 | | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
342 | 359 | | |
343 | 360 | | |
344 | 361 | | |
| |||
417 | 434 | | |
418 | 435 | | |
419 | 436 | | |
420 | | - | |
| 437 | + | |
421 | 438 | | |
422 | 439 | | |
423 | 440 | | |
424 | | - | |
| 441 | + | |
425 | 442 | | |
426 | 443 | | |
427 | 444 | | |
| |||
0 commit comments