Repository navigation
Conversation
The processor tests use `test-videos/*_320x240.mp4` and `*_64x64.jpg` (since #47168), but they were never added to `URLS_FOR_TESTING_DATA`, so `url_to_local_path` returns the URL and every run downloads them at test time (e.g. a `ReadTimeout` in `MuseGlimmerProcessorTest::test_apply_chat_template_video_1` after 5 reruns). `test-videos/karate.mp4` is not added: it is the same file as the already pre-fetched `fixtures_videos/karate.mp4` (same sha256), and the basename check would reject it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update. |
This branch has not been deployed
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.
What
This PR adds the
hf-internal-testing/test-videosfiles used by tests toURLS_FOR_TESTING_DATAinutils/fetch_hub_objects_for_ci.py. That is 4*_320x240.mp4videos and 4*_64x64.jpgimages, about 370 KB in total.Why
MODALITY_INPUT_DATA["videos"]intests/test_processing_common.py). They were never added to the pre-fetch list.url_to_local_pathfinds no local copy and returns the URL, and every CI run downloads them at test time.MuseGlimmerProcessorTest::test_apply_chat_template_video_1failed withhttpx2.ReadTimeoutafter 5 reruns. Other video chat-template tests in the same job also needed reruns.test-videos/karate.mp4is not added. It is the same file as the already pre-fetchedfixtures_videos/karate.mp4(same sha256), so it is already served locally, and_check_basename_collisionswould reject a second entry.Verification (local)
_check_basename_collisions(URLS_FOR_TESTING_DATA)passes (119 URLs).download_test_file.MODALITY_INPUT_DATA["videos"]resolves to the local files instead of the URLs.The end-to-end effect needs the next CI docker image build, which runs this script.
🤖 Generated with Claude Code