Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Force little endian input for zarr #492

Merged
merged 1 commit into from
Mar 13, 2025
Merged

Conversation

olebole
Copy link
Member

@olebole olebole commented Mar 11, 2025

I think I found the cause for the failures in #491: One is what was already mentioned in #487 (review), and the other is similar in reproject/common.py. The reason why the patch shown in #491 didn't work was that the second patch in reproject/utils.py was actually wrong.

I applied this PR to the Debian package (merged with #487), and now all tests pass on s390x.

Disclaimer: This is a fix by a "poor stranger". I didn't dig into the structure of reproject for this but just fixed what could cause the failures. There may be other places with a similar issue, or side effects that are not covered by the CI tests. So, please carefully review whether this does what is intended, beside the CI.

Closes: #491

This fixes CI test failures on bigendian machines like s390x.
Copy link

codecov bot commented Mar 11, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.00%. Comparing base (56c5031) to head (d550eea).
Report is 5 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #492   +/-   ##
=======================================
  Coverage   91.00%   91.00%           
=======================================
  Files          25       25           
  Lines        1078     1078           
=======================================
  Hits          981      981           
  Misses         97       97           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@astrofrog
Copy link
Member

Thank you for the PR! I am first going to try and add a big-endian CI job to try and catch this kind of issue in future.

@astrofrog astrofrog merged commit ddda375 into astropy:main Mar 13, 2025
23 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.

Test failures on big endian machines
2 participants