Skip to content

fix(cache): bump keys for cellRanks + quorum guard on partial renders - #383

Merged
Flotapponnier merged 3 commits into
devfrom
feat/per-chain-bench-pages
Jun 10, 2026
Merged

fix(cache): bump keys for cellRanks + quorum guard on partial renders#383
Flotapponnier merged 3 commits into
devfrom
feat/per-chain-bench-pages

Conversation

@Flotapponnier

@Flotapponnier Flotapponnier commented Jun 10, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • bench-unfiltered-v5 → v6 and all-benchmarks-v7 → v8: cached Benchmark objects from pre-cellRanks deploys lack the field, which made region-scoped badge URLs 404 and the products index serve stale draft-cycle wins (the repo's documented bump-on-shape-change rule, missed in the cellRanks PR)
  • Scoped badge 404s now carry s-maxage=60 so a transient miss can't get pinned by the CDN for the route's 300s revalidate window
  • Quorum guard in tryLoadLive: a Prom brownout that times out most providers used to yield a "live" render with 1 bar on the leaderboard, cached for 60s and overwriting the KV snapshot with the degraded set (seen on prod rpc-capabilities showing only 1RPC). Sub-50% unfiltered renders now count as a failed cycle: unstable_cache keeps the last good render, the snapshot is not overwritten. Filtered chain/region views are exempt since they legitimately have fewer providers.

Test plan

  • tsc + bun test pass
  • After staging deploy: /api/badge/rpc-capabilities/drpc?region=sgp returns 200, /products index shows dRPC per-chain wins, bench pages never render sub-quorum leaderboards

@Flotapponnier Flotapponnier changed the title fix(cache): bump bench cache keys for cellRanks field fix(cache): bump keys for cellRanks + quorum guard on partial renders Jun 10, 2026
@Flotapponnier
Flotapponnier merged commit 2d64232 into dev Jun 10, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant