Skip to content

[Bug]: int/str github_id mismatch breaks duplicate penalty and bounty lookup#1414

Open
glorysr1209-png wants to merge 1 commit into
entrius:testfrom
glorysr1209-png:fix/github-id-string-normalize
Open

[Bug]: int/str github_id mismatch breaks duplicate penalty and bounty lookup#1414
glorysr1209-png wants to merge 1 commit into
entrius:testfrom
glorysr1209-png:fix/github-id-string-normalize

Conversation

@glorysr1209-png
Copy link
Copy Markdown

Summary

Closes #1413.

Normalize GitHub IDs to strings in credential validation, duplicate detection, and issue bounty registered_miners mapping.

Changes

  • str() coercion in github_validation, inspections, and forward.py.
  • Regression tests for int/str duplicate penalty and bounty solution vote.

Real Behavior Proof

  • test_duplicate_detection_penalizes_int_and_str_github_id
  • test_registered_miner_with_int_github_id_receives_solution_vote

What I ran

python3 -m pytest tests/validator/test_duplicate_penalty_propagation.py::test_duplicate_detection_penalizes_int_and_str_github_id tests/validator/test_issue_competitions_forward.py::test_registered_miner_with_int_github_id_receives_solution_vote -q

What I observed

Both int/str collision paths behave consistently after normalization.

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

[Bug]: int/str github_id mismatch breaks duplicate penalty and bounty lookup

1 participant