Skip to content

feat(hl-builder-stats): migrate to KV blob snapshot per builder - #845

Merged
Flotapponnier merged 1 commit into
devfrom
feat/hl-builder-stats-blob
Jul 2, 2026
Merged

Flotapponnier merged 1 commit into
devfrom
feat/hl-builder-stats-blob

Conversation

@Flotapponnier

Copy link
Copy Markdown
Collaborator

Summary

  • Vercel prod has no Prom access post blob-only migration, so fetchHlBuilderStatsRaw returned null and HlBuilderDashboard (biggest day chart, milestones, coin shares, profitable users, etc.) rendered nothing on /hyperliquid/[slug].
  • Rename the Prom-direct fetcher to fetchHlBuilderStatsFresh (exported for worker use) and introduce a new fetchHlBuilderStatsRaw that reads an Upstash blob first (hl-builder:<slug>), falls back to a live Prom hit with writeback. Same protocol as fetchHlCohortRaw / fetchHlHip3CohortRaw / fetchHlHistoryRaw.
  • Worker sweep now enumerates active HL builders from the just-built cohort payload and schedules one hl-builder:<slug> job per row (~91). All jobs share the existing Promise.allSettled fan-out.

Test plan

  • pnpm typecheck clean
  • pnpm lint clean
  • After worker rebuild on VPS, redis-cli --scan --pattern "ocb:cohort:hl-builder:*" | wc -l returns ~91
  • Prod /hyperliquid/phantom-perps renders biggest day chart, milestones, coin shares, profitable users markers

@Flotapponnier
Flotapponnier force-pushed the feat/hl-builder-stats-blob branch from 437f391 to d5f2160 Compare July 2, 2026 19:39
@Flotapponnier
Flotapponnier merged commit d8b0350 into dev Jul 2, 2026
Flotapponnier added a commit that referenced this pull request Jul 2, 2026
…-blob

chore(main): cherry-pick #845 (hl-builder-stats KV blob)
@Flotapponnier
Flotapponnier deleted the feat/hl-builder-stats-blob branch July 17, 2026 14:42
bakabhai993 pushed a commit to bakabhai993/OpenChainBench that referenced this pull request Sep 12, 2026
…nBench#845)

Co-authored-by: Florent Tapponnier <contact@openchainbench.com>
bakabhai993 pushed a commit to bakabhai993/OpenChainBench that referenced this pull request Sep 12, 2026
…nBench#845)

Co-authored-by: Florent Tapponnier <contact@openchainbench.com>
bakabhai993 pushed a commit to bakabhai993/OpenChainBench that referenced this pull request Sep 12, 2026
…lder-stats-blob

chore(main): cherry-pick ChainBench#845 (hl-builder-stats KV blob)
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