Skip to content

Normalize GitHub IDs for miner matching#1417

Open
hoangtrung1108 wants to merge 1 commit into
entrius:mainfrom
hoangtrung1108:fix-github-id-normalization
Open

Normalize GitHub IDs for miner matching#1417
hoangtrung1108 wants to merge 1 commit into
entrius:mainfrom
hoangtrung1108:fix-github-id-normalization

Conversation

@hoangtrung1108
Copy link
Copy Markdown

Summary

  • Normalize miner GitHub IDs to strings when building duplicate-detection buckets.
  • Normalize issue-bounty registered miner lookup keys so int and string IDs match consistently.
  • Add regressions for mixed int/string duplicate detection and bounty solver lookup.

Fixes #1413

Tests

  • PYTHONPATH=C:\Users\49159\money-engine\test_stubs;C:\Users\49159\money-engine\bounties\gittensor .\.venv\Scripts\python -m pytest tests\validator\test_github_id_normalization.py tests\validator\test_issue_competitions_forward.py::test_int_github_id_miner_receives_solution_vote -q
  • .\.venv\Scripts\python -m ruff check gittensor\validator\oss_contributions\inspections.py gittensor\validator\issue_competitions\forward.py tests\validator\test_github_id_normalization.py tests\validator\test_issue_competitions_forward.py

Note: full dependency install on this Windows host failed because bittensor native dependencies require the MSVC linker (link.exe), so the focused tests were run with a minimal import stub for external bittensor modules.

@xiao-xiao-mao xiao-xiao-mao Bot added the bug Something isn't working label May 30, 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.

2 participants