Skip to content

fix(arrow-schema): stop asserting on unstable TryFromIntError message in tests#10433

Merged
alamb merged 1 commit into
apache:mainfrom
bit2swaz:fix/miri-tryfromint-message
Jul 25, 2026
Merged

fix(arrow-schema): stop asserting on unstable TryFromIntError message in tests#10433
alamb merged 1 commit into
apache:mainfrom
bit2swaz:fix/miri-tryfromint-message

Conversation

@bit2swaz

Copy link
Copy Markdown
Contributor

Which issue does this PR close?

No separate issue. The fix is one line per test case and the failing CI runs are evidence enough.

Rationale for this change

MIRI CI uses nightly Rust. A recent nightly changed the Display output of TryFromIntError from "out of range integral type conversion attempted" to "number too large to fit in target type" (and similar variants). Tests in datatype_parse.rs were asserting on that stdlib-owned suffix, so they broke on MIRI without any change to our code.

What changes are included in this PR?

Trimmed 9 expected substrings in parse_data_type_errors to stop at the : that separates our message from the stdlib one. The tests now only assert on the part of the error string we control.

Are these changes tested?

parse_data_type_errors passes on stable. MIRI CI should go green once this merges.

Are there any user-facing changes?

No. Test-only change, no behavior or API impact.

@bit2swaz
bit2swaz force-pushed the fix/miri-tryfromint-message branch from 96f5a42 to b373c23 Compare July 25, 2026 03:30
@github-actions github-actions Bot added the arrow Changes to the arrow crate label Jul 25, 2026

@alamb alamb left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thank you @bit2swaz

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

arrow Changes to the arrow crate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants