ci: build the default graph on Rust 1.98, not 1.91 #179

Merged
sirius merged 1 commit from onionwire/ci-rust-198 into main 2026-10-09 00:45:27 +00:00
Owner

Why CI died

The Pi test job runs cargo test --locked inside rust:1.91-bookworm. cuprate-daemon is a default feature, so that command compiles tapes (Cuprate/Tapes rev 04562f4). tapes calls VecDeque::pop_front_if, which is unstable on 1.91 and stable since 1.93 (rust-lang/rust#135889, milestone 1.93.0).

The job gets through cmake, clippy, and most of the graph, then dies in tapes rolling_tape.rs with error[E0658]: use of unstable library feature vec_deque_pop_if on files.pop_front_if. That dependency cannot be patched from this repo. The Android workflows were already pinned to 1.98 for this exact error, and the comments said bumping ci.yml was a separate decision because the feature used to be off. It is on by default now, so the Linux CI job hits it too. release.yml would hit it on the next tag.

What changed

  • RUST_IMAGE in ci.yml, release.yml, and fuzz.yml: rust:1.91-bookworm to rust:1.98-bookworm. rust:1.98-bookworm and rust:1.98.1-bookworm both exist on Docker Hub. The fuzz job still compiles on nightly; the base image moves so a step that forgets +nightly does not die in tapes.
  • rust-version in the root Cargo.toml and crates/onionwire-sdk/Cargo.toml: 1.91 to 1.98. cargo checks this before features, so a 1.91 compiler is refused up front instead of fifteen minutes into tapes. --no-default-features would still compile on 1.91 (Arti 0.46's floor); the declared floor is the default build, which is what cargo build and CI run.
  • README, docs/ARTI_UPGRADE.md, the Android workflow comments, and android/CUPRATE_DAEMON.md no longer say ci.yml stays on 1.91.

Evidence

  • Host rustc 1.98.1 compiles VecDeque::pop_front_if (small probe, exit 0).
  • docker manifest inspect rust:1.98-bookworm succeeds.
  • cargo metadata --locked --no-deps succeeds for the root crate and the SDK workspace. No .rs files changed, so the suite was not re-run.
## Why CI died The Pi `test` job runs `cargo test --locked` inside `rust:1.91-bookworm`. `cuprate-daemon` is a default feature, so that command compiles `tapes` (Cuprate/Tapes rev `04562f4`). `tapes` calls `VecDeque::pop_front_if`, which is unstable on 1.91 and stable since **1.93** (rust-lang/rust#135889, milestone 1.93.0). The job gets through cmake, clippy, and most of the graph, then dies in `tapes` `rolling_tape.rs` with `error[E0658]: use of unstable library feature vec_deque_pop_if` on `files.pop_front_if`. That dependency cannot be patched from this repo. The Android workflows were already pinned to 1.98 for this exact error, and the comments said bumping `ci.yml` was a separate decision because the feature used to be off. It is on by default now, so the Linux CI job hits it too. `release.yml` would hit it on the next tag. ## What changed - `RUST_IMAGE` in `ci.yml`, `release.yml`, and `fuzz.yml`: `rust:1.91-bookworm` to `rust:1.98-bookworm`. `rust:1.98-bookworm` and `rust:1.98.1-bookworm` both exist on Docker Hub. The fuzz job still compiles on nightly; the base image moves so a step that forgets `+nightly` does not die in `tapes`. - `rust-version` in the root `Cargo.toml` and `crates/onionwire-sdk/Cargo.toml`: `1.91` to `1.98`. cargo checks this before features, so a 1.91 compiler is refused up front instead of fifteen minutes into `tapes`. `--no-default-features` would still compile on 1.91 (Arti 0.46's floor); the declared floor is the default build, which is what `cargo build` and CI run. - README, `docs/ARTI_UPGRADE.md`, the Android workflow comments, and `android/CUPRATE_DAEMON.md` no longer say ci.yml stays on 1.91. ## Evidence - Host `rustc 1.98.1` compiles `VecDeque::pop_front_if` (small probe, exit 0). - `docker manifest inspect rust:1.98-bookworm` succeeds. - `cargo metadata --locked --no-deps` succeeds for the root crate and the SDK workspace. No `.rs` files changed, so the suite was not re-run.
ci: build the default graph on Rust 1.98, not 1.91
All checks were successful
android-ci / android (pull_request) Successful in 12m6s
ci / test (pull_request) Successful in 30m41s
ci / sdk (pull_request) Successful in 14m52s
7391c5b7a4
`cuprate-daemon` is a default feature, so `cargo test --locked` in the Pi CI
job compiles `tapes`. That crate calls `VecDeque::pop_front_if`, stable only
since 1.93. `rust:1.91-bookworm` dies with `error[E0658]: use of unstable
library feature 'vec_deque_pop_if'` after the rest of the graph has already
built. The Android workflows were already on 1.98 for this; ci.yml and
release.yml were left on 1.91 when the feature was off, and that is no longer
true.

`rust-version` moves with the image. cargo checks it before features, so a
1.91 compiler must be refused up front instead of fifteen minutes into
`tapes`. `--no-default-features` would still compile on 1.91; the declared
floor is the default build's floor, which is what CI and `cargo build` run.
sirius merged commit 1031092192 into main 2026-10-09 00:45:27 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
sirius/onionwire!179
No description provided.