Skip to content

Conversation

kevalmorabia97
Copy link
Collaborator

@kevalmorabia97 kevalmorabia97 commented Sep 29, 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 reliability of example test runs in pull requests by securely providing required authentication via CI, with no changes to app behavior.
  • Chores
    • Updated CI configuration to use repository secrets for sensitive environment variables, enhancing security of automated workflows.

@kevalmorabia97 kevalmorabia97 requested a review from a team as a code owner September 29, 2025 19:31
Copy link

coderabbitai bot commented Sep 29, 2025

Walkthrough

Adds the HF_TOKEN environment variable from repository secrets to the example-tests-pr job’s container environment in .github/workflows/example_tests.yml. No other steps, jobs, or control flow are modified.

Changes

Cohort / File(s) Summary
CI Workflow
\.github/workflows/example_tests.yml
Add HF_TOKEN from secrets.HF_TOKEN to the example-tests-pr job container env.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Poem

A bunny taps the YAML keys,
Slips in a token on the breeze.
Secrets tucked, the tests can run,
Night to dawn, the pipelines hum.
Hop, compile, and swiftly go—
One small env, results will flow. 🐇✨

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 pull request title "Add HF_TOKEN secret to example_tests workflow" is fully related to and clearly summarizes the main change in the changeset. The change adds the HF_TOKEN environment variable sourced from secrets to the example-tests-pr job container environment in the workflow file .github/workflows/example_tests.yml. The title is concise, specific, and accurately describes the primary modification without being vague or misleading. It provides enough context for a teammate scanning the repository history to understand what was changed and where.
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 615f3c0 and 608ac0a.

📒 Files selected for processing (1)
  • .github/workflows/example_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/example_tests.yml (1)

72-72: LGTM! HF_TOKEN properly configured for both job variants.

The HF_TOKEN is correctly sourced from GitHub secrets and will be available to both example-tests-pr and example-tests-non-pr jobs via the YAML anchor reference at line 93. This follows GitHub Actions best practices for handling sensitive tokens and should resolve the Hugging Face rate limiting issues.

Ensure the HF_TOKEN secret is configured in the repository settings before merging.


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
🧪 Early access (Sonnet 4.5): enabled

We are currently testing the Sonnet 4.5 model, which is expected to improve code review quality. However, this model may lead to increased noise levels in the review comments. Please disable the early access features if the noise level causes any inconvenience.

Note:

  • Public repositories are always opted into early access features.
  • You can enable or disable early access features from the CodeRabbit UI or by updating the CodeRabbit configuration file.

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

@kevalmorabia97 kevalmorabia97 enabled auto-merge (squash) September 29, 2025 19:36
Copy link

codecov bot commented Sep 29, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 73.85%. Comparing base (615f3c0) to head (608ac0a).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #392      +/-   ##
==========================================
- Coverage   73.86%   73.85%   -0.01%     
==========================================
  Files         171      171              
  Lines       17629    17629              
==========================================
- Hits        13021    13020       -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 merged commit c9db0ce into main Sep 29, 2025
27 checks passed
@kevalmorabia97 kevalmorabia97 deleted the kevalmorabia97-patch-1 branch September 29, 2025 20:52
kevalmorabia97 added a commit that referenced this pull request Oct 1, 2025
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