Skip to content

fix: handle transient GitHub PAT checks#1143

Closed
Bortlesboat wants to merge 1 commit into
entrius:testfrom
Bortlesboat:fix/pat-handler-transient-github
Closed

fix: handle transient GitHub PAT checks#1143
Bortlesboat wants to merge 1 commit into
entrius:testfrom
Bortlesboat:fix/pat-handler-transient-github

Conversation

@Bortlesboat
Copy link
Copy Markdown

Summary

  • switch validator PAT broadcast/check handlers to validate_github_credentials_result()
  • return retry-oriented messages when GitHub /user lookup fails transiently
  • keep stored PAT checks inconclusive with pat_valid=None instead of marking them invalid

Fixes #1106

Testing

  • pytest tests/validator/test_pat_handler.py -q
  • pytest tests/validator/test_pat_handler.py tests/validator/test_github_identity_fallback.py tests/validator/test_pat_storage.py -q
  • ruff check gittensor/validator/pat_handler.py tests/validator/test_pat_handler.py
  • ruff format --check gittensor/validator/pat_handler.py tests/validator/test_pat_handler.py
  • git diff --check

@xiao-xiao-mao xiao-xiao-mao Bot added the bug Something isn't working label May 11, 2026
@anderdc
Copy link
Copy Markdown
Collaborator

anderdc commented May 11, 2026

duplicate of #1107.

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] pat_handler treats transient GitHub /user failures as invalid PATs in validator-side broadcast/check handlers

2 participants