Use GitHub authentication and retries for metadata requests#79
Merged
Conversation
TomAugspurger
approved these changes
Jul 7, 2026
KyleFromNVIDIA
requested changes
Jul 7, 2026
rapids-bot Bot
pushed a commit
to rapidsai/shared-workflows
that referenced
this pull request
Jul 7, 2026
This exposes the GitHub Actions token to `ci/check_style.sh` as `GH_TOKEN`. The style-check job already receives a repository-scoped token with `contents: read`, but the failing step did not have it in its environment, so `rapids-metadata` made an unauthenticated request and hit HTTP 429. Passing the token follows GitHub's supported authentication pattern and enables the companion rapidsai/rapids-metadata#79 change to make authenticated requests with retries. rapidsai/rapids-metadata#79 depends on this PR. Authors: - Bradley Dice (https://github.com/bdice) Approvers: - Tom Augspurger (https://github.com/TomAugspurger) - Gil Forsyth (https://github.com/gforsyth) URL: #589
KyleFromNVIDIA
approved these changes
Jul 7, 2026
Contributor
Author
|
/merge |
Contributor
Author
|
/ok to test |
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.
This updates remote metadata fetching to use the GitHub Contents API with
GH_TOKENorGITHUB_TOKENwhen available, while retaining the raw URL for unauthenticated requests. It adds bounded retries for rate limits and transient HTTP or transport errors, honoring GitHub’sRetry-Afterheader when provided. This addresses the cuDF style-check failure where an unauthenticated metadata request returned HTTP 429. It depends on rapidsai/shared-workflows#589 to expose${{ github.token }}asGH_TOKENto style-check jobs.