Skip to content

ci: broaden zarr UnstableSpecificationWarning filter to match Struct(…) repr#2403

Merged
ilan-gold merged 1 commit into
scverse:mainfrom
settylab:fix-zarr-struct-warning
Apr 22, 2026
Merged

ci: broaden zarr UnstableSpecificationWarning filter to match Struct(…) repr#2403
ilan-gold merged 1 commit into
scverse:mainfrom
settylab:fix-zarr-struct-warning

Conversation

@katosh
Copy link
Copy Markdown
Contributor

@katosh katosh commented Apr 21, 2026

Summary

zarr 3.1.7.dev44 changed its data-type repr from Structured to Struct(fields=…), so the existing .*Structured message filter in pyproject.toml (added in 926667b) no longer matches. Under --strict-warnings, the UnstableSpecificationWarning now propagates and fails tests using compound dtypes in uns (e.g. pbmc68k).

Widening the pattern to .*Struct matches both the old (Structured) and new (Struct(fields=…)) forms, with the category filter (zarr.core.dtype.common.UnstableSpecificationWarning) unchanged.

Why main looks green

Main's last CI run was pinned (by install-time resolution) to zarr 3.1.7.dev42, which still used the old repr. Any fresh run on main against the current pre-release reproduces the failure; main is sitting on a stale green.

Failing CI run (observed on #2236)

Test plan

  • ci: prefix → release-note check exempted
  • hatch-test.pre zarr_io CI passes against current pre-release zarr

……) repr

zarr 3.1.7.dev44 changed the data-type repr from "Structured" to
"Struct(fields=…)", so the existing `.*Structured` message filter stopped
firing under `--strict-warnings`. Widen the pattern to `.*Struct`, which
matches both forms without loosening the category filter.
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 21, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 85.48%. Comparing base (7861448) to head (8ba5510).
⚠️ Report is 1 commits behind head on main.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2403      +/-   ##
==========================================
- Coverage   87.43%   85.48%   -1.96%     
==========================================
  Files          49       49              
  Lines        7728     7728              
==========================================
- Hits         6757     6606     -151     
- Misses        971     1122     +151     

see 8 files with indirect coverage changes

@ilan-gold ilan-gold added this to the 0.12.12 milestone Apr 22, 2026
@ilan-gold ilan-gold merged commit 91b6289 into scverse:main Apr 22, 2026
29 of 34 checks passed
ilan-gold pushed a commit that referenced this pull request Apr 22, 2026
…cationWarning` filter to match `Struct(…)` repr) (#2404)

Co-authored-by: Dominik J. Otto <dominik.otto@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants