Skip to content

Unpin xarray#765

Merged
TomNicholas merged 23 commits intozarr-developers:mainfrom
maxrjones:xarray-compat
Aug 14, 2025
Merged

Unpin xarray#765
TomNicholas merged 23 commits intozarr-developers:mainfrom
maxrjones:xarray-compat

Conversation

@maxrjones
Copy link
Member

@maxrjones maxrjones commented Aug 9, 2025

This PR addresses the failures on xarray>=2025.7.1. The tests are failing because pydata/xarray@3679a5d changes the contents of NetCDF files written by xarray. I addressed these failures in two ways:

  • For icechunk tests, use synthetic data rather than hard-coded byte ranges for chunks inside an example NetCDF4 file
  • For DMR++ tests, just update the byte ranges and xfail on older versions of xarray

Checklist

@maxrjones maxrjones requested a review from a team August 9, 2025 21:47
Comment on lines +57 to +58
@pytest.fixture()
def synthetic_vds(tmpdir: Path):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You realise that we could replace the use of netCDF files in a huge number of our other tests with these??? For now let's just put these fixtures outside of test_icechunk.py so we can consolidate them later, because nothing about these is specific to icechunk.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did this in dee3cde

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and b86cfce

@codecov
Copy link

codecov bot commented Aug 13, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 87.71%. Comparing base (9261537) to head (3be10fd).
⚠️ Report is 23 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #765   +/-   ##
=======================================
  Coverage   87.71%   87.71%           
=======================================
  Files          35       35           
  Lines        1872     1872           
=======================================
  Hits         1642     1642           
  Misses        230      230           
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Member

@TomNicholas TomNicholas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know what's going on with pixi in the docs build but I think this is good to merge now, and I will do so tomorrow.

EDIT: Apparently the docs fixed themselves? 🤷‍♂️

@TomNicholas TomNicholas merged commit c9ed9ce into zarr-developers:main Aug 14, 2025
15 checks passed
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.

Unpin Xarray? Regression in xarray + icechunk test - now opening data via dask

2 participants