Skip to content

Fix MSRV check by checking in Cargo.lock - #9941

Merged
alamb merged 1 commit into
apache:mainfrom
alamb:alamb/fix_main_msrv_cargo_lock
May 7, 2026
Merged

alamb merged 1 commit into
apache:mainfrom
alamb:alamb/fix_main_msrv_cargo_lock

Conversation

@alamb

@alamb alamb commented May 7, 2026 •

Copy link
Copy Markdown
Contributor

NOTE: All of this PR is Cargo.lock. I swear it is easy to review...

Which issue does this PR close?

Rationale for this change

The guidance on lock files from the Cargo folks changed a while ago: https://blog.rust-lang.org/2023/08/29/committing-lockfiles/

The MSRV check is failing on main because dependency resolution currently uses the latest compatible versions from crates.io for each package. The newest tonic release now require a newer Rust version than the workspace MSRV.

Here is the reported CI failure: https://github.com/apache/arrow-rs/actions/runs/25472344356/job/74738606768

error: rustc 1.85.0 is not supported by the following packages:
  [email protected] requires rustc 1.88
  [email protected] requires rustc 1.88

What changes are included in this PR?

This PR checks in a root Cargo.lock so CI verifies MSRV against the dependency set we control, rather than the tip of all dependency ranges. The generated lockfile pins the tonic 0.14 crates to 0.14.5, which supports Rust 1.85.

Note this does not change code in the crates. It only pins dependency resolution for workspace builds and CI.

This will result in more dependabot PRs to explicitly update the crate versions, but I think that is a good thing. I think the existing config file will work fine https://github.com/apache/arrow-rs/blob/main/.github/dependabot.yml

Are these changes tested?

Yes, by CI

This passed locally with Rust 1.85.0.

Are there any user-facing changes?

No. This only checks in the root lockfile used for dependency resolution in workspace builds and CI.

@alamb
alamb marked this pull request as ready for review May 7, 2026 13:11

@Jefffrey Jefffrey 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.

I wonder if we'll need to bump open PR limit and/or group these other dependency updates like we did in DataFusion

@alamb alamb mentioned this pull request May 7, 2026
@alamb

alamb commented May 7, 2026 •

Copy link
Copy Markdown
Contributor Author

I wonder if we'll need to bump open PR limit and/or group these other dependency updates like we did in DataFusion

I think arrow has many fewer dependencies so I am hoping we can avoid having to do so, but I suppose we'll see

@alamb

alamb commented May 7, 2026

Copy link
Copy Markdown
Contributor Author

Thank you for the review @Jefffrey

@alamb
alamb merged commit c2021f1 into apache:main May 7, 2026
17 checks passed
Rich-T-kid pushed a commit to Rich-T-kid/arrow-rs that referenced this pull request Jun 2, 2026
NOTE: All of this PR is `Cargo.lock`. I swear it is easy to review...

# Which issue does this PR close?

- Closes apache#9938.
- Modeled on apache#9902.

# Rationale for this change

The guidance on lock files from the Cargo folks changed a while ago:
https://blog.rust-lang.org/2023/08/29/committing-lockfiles/

The MSRV check is failing on `main` because dependency resolution
currently uses the latest compatible versions from crates.io for each
package. The newest `tonic` release now require a newer Rust version
than the workspace MSRV.

Here is the reported CI failure:
https://github.com/apache/arrow-rs/actions/runs/25472344356/job/74738606768

```text
error: rustc 1.85.0 is not supported by the following packages:
  [email protected] requires rustc 1.88
  [email protected] requires rustc 1.88
```

# What changes are included in this PR?

This PR checks in a root `Cargo.lock` so CI verifies MSRV against the
dependency set we control, rather than the tip of all dependency ranges.
The generated lockfile pins the `tonic` 0.14 crates to `0.14.5`, which
supports Rust 1.85.

Note this does not change code in the crates. It only pins dependency
resolution for workspace builds and CI.

This will result in more dependabot PRs to explicitly update the crate
versions, but I think that is a good thing. I think the existing config
file will work fine
https://github.com/apache/arrow-rs/blob/main/.github/dependabot.yml

# Are these changes tested?

Yes, by CI 

This passed locally with Rust 1.85.0.

# Are there any user-facing changes?

No. This only checks in the root lockfile used for dependency resolution
in workspace builds and CI.
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

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

msrv check failing on main due to [email protected]

2 participants