fix(gateway): boot-seed backends so site-api survives restart - #164
fix(gateway): boot-seed backends so site-api survives restart#164echobt wants to merge 1 commit into
Conversation
A gateway image pull left the in-memory registry empty, so /v1/site/* soft-failed while Postgres still had hundreds of Prism/Design rows. Seed prism+design from compose env, allow scoring_mode=benchmarks on prism_eval_run, and keep a 2-minute reseed timer as fallback.
|
Warning Review limit reached
Next review available in: 45 minutes You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details鈿欙笍 Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 馃搾 Files selected for processing (11)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
chain.joinbase.ai/v1/site/*went empty after a 12:38 UTC gateway+prism image pull: the in-memory challenge registry was wiped, so site-api soft-failed while Postgres still had 488 Prism submissions and 11k Design runs.prism+designfromBASE_GATEWAY_BACKENDS(compose default), so a restart cannot leave/challenge/*at 503.0020allowsscoring_mode=benchmarksonprism_eval_run(v4 finalize was hittingprism_eval_run_mode_check).base-reseed-backends.timeras a 2-minute fallback for older images (already enabled on the prod master).Test plan
/v1/site/arenas/prism/leaderboardreturns epoch 24519 / 30 rows; design 340; network 482 agentscargo test -p gateway-registry --lib(parse/seed + existing registry tests)cargo test -p gateway --lib/challenge/prism/health200 without a manual POST