Skip to content

ci: pin the Rust toolchain to 1.99.1 so rust-checks can load libduckdb - #527

Closed
fstrasz wants to merge 1 commit into
chunkhound:mainfrom
fstrasz:ci/pin-rust-1.99.1
Closed

fstrasz wants to merge 1 commit into
chunkhound:mainfrom
fstrasz:ci/pin-rust-1.99.1

Conversation

@fstrasz

@fstrasz fstrasz commented Nov 13, 2026

Copy link
Copy Markdown
Contributor

Problem

Since stable Rust moved to 1.100.0 (around 18:30 UTC on 2026-11-12), rust-checks fails on all three OSes on every PR, including PRs that change nothing in Rust. The cargo test binary cannot load the downloaded libduckdb shared library.

The logs and our reading of the cause are in #524. In short, Cargo 1.100's new build-dir layout (rust-lang/cargo#17354) runs the test binary from a directory that two things no longer reach:

  • libduckdb-sys's copy of the library into <profile>/deps;
  • libduckdb-sys's rpath.

Fix

Pin dtolnay/rust-toolchain to 1.99.1 in .github/actions/setup-rust-toolchain/action.yml, with components: rustfmt, clippy.

The components are needed. A version-named toolchain installs with rustup's minimal profile. @stable got rustfmt and clippy from the runner image's preinstalled toolchain, and make rust-check needs both.

The pin also applies to the wheel builds that use this action (build-rust-extension, build-native-wheel).

This is a stopgap. A durable fix would point the test binary at the downloaded library under the new layout, so CI can return to @stable. We have not verified one yet. Revert this pin when one lands.

Verification

The same tree (main 24752d0 plus this change) ran upstream's CI workflow on our fork: https://github.com/fstrasz/chunkhound/actions/runs/43322047224

  • rust-checks passed on ubuntu, macOS and Windows under rustc 1.99.1. Each job ran cargo fmt and cargo clippy and passed its Rust tests: 140, 140 and 135 (some tests are platform-gated).
  • Every other job passed, including the jobs that build the native extension and wheels with this action: native-dev-macos, native-wheel-smoke-arm64 and both old-linux-wheel-smoke jobs.
  • One Windows Python test in watchman-runtime-validation failed on the first attempt and passed on the re-run. It doesn't involve the Rust toolchain.

This PR's own CI run checks the same thing upstream.

There is no CHANGELOG.md entry, because this changes CI only.

Fixes #524.

🤖 Generated with Claude Code, reviewed by FStrasz

Since stable Rust moved to 1.100.0, rust-checks fails on every OS: the
cargo test binary cannot load the libduckdb shared library that
libduckdb-sys downloads. Cargo 1.100's new build-dir layout runs the test
binary from a directory that neither libduckdb-sys's copy into
<profile>/deps nor its rpath reaches (chunkhound#524).

Pin dtolnay/rust-toolchain to 1.99.1 until there is a durable fix. A
version-named toolchain installs with rustup's minimal profile, so
rustfmt and clippy, which make rust-check needs, are listed as
components.

Fixes chunkhound#524.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@fstrasz

fstrasz commented Nov 13, 2026

Copy link
Copy Markdown
Contributor Author

native-dev-macos failed on this PR's run, but not because of this change. Could a maintainer re-run that job? We can't re-run jobs in this repository.

The failure is in the smoke tests that make dev runs. test_cli_help_commands timed out after 5 seconds on uv run chunkhound --help, --version and index --help: 3 failed and 11 passed, in 64.3 s (job).

It looks like a slow runner:

rust-checks, the job this PR fixes, passed on ubuntu, macOS and Windows.

🤖 Generated with Claude Code, reviewed by FStrasz

@ofriw

ofriw commented Nov 15, 2026

Copy link
Copy Markdown
Collaborator

Stopgap only. The durable fix is tracked in #529. Keep the 1.99.1 pin until #529 lands, then return this action to @stable.

@fstrasz

fstrasz commented Nov 17, 2026

Copy link
Copy Markdown
Contributor Author

#534 fixed rust-checks on @stable, so this pin is no longer needed.

🤖 Generated with Claude Code, reviewed by FStrasz

@fstrasz fstrasz closed this Nov 17, 2026
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.

CI: rust-checks fails on every OS since Rust 1.100.0 (Cargo's new build-dir layout; the test binary can't load libduckdb)

2 participants