Skip to content

fix(issue-discovery): zero stale per-repo issue fields on scoring path#1622

Open
nghetienhiep wants to merge 1 commit into
entrius:testfrom
nghetienhiep:fix/issue-1610
Open

fix(issue-discovery): zero stale per-repo issue fields on scoring path#1622
nghetienhiep wants to merge 1 commit into
entrius:testfrom
nghetienhiep:fix/issue-1610

Conversation

@nghetienhiep

@nghetienhiep nghetienhiep commented Jul 13, 2026

Copy link
Copy Markdown

The scoring path (_finalize_repo_issue_scores) only rewrote repos seen
this round, so a repo issue-scored in a prior round but absent this round
kept stale per-repo values that _roll_up_issue_totals summed back into the
round-level totals. This is reachable when an OSS-fetch-failed miner is
restored from the evaluation cache. Extract the per-repo reset into a
shared helper and apply it on both the no-issues and scoring paths so the
roll-up reflects only this round's issues.

Closes #1610

The scoring path (_finalize_repo_issue_scores) only rewrote repos seen
this round, so a repo issue-scored in a prior round but absent this round
kept stale per-repo values that _roll_up_issue_totals summed back into the
round-level totals. This is reachable when an OSS-fetch-failed miner is
restored from the evaluation cache. Extract the per-repo reset into a
shared helper and apply it on both the no-issues and scoring paths so the
roll-up reflects only this round's issues.

Closes entrius#1610
@xiao-xiao-mao xiao-xiao-mao Bot added the bug Something isn't working label Jul 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Stale per-repo issue-discovery fields survive a successful scoring round and inflate roll-up totals

1 participant