Skip to content

fix: distinguish transient GitHub failures in validator PAT handlers (#1106)#1134

Closed
alpurkan17 wants to merge 1 commit into
entrius:testfrom
alpurkan17:fix/1106-pat-transient-failure
Closed

fix: distinguish transient GitHub failures in validator PAT handlers (#1106)#1134
alpurkan17 wants to merge 1 commit into
entrius:testfrom
alpurkan17:fix/1106-pat-transient-failure

Conversation

@alpurkan17
Copy link
Copy Markdown
Contributor

@alpurkan17 alpurkan17 commented May 10, 2026

Summary

Validator PAT handlers call legacy validate_github_credentials() which returns a bare tuple and discards the transient_failure flag. When GitHub /user temporarily fails (rate limit, blip), miners with valid PATs are incorrectly rejected. Replace with validate_github_credentials_result() which preserves transient_failure, and update handle_pat_check to allow transient failures when a github_id is already stored.

Validation

@xiao-xiao-mao xiao-xiao-mao Bot added the bug Something isn't working label May 10, 2026
@alpurkan17 alpurkan17 force-pushed the fix/1106-pat-transient-failure branch from 0a5169c to 7184d2c Compare May 11, 2026 10:49
@anderdc
Copy link
Copy Markdown
Collaborator

anderdc commented May 11, 2026

duplicate of #1107.

@anderdc anderdc closed this May 11, 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] pat_handler treats transient GitHub /user failures as invalid PATs in validator-side broadcast/check handlers

2 participants