Skip to content

Add batch-1 huggingface_hub compatibility tests - #23

Merged
DiTo97 merged 4 commits into
masterfrom
test/hf-hub-batch1-compat
Mar 12, 2026
Merged

Add batch-1 huggingface_hub compatibility tests#23
DiTo97 merged 4 commits into
masterfrom
test/hf-hub-batch1-compat

Conversation

@DiTo97

@DiTo97 DiTo97 commented Mar 12, 2026

Copy link
Copy Markdown
Contributor

Summary

  • add a pytest-based tests/integration/hf_hub/ compatibility slice covering core HfApi, file download, and snapshot download flows
  • document the uv workflow for the new pytest suite alongside the existing smoke scripts
  • align delete-repo request parsing and 404 error headers with huggingface_hub client expectations uncovered by the new tests

Test plan

  • HF_ENDPOINT=http://localhost:8080 uv run --with pytest --with huggingface_hub --with requests pytest tests/integration/hf_hub -q
  • HF_ENDPOINT=http://localhost:8080 uv run tests/integration/roundtrip.py
  • HF_ENDPOINT=http://localhost:8080 uv run tests/integration/test_downloads.py
  • HF_ENDPOINT=http://localhost:8080 uv run tests/integration/integration_create_commit.py

馃 Generated with Claude Code

DiTo97 and others added 4 commits March 12, 2026 02:59
Add a pytest-based huggingface_hub compatibility slice for repo, upload,
download, and snapshot flows, and align delete/error responses with the
client expectations uncovered by the new tests.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Run the new hf_hub batch-1 pytest coverage in the integration workflow and
update token generation to the current rand 0.9 API to avoid deprecation warnings.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Use the explicit huggingface-hub name for the pytest compatibility step in the integration workflow.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add a curated roadmap and machine-readable checklist distilled from the
earlier analysis-only branch, and link them from the integration docs so
future HF Hub compatibility work follows a single batch queue.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@DiTo97
DiTo97 marked this pull request as ready for review March 12, 2026 02:40
@DiTo97
DiTo97 merged commit 6981745 into master Mar 12, 2026
2 checks passed
@DiTo97
DiTo97 deleted the test/hf-hub-batch1-compat branch March 12, 2026 02:40
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.

1 participant