Skip to content

Commit ea7c0ea

Browse files
westonpaceclaude
andauthored
ci(python): ignore deprecated hf_xet.download_files warning (#6700)
## Summary - `test_write_hf_dataset` is failing on macOS and Windows CI because `huggingface_hub`'s Xet download path calls the now-deprecated `hf_xet.download_files()`, and `python/pyproject.toml` configures pytest with `error::DeprecationWarning`. - The deprecation lives in `huggingface_hub` itself (`file_download.py:558`), not in Lance — `huggingface_hub` has not yet migrated to the new `XetSession().new_file_download_group().start_download_file()` API. - Add a narrow `filterwarnings` ignore for that exact message, matching the existing pattern used for other third-party deprecation noise (boto3, pytorch, distutils, etc.). Failing CI message: ``` DeprecationWarning: hf_xet.download_files() is deprecated. Use XetSession().new_file_download_group().start_download_file() instead. huggingface_hub/file_download.py:558: DeprecationWarning ``` The ignore is scoped to the exact message, so any other `DeprecationWarning` still escalates to a test failure as before. When `huggingface_hub` migrates to the XetSession API, this entry can be removed. ## Test plan - [ ] CI: `test_write_hf_dataset` passes on macOS and Windows runners - [ ] Other `DeprecationWarning`-as-error coverage is unchanged (filter only matches the `hf_xet.download_files()` message) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 9d19484 commit ea7c0ea

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

python/pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,8 @@ filterwarnings = [
125125
'ignore:.*the load_module\(\) method is deprecated.*:DeprecationWarning',
126126
# Pytorch uses deprecated jit.script_method internally (torch/utils/mkldnn.py)
127127
'ignore:.*torch\.jit\.script_method.*is deprecated.*:DeprecationWarning',
128+
# huggingface_hub still calls the deprecated hf_xet.download_files() during Xet downloads
129+
'ignore:.*hf_xet\.download_files\(\) is deprecated.*:DeprecationWarning',
128130
# TensorFlow/Keras import can emit NumPy deprecation FutureWarnings in some environments.
129131
# Keep FutureWarnings as errors generally, but ignore this known-noisy import-time warning.
130132
'ignore:.*np\.object.*:FutureWarning',

0 commit comments

Comments
 (0)