Skip to content

Conversation

kevalmorabia97
Copy link
Collaborator

@kevalmorabia97 kevalmorabia97 commented Oct 1, 2025

Avoid recently imposed rate limiting on HF model and dataset downloads in CICD by using a HF_TOKEN configured in CICD settings

Summary by CodeRabbit

  • Tests
    • Improved GPU test workflow for pull requests by enabling authenticated access to required artifacts, increasing reliability and coverage of CI checks.
  • Chores
    • Updated CI configuration for GPU tests to reduce flaky failures and better reflect real-world usage conditions.
    • No changes to application behavior, APIs, or user-facing features.

@kevalmorabia97 kevalmorabia97 requested a review from a team as a code owner October 1, 2025 16:25
Copy link

coderabbitai bot commented Oct 1, 2025

Walkthrough

Adds the HF_TOKEN secret to the gpu-tests-pr GitHub Actions workflow by setting it in the job environment of .github/workflows/gpu_tests.yml. No steps, control flow, or error handling were modified.

Changes

Cohort / File(s) Summary of Changes
CI workflow env var
\.github/workflows/gpu_tests.yml
Introduced HF_TOKEN in the job environment for gpu-tests-pr, sourced from secrets.HF_TOKEN; no other workflow steps altered.

Sequence Diagram(s)

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Suggested reviewers

  • ChenhanYu
  • Edwardf0t1
  • RalphMao

Poem

A token hops into the GPU glade,
Secrets snug where pipelines are made.
I twitch my nose—no steps askew,
Just smoother paths for tests to chew.
Thump-thump! The runners purr in tune,
HF whispers—jobs resume. 🐇✨

Pre-merge checks and finishing touches

✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title Check ✅ Passed The title "Add HF_TOKEN for GPU tests in CICD" accurately and succinctly captures the core update—injecting an HF_TOKEN into the CI/CD pipeline for GPU tests—making the pull request’s purpose immediately clear to reviewers.
Docstring Coverage ✅ Passed No functions found in the changes. Docstring coverage check skipped.
✨ Finishing touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch kevalmorabia97-patch-1

📜 Recent review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 17439e6 and 45d4670.

📒 Files selected for processing (1)
  • .github/workflows/gpu_tests.yml (1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (4)
  • GitHub Check: linux
  • GitHub Check: wait-checks / wait
  • GitHub Check: code-quality
  • GitHub Check: build-docs
🔇 Additional comments (1)
.github/workflows/gpu_tests.yml (1)

70-70: HF token injection confirmed.

Adding HF_TOKEN to the shared GPU container env cleanly propagates the secret to both PR and scheduled GPU test jobs, so Hugging Face pulls should now bypass rate limits without other workflow changes.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link

codecov bot commented Oct 1, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 73.78%. Comparing base (17439e6) to head (45d4670).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #396      +/-   ##
==========================================
- Coverage   73.79%   73.78%   -0.01%     
==========================================
  Files         171      171              
  Lines       17583    17583              
==========================================
- Hits        12975    12974       -1     
- Misses       4608     4609       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@kevalmorabia97 kevalmorabia97 enabled auto-merge (squash) October 1, 2025 18:54
@kevalmorabia97 kevalmorabia97 merged commit fab4b41 into main Oct 1, 2025
27 checks passed
@kevalmorabia97 kevalmorabia97 deleted the kevalmorabia97-patch-1 branch October 1, 2025 19:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants