Open QuLogic opened 7 months ago
Oh, actually, it appears you don't even need to build from source, as wheels use system zlib, so a shorter reproducer:
$ podman run --rm -it fedora:rawhide
# dnf install -y python3-pip
# pip install zarr msgpack pytest
# pytest --pyargs zarr
Sent #1971 and #1972 with one approach to fix this (just accept the existing values and the ones we get from zlib-ng on Fedora; I don't know how long-term stable these will be).
Zarr version
2.16.1
Numcodecs version
0.12.1
Python Version
3.12
Operating System
Fedora Rawhide/40
Installation
from source
Description
Fedora 40 is transitioning to using zlib-ng; this provides an ABI-compatible replacement that is parallel and optimized for current processors. Unfortunately, it also produces results which may be different (but as I understand it, of similar compression ratio). This causes several tests to fail, as they compute the exact hex digest of the result.
I'm not sure if I should just start skipping these tests, or try and update them in some way.
Steps to reproduce
On a Fedora Rawhide or Fedora 40 container, install dependencies, then install zarr and run tests:
Additional output
Failing test output
```pytb ___________________________ TestArray.test_hexdigest ___________________________ self =