test(hf-hub): batch-4 revision and history semantics - #29
Merged
Conversation
Close out the merged batch-3 tracker state and move the compatibility pointer to the new revision-focused batch so the next implementation slice starts from updated master. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Keep the roadmap and checklist aligned with the active compatibility workflow by recording the live batch-4 pull request alongside the issue link. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Make revision-aware metadata and download routes accept main and the current head SHA while rejecting unknown revisions so huggingface_hub stops treating arbitrary strings as valid read targets. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Apply the CI-required rustfmt signature wrapping for the batch-4 revision helper so the unit workflow validates the branch cleanly. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.
Summary
huggingface_hubcompatibility rollout for revision-aware metadata and download behaviormain, current head commit SHA, and correct missing-revision failures in the existing storage modelTest plan
HF_ENDPOINT=http://localhost:8080 uv run --with pytest --with huggingface_hub --with requests pytest tests/integration/hf_hub/test_revisions_batch4.py -qHF_ENDPOINT=http://localhost:8080 uv run --with pytest --with huggingface_hub --with requests pytest tests/integration/hf_hub -qcargo test --workspaceCloses #28
馃 Generated with Claude Code