Skip to content

Connect Github GraphQL API requests to keyman#415

Merged
MoralCode merged 4 commits into
mainfrom
feat/graphql-keyman
Jun 25, 2026
Merged

Connect Github GraphQL API requests to keyman#415
MoralCode merged 4 commits into
mainfrom
feat/graphql-keyman

Conversation

@MoralCode

@MoralCode MoralCode commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

Description
the Github GraphQL data access class was still wired up to the old GithubRandomKeyAuth system.

This was causing graphQL tasks to continue making requests even after it had exceeded the rate limit, resulting in an exception that crashed the task. The impact of this is that tasks that could not complete within a single API key cycle would never complete and would end up in the daily error retry loop, effectively wasting API key tokens for other tasks running in parallel too.

This PR fixes #409

Notes for Reviewers
This is being tested locally alongside other changes.

Test will be complete when A graphQL task (process_pull_request_files) successfully pauses for the rate limit and then resumes after the reset

Signed commits

  • Yes, I signed my commits.

Generative AI disclosure

Please select one option:

  • This contribution was NOT assisted or created by Generative AI tools.
  • This contribution was assisted or created by Generative AI tools.

If AI tools were used, please provide details below:
- What tools were used? minor use of code autocompletion
- Did you review these outputs before submitting this PR? yes, the majority of the code was a copy paste from another branch (fix/facade_none_keys) where some improvements to rate limit behavior were made.

Signed-off-by: Adrian Edwards <adredwar@redhat.com>
This includes using the github REST versions of some of the exceptions

Signed-off-by: Adrian Edwards <adredwar@redhat.com>
…he keyman behaviors

Signed-off-by: Adrian Edwards <adredwar@redhat.com>
Comment thread collectoss/tasks/github/util/github_graphql_data_access.py Outdated
@MoralCode

Copy link
Copy Markdown
Contributor Author

i have observed a graphQL task (process_pull_request_files) successfully pauses for the rate limit and then resumes after the reset. Test passed.

Signed-off-by: Adrian Edwards <adredwar@redhat.com>
@MoralCode MoralCode added the high priority Blocking multiple other things, causing data loss, or other incredibly urgent things label Jun 25, 2026
@MoralCode MoralCode merged commit 24d3d56 into main Jun 25, 2026
16 checks passed
@MoralCode MoralCode deleted the feat/graphql-keyman branch June 25, 2026 19:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

high priority Blocking multiple other things, causing data loss, or other incredibly urgent things

Projects

None yet

Development

Successfully merging this pull request may close these issues.

proces_pull_request_files doesnt handle hitting a rate limit very well

1 participant