You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opendal.apache.org by "Xuanwo (via GitHub)" <gi...@apache.org> on 2026/06/18 08:08:24 UTC
[PR] test: mock hf read and list contracts [opendal]
Xuanwo opened a new pull request, #7794:
URL: https://github.com/apache/opendal/pull/7794
# Which issue does this PR close?
None.
# Rationale for this change
Some `opendal-service-hf` unit tests depended on public Hugging Face repositories. Those tests could fail or slow down for reasons outside OpenDAL, such as network availability, remote service changes, or repository content changes.
# What changes are included in this PR?
This PR replaces the default HF read and list unit tests with deterministic `MockHttpTransport` contract tests. The tests now verify the generated HF API URLs, HTTP reader fallback behavior, and listed entry metadata without contacting Hugging Face.
It also removes the unused `gpt2_operator` test helper that only existed for the live public-repository tests.
# Are there any user-facing changes?
No. This only changes tests.
# AI Usage Statement
This PR was implemented with assistance from OpenAI Codex.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@opendal.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] test: mock hf read and list contracts [opendal]
Posted by "Xuanwo (via GitHub)" <gi...@apache.org>.
Xuanwo merged PR #7794:
URL: https://github.com/apache/opendal/pull/7794
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@opendal.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org