-
Notifications
You must be signed in to change notification settings - Fork 28
Fix checkout tags #510
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix checkout tags #510
Conversation
WalkthroughThe GitHub Actions workflows were updated to modify the Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Suggested labels
Poem
Note ⚡️ Unit Test Generation is now available in beta!Learn more here, or try it out under "Finishing Touches" below. ✨ Finishing Touches🧪 Generate unit tests
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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #510 +/- ##
=======================================
Coverage 99.85% 99.85%
=======================================
Files 118 118
Lines 9713 9713
=======================================
Hits 9699 9699
Misses 14 14
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
♻️ Duplicate comments (4)
.github/workflows/runtests.yml (1)
44-47: See DRY recommendation in previous comment
The feedback given for the stable-docs workflow applies here as well..github/workflows/build_deploy_master_docs.yaml (1)
35-39: Same duplication note as above.github/workflows/get_coverage.yml (1)
13-17: Same duplication note as above.github/workflows/test_doc_build.yml (1)
14-18: Same duplication note as above
🧹 Nitpick comments (4)
.github/workflows/build_deploy_stable_docs.yaml (1)
30-33:fetch-depth: 0is the right fix, but please avoid duplicating this stanza everywhereAdding
fetch-tags: "true" fetch-depth: '0'is exactly what the checkout action now expects – good catch.
The same two-line block was added to seven other workflows in this PR. To keep future maintenance friction-free, consider wrapping the checkout logic in a small reusable workflow or composite action (e.g..github/actions/checkout-full) and call that from each job instead of repeating the options in every file..github/workflows/upload_pypi.yml (1)
14-15: Redundantfetch-tagswhenfetch-depth: '0'
Foractions/checkout@v4, settingfetch-depth: 0already instructs the action to fetch the full history including tags. Addingfetch-tags: "true"is harmless but redundant and slightly increases maintenance surface. Consider dropping the line for brevity unless you prefer the explicitness for readability..github/workflows/lint.yml (1)
15-16: Minor redundancy identical to other workflow
Same note as inupload_pypi.yml:fetch-depth: '0'alone is sufficient. Keeping both keys is fine, but you can simplify..github/workflows/run_min_dep_tests.yml (1)
38-39: Same redundancy remark as other workflows
fetch-depth: '0'already pulls tags;fetch-tagsis optional. Feel free to drop for consistency.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (8)
.github/workflows/build_deploy_master_docs.yaml(1 hunks).github/workflows/build_deploy_stable_docs.yaml(1 hunks).github/workflows/get_coverage.yml(1 hunks).github/workflows/lint.yml(1 hunks).github/workflows/run_min_dep_tests.yml(1 hunks).github/workflows/runtests.yml(1 hunks).github/workflows/test_doc_build.yml(1 hunks).github/workflows/upload_pypi.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). (15)
- GitHub Check: test_code_min_deps (windows-latest, 3.12)
- GitHub Check: test_code_min_deps (windows-latest, 3.13)
- GitHub Check: test_code_min_deps (ubuntu-latest, 3.12)
- GitHub Check: test_code (windows-latest, 3.11)
- GitHub Check: test_code_min_deps (macos-latest, 3.12)
- GitHub Check: test_code_min_deps (macos-latest, 3.13)
- GitHub Check: test_code_min_deps (ubuntu-latest, 3.13)
- GitHub Check: test_code (macos-latest, 3.12)
- GitHub Check: test_code (macos-latest, 3.11)
- GitHub Check: test_code (windows-latest, 3.12)
- GitHub Check: test_code (windows-latest, 3.10)
- GitHub Check: test_code (macos-latest, 3.10)
- GitHub Check: test_code (ubuntu-latest, 3.11)
- GitHub Check: test_code (ubuntu-latest, 3.12)
- GitHub Check: test_code (ubuntu-latest, 3.10)
🔇 Additional comments (1)
.github/workflows/run_min_dep_tests.yml (1)
28-30: No gating required for Python 3.13
actions/setup-python@v5 already supports installing Python 3.13 on ubuntu-latest, macos-latest, and windows-latest runners. You can safely keep the matrix entry as-is.
|
Looks good! Should we do a new release after merging this? |
Sure, let's give it a go. |
Yaay it's fixed now! |
Description
Issue #493 notes the documentation build doesn't list the correct version in the upper left corner like it should. Now things are more broken as the recent doc-build failed in the checkout action. I think something changed in the checkout action and we now need to explicitly set the depth to 0 (see here) because only
fetch-tagsis specified as true currently (see here). This PR simply makes that change.Checklist
I have (if applicable):
Summary by CodeRabbit