Skip to content

fix(issue-discovery): skip unscored OSS PRs in solving-PR cache - #1678

Open
bittensorrider wants to merge 1 commit into
entrius:testfrom
bittensorrider:fix/1677-solving-pr-cache-unscored-oss
Open

fix(issue-discovery): skip unscored OSS PRs in solving-PR cache#1678
bittensorrider wants to merge 1 commit into
entrius:testfrom
bittensorrider:fix/1677-solving-pr-cache-unscored-oss

Conversation

@bittensorrider

@bittensorrider bittensorrider commented Aug 5, 2026

Copy link
Copy Markdown

Summary

  • Add ScoredPR.oss_scored, set only when score_pr finishes multipliers (not on early-return).
  • _build_solving_pr_cache caches only oss_scored PRs so incomplete OSS defaults (token_score=0) no longer suppress get_pr_files during issue discovery.
  • Regression tests cover unscored exclusion while preserving intentional caching of genuine zero-token scored PRs.

Related Issues

Fixes #1677

Type of Change

  • Bug fix
  • New feature
  • Refactor
  • Documentation
  • Other (describe below)

Testing

  • Tests added/updated
  • Manually tested
    • uv run pre-commit run --all-files
    • uv run pre-commit run --all-files --hook-stage pre-push (pyright, vulture, full pytest)

Checklist

  • Code follows project style guidelines
  • Self-review completed
  • Changes are documented (if applicable)

Incomplete score_pr early-returns left token_score=0 defaults in
merged_prs, which poisoned the discovery cache and blocked file
refetch for valid solves. Mark completed OSS scoring via oss_scored
and only cache those entries.

Fixes entrius#1677

Co-authored-by: Cursor <cursoragent@cursor.com>
@xiao-xiao-mao xiao-xiao-mao Bot added the bug Something isn't working label Aug 5, 2026
@bittensorrider

Copy link
Copy Markdown
Author

Hi @anderdc @LandynDev — first contribution from me on this repo.

GitHub Actions for this PR are waiting on maintainer approval for first-time contributor workflows (Lint + Tests). Could you please approve the workflows when you have a moment, and review if possible?

Fixes #1677. Local pre-commit + pre-push (ruff/pyright/vulture/pytest) already pass on my side.

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.

fix(issue-discovery): solving-PR cache poisoned by unscored OSS PRs (token_score=0 blocks valid solves)

1 participant