Skip to content

fix: Read empty array test offsets at their native width - #997

Merged
paleolimbot merged 1 commit into
apache:mainfrom
paleolimbot:codex/fix-big-endian
Oct 26, 2026
Merged

paleolimbot merged 1 commit into
apache:mainfrom
paleolimbot:codex/fix-big-endian

Conversation

@paleolimbot

Copy link
Copy Markdown
Member

The latest verify run (https://github.com/apache/arrow-nanoarrow/actions/runs/40148573730) fails on s390x because ArrayTestFinishBuildingEmptyArrayOffsets copies four bytes into an int64_t initialized to -1, then truncates the untouched low bytes on big-endian systems. Read each offset into an integer of the matching width.

Reproduced all four failing assertions under QEMU s390x before the fix. Afterward, the core CTest suite passes on s390x and native x86-64: 287 passed, three skipped on each. clang-format and git diff --check pass. The full release verification workflow was not rerun.

@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 78.58%. Comparing base (41c78c4) to head (8e3006c).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #997   +/-   ##
=======================================
  Coverage   78.58%   78.58%           
=======================================
  Files         106      106           
  Lines       17173    17173           
  Branches     2045     2045           
=======================================
  Hits        13495    13495           
  Misses       2427     2427           
  Partials     1251     1251           

☔ View full report in Codecov by Harness.
📢 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.

@paleolimbot
paleolimbot marked this pull request as ready for review October 26, 2026 03:10
@paleolimbot paleolimbot changed the title fix(src): Read empty array test offsets at their native width fix: Read empty array test offsets at their native width Oct 26, 2026
@paleolimbot
paleolimbot merged commit 2778f73 into apache:main Oct 26, 2026
40 of 42 checks passed
@paleolimbot
paleolimbot deleted the codex/fix-big-endian branch October 26, 2026 03:14
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.

2 participants