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

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

@alamb
alamb merged commit b278c54 into apache:main Jul 25, 2026
30 checks passed
@Jefffrey Jefffrey added the development-process Internal changes; PRs with this label are excluded from changelog label Jul 28, 2026
alamb pushed a commit to alamb/arrow-rs that referenced this pull request Oct 20, 2026
… in tests (apache#10433)

# 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.

(cherry picked from commit b278c54)
Jefffrey added a commit that referenced this pull request Oct 21, 2026
…oc, MIRI and integration test fixes (#11727)

# Which issue does this PR close?

- Part of #11665 (58.4.1 release)

# Rationale for this change

CI on the 58_maintenance branch is red on every PR (e.g. #11365, #11703,
#11704, #11705, #11707) for reasons unrelated to those PRs.



# What changes are included in this PR?

- Check in the root `Cargo.lock`, the same approach as
#9941
- Backport #11305: remove duplicate `homepage` entries and let rustdoc
infer the targets of five `arrow-avro` intra-doc links.
- Backport #10433: stop asserting on the unstable `TryFromIntError`
message in the `arrow-schema` tests.
- Backport #9888: support `ListView`, `BinaryView` and `RunEndEncoded`
in the integration test JSON parser.

# Are these changes tested?

Yes by CI

# Are there any user-facing changes?

No.

---------

Signed-off-by: Jiawei Zhao <[email protected]>
Co-authored-by: Aditya Mishra <[email protected]>
Co-authored-by: Dewey Dunnington <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Jeffrey Vo <[email protected]>
Co-authored-by: Phoenix <[email protected]>
Co-authored-by: Claude Fable 5.1 <[email protected]>
Jefffrey added a commit that referenced this pull request Oct 21, 2026
…9888, #10433, #11305 (#11728)

# Which issue does this PR close?

- Part of #11666 (57.3.2 release)

# Rationale for this change

The `Verify MSRV` job fails on PRs against `57_maintenance` (for example
#11726) for reasons unrelated to those PRs.

# What changes are included in this PR?

Check in the root `Cargo.lock` (same approach as #9941 on `main`).

This PR also carries the following backports needed to get CI green on
`57_maintenance`:

- #11305: remove redundant homepage and doc links (via the
`59_maintenance` backport #11354)
- #9888: 
- #10433: (fixes MIRI CI)
- Fix Audit and MSRV CI jobs: install `cargo-audit` / `cargo-msrv` with
`--locked` and ignore RUSTSEC-2026-0194/0195/0176/0177 (as on
`59_maintenance`)

# Are these changes tested?

CI
# Are there any user-facing changes?

No. This only affects dependency resolution for workspace builds and CI.

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
Co-authored-by: Jeffrey Vo <[email protected]>
Co-authored-by: Dewey Dunnington <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Aditya Mishra <[email protected]>
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 development-process Internal changes; PRs with this label are excluded from changelog

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants