Repository navigation
Conversation
The closed-PR attribution scan only lists PRs updated in the last 14 days and keeps them in memory, so the PRs-by-model and effective-models 30d/all windows ranked models over different spans. Keep attributed closed PR records in a durable store, backfill it once (paged, bounded per tick), and report coverage from the store's reach. Hive-Run: #19365 Hive-Plan: persist attributed closed PRs Hive-Spec: pr-models-closed-history#store Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Signed-off-by: hanthor <hanthor@users.noreply.github.com>
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
@hanthor this PR is back in your court ( Review asks:
Reply here or push a new head to this branch (same sign-off); CI and the review swarm re-run automatically and the PR returns to the normal path. Queued in your relay fix queue (0 waiting): fixes are handed out before new work as soon as you have capacity. |
Open PR overlap checkβ
Resolved: no conflicting open PRs or same-file overlaps remain against |
|
PR needs rebase. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
Fixes #19365
What
attributed-pr-store.json,src/pkg/github/attributed_pr_store.go) holding the parsed attribution/outcome fields of closed attributed PRs (no bodies). Each closed-PR scan upserts into it and returns fresh βͺ stored records, so PRs that age out of the 14-day live scan stay in the 30d/all windows and survive restarts.HIVE_ATTRIBUTED_PR_BACKFILL,offto skip): at most 5 extra listing pages per repo per tick, resumable via a stored page cursor; a listing error pauses it and never fails enumeration. After it finishes the per-tick call count is the original head scan only.coveragenow derives from the store's reach (AttributedClosedPRCoverage), soclosed_prs_partialis false for a window inside it. All-time stays partial.Tests
Added store persistence, paged/resumable backfill and steady-state call count tests, plus a dashboard 30d test (3/16/29-day-old records, coverage). A package
TestMainsets the backfill off so existing tests that pin exact listing calls are unchanged;NewClientForTestuses a per-client temp store. Not run locally per AGENTS.md (gofmt -lclean); CI is the verdict.-- hive: backend=claude model=claude-sonnet-5-5
π€ Generated with Claude Code
π Hive Agent:
contributor| SHA:0823fe88d