Skip to content

fix: scope issues count to tracked repos#439

Open
corevibe555 wants to merge 3 commits intoentrius:testfrom
corevibe555:fix/issue-422-scoped-open-issue-count
Open

fix: scope issues count to tracked repos#439
corevibe555 wants to merge 3 commits intoentrius:testfrom
corevibe555:fix/issue-422-scoped-open-issue-count

Conversation

@corevibe555
Copy link
Copy Markdown

@corevibe555 corevibe555 commented Apr 15, 2026

Closes #422

Summary

The open-issue spam multiplier in gittensor/validator/issue_discovery/scoring.py was gated on User.issues.totalCount, an unscoped global count that includes personal projects, forks, and non-tracked upstream repositories. Miners with legitimate open issues anywhere on GitHub could be silently hard-zeroed on their entire issue_discovery_score, even when every tracked-repo filing was clean.

Related Issues

Closes #422

Type of Change

  • Bug fix
  • New feature
  • Refactor
  • Documentation
  • Other

Testing

Added: tests/utils/test_count_tracked_open_issues.py — 7 unit tests:
Results: 7/7 new tests pass. Broader validator suite (70 pre-existing tests) remains green. The 6 collection errors in the validator suite are pre-existing tree_sitter import failures unrelated to this change.

** Manual testing**
I have tested using three repos entrius/gittensor, entrius/gittensor-ui, corevibe555/corevibe555.
The screenshot shows the personal repo issue is ignored correctly.
repo-count-test

Checklist

  • Code follows project style
  • Self-review completed — see follow-up notes below
  • Comments explain non-obvious why, not what
  • New tests added and passing
  • No schema/migration changes required (total_open_issues column repurposed, not renamed)

@corevibe555 corevibe555 force-pushed the fix/issue-422-scoped-open-issue-count branch 2 times, most recently from b900023 to ab0af63 Compare April 15, 2026 12:54
@corevibe555 corevibe555 changed the title fix: scope issues to tracked repos fix: scope issues count to tracked repos Apr 15, 2026
@corevibe555
Copy link
Copy Markdown
Author

@anderdc Would you review this PR?
This is an important fix.

@corevibe555 corevibe555 force-pushed the fix/issue-422-scoped-open-issue-count branch from 646a103 to 135386a Compare April 15, 2026 13:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

open issue spam multiplier counts issues on non-tracked repos, penalising miners for unrelated personal projects

1 participant