refactor: drop unused get_github_id wrapper orphaned by #932#1187
Merged
anderdc merged 2 commits intoMay 14, 2026
Merged
Conversation
b074eda to
38547c7
Compare
5a7db36 to
9ecdd30
Compare
anderdc
approved these changes
May 14, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
get_github_idin gittensor/utils/github_api_tools.py:321 is a 3-line public function with no production callers. PR #932 introducedget_github_identity(which returnsGitHubIdentityResult(github_id, status)so callers can distinguish transient failures from invalid auth) and migrated every production site. The wrapper has been dead code since #932 merged on 2026-05-06.grep -rn "get_github_id\b" gittensor/ neurons/confirms the only match is the definition itself. The remaining references live in tests/utils/test_github_api_tools.py:31 (module-level alias) and :364-376 (test_get_github_id_retry_logic). The retry path that test exercises is already covered by the siblingtest_get_github_identity_marks_5xx_as_transient/_marks_rate_limit_as_transient/_marks_bad_json_as_transienttests at :384-440, which patchrequests.getat the same boundary.This PR:
Net: +0 / -26 lines, one fewer public symbol on
gittensor.utils.github_api_tools.Related Issues
Closes #1186.
Type of Change
Testing
uv run --extra dev pytest tests/utils/test_github_api_tools.py— all 88 tests pass.grep -rn "get_github_id\b" gittensor/ neurons/ tests/ docs/ scripts/— returns no hits after the change.Checklist