From 1ad47020799ec10a35048f114cd9cda67e1b4eb5 Mon Sep 17 00:00:00 2001 From: Florent Tapponnier <160007691+Flotapponnier@users.noreply.github.com> Date: Wed, 26 Aug 2026 12:16:55 +0200 Subject: [PATCH 1/3] fix: revalidate hl-cohort + hl-history on aggregate purge --- src/app/api/internal/revalidate-aggregate/route.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/app/api/internal/revalidate-aggregate/route.ts b/src/app/api/internal/revalidate-aggregate/route.ts index 39d221d94..0fdde6a41 100644 --- a/src/app/api/internal/revalidate-aggregate/route.ts +++ b/src/app/api/internal/revalidate-aggregate/route.ts @@ -44,5 +44,10 @@ export async function POST(req: Request): Promise { // worker publish. revalidateTag("benchmarks", "default"); revalidateTag("data-api-cohort", "default"); - return NextResponse.json({ revalidated: true, tags: ["bench-aggregate", "benchmarks", "data-api-cohort"] }); + // Invalidate HL cohort caches (builder stats, history blob, leaderboard) + // so new builders added to Prometheus (e.g. fomo) surface on the next + // request without waiting for the 1h unstable_cache TTL to expire. + revalidateTag("hl-cohort", "default"); + revalidateTag("hl-history", "default"); + return NextResponse.json({ revalidated: true, tags: ["bench-aggregate", "benchmarks", "data-api-cohort", "hl-cohort", "hl-history"] }); } From b47c567a6ea478fdd2e8ad1761fc3550e69220e2 Mon Sep 17 00:00:00 2001 From: Florent Tapponnier <160007691+Flotapponnier@users.noreply.github.com> Date: Wed, 26 Aug 2026 12:21:49 +0200 Subject: [PATCH 2/3] fix(app-store-ratings): last_over_time[31m] on reviews panel for 7d+ staleness --- benchmarks/app-store-ratings.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/benchmarks/app-store-ratings.yml b/benchmarks/app-store-ratings.yml index 478c87f4a..75eb14d9c 100644 --- a/benchmarks/app-store-ratings.yml +++ b/benchmarks/app-store-ratings.yml @@ -70,7 +70,7 @@ metric_panels: - id: reviews label: Review count label_key: app - metric: app_store_reviews_total + metric: last_over_time(app_store_reviews_total{}[31m]) unit: count higher_is_better: true description: "Total number of user ratings submitted on the US App Store. More reviews = more statistically reliable average. Robinhood leads with 4.8M+ ratings, Coinbase follows at 1.8M+." From 914ed3b895451d8b812a4c5a0ca3e7df94fcd8ea Mon Sep 17 00:00:00 2001 From: Florent Tapponnier <160007691+Flotapponnier@users.noreply.github.com> Date: Wed, 26 Aug 2026 12:23:20 +0200 Subject: [PATCH 3/3] Revert "fix(app-store-ratings): last_over_time[31m] on reviews panel for 7d+ staleness" This reverts commit b47c567a6ea478fdd2e8ad1761fc3550e69220e2. --- benchmarks/app-store-ratings.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/benchmarks/app-store-ratings.yml b/benchmarks/app-store-ratings.yml index 75eb14d9c..478c87f4a 100644 --- a/benchmarks/app-store-ratings.yml +++ b/benchmarks/app-store-ratings.yml @@ -70,7 +70,7 @@ metric_panels: - id: reviews label: Review count label_key: app - metric: last_over_time(app_store_reviews_total{}[31m]) + metric: app_store_reviews_total unit: count higher_is_better: true description: "Total number of user ratings submitted on the US App Store. More reviews = more statistically reliable average. Robinhood leads with 4.8M+ ratings, Coinbase follows at 1.8M+."