-
Notifications
You must be signed in to change notification settings - Fork 134
Fix failing tests and mkdocs #1322
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
Conversation
Reviewer's GuideThis PR resolves macOS test failures by pinning FFmpeg to version 7 and cleans up mkdocs compatibility by standardizing docstring formatting and fixing minor typos, alongside a small import refactor for consistent code style. File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
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.
Hey there - I've reviewed your changes - here's some feedback:
- On macOS,
brew install ffmpeg@7is keg-only by default, so you’ll need to either runbrew link --force --overwrite ffmpeg@7or add its bin path to $PATH so CI actually uses the v7 binaries. - For Windows and Ubuntu runners, explicitly pin the ffmpeg major version (e.g.
choco install ffmpeg --version=7.xor using an apt pin) instead of relying on the default install to ensure you don’t accidentally pick up v8 when it’s released. - Consider adding a quick
ffmpeg -versioncheck after installation to fail fast if the wrong version ends up in the CI environment.
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- On macOS, `brew install ffmpeg@7` is keg-only by default, so you’ll need to either run `brew link --force --overwrite ffmpeg@7` or add its bin path to $PATH so CI actually uses the v7 binaries.
- For Windows and Ubuntu runners, explicitly pin the ffmpeg major version (e.g. `choco install ffmpeg --version=7.x` or using an apt pin) instead of relying on the default install to ensure you don’t accidentally pick up v8 when it’s released.
- Consider adding a quick `ffmpeg -version` check after installation to fail fast if the wrong version ends up in the CI environment.Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1322 +/- ##
=======================================
Coverage 88.84% 88.84%
=======================================
Files 155 155
Lines 14238 14240 +2
Branches 2025 2025
=======================================
+ Hits 12650 12652 +2
Misses 1124 1124
Partials 464 464
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
Deploying datachain-documentation with
|
| Latest commit: |
9555181
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://08860c21.datachain-documentation.pages.dev |
| Branch Preview URL: | https://fix-ci-tests-ffmpeg.datachain-documentation.pages.dev |
| brew install ffmpeg@7 | ||
| echo 'DYLD_FALLBACK_LIBRARY_PATH=/opt/homebrew/opt/ffmpeg@7/lib' >> "$GITHUB_ENV" |
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.
PyTorch does not supports ffmpeg 8
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.
let's put a link to this please meta-pytorch/torchcodec#839 to remove it when it is fixed
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.
Added a comment. Thank you! 🙏
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.
Hey there - I've reviewed your changes - here's some feedback:
- This PR mixes functional CI changes (ffmpeg pinning) with sweeping docstring/style updates, which makes it harder to review—consider splitting it into separate commits or PRs for clarity and maintainability.
- In tests.yml the ffmpeg version is hardcoded in multiple places; centralizing it via a variable or matrix axis would simplify future updates and reduce duplication.
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- This PR mixes functional CI changes (ffmpeg pinning) with sweeping docstring/style updates, which makes it harder to review—consider splitting it into separate commits or PRs for clarity and maintainability.
- In tests.yml the ffmpeg version is hardcoded in multiple places; centralizing it via a variable or matrix axis would simplify future updates and reduce duplication.Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
| name: dataset name. This can be either a fully qualified name, including | ||
| the namespace and project, or just a regular dataset name. In the latter | ||
| case, the namespace and project will be taken from the settings | ||
| (if specified) or from the default values otherwise. |
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.
I have asked AI to help me with this 👀
| limit: The maximum number of items to read from the HF dataset. | ||
| Applies `take(limit)` to `datasets.load_dataset`. |
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.
Also here, AI was used to improve this docstring.
Fix tests:
mkdocs build+ fix some mistypes in docstrings + fix import according to code styleNote: it is better to review this PR with "changes in whitespaces" hidden.
Summary by Sourcery
Fix CI failures by pinning ffmpeg to v7 on macOS and update docstrings and imports for mkdocs build and code style compliance
Bug Fixes:
Enhancements:
CI:
Documentation: