ci: build the default graph on Rust 1.98, not 1.91
`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.
This commit is contained in:
parent
d89539e8b0
commit
7391c5b7a4
12 changed files with 53 additions and 33 deletions
|
|
@ -70,14 +70,10 @@ env:
|
|||
ONIONWIRE_ANDROID_ABI: arm64-v8a
|
||||
ANDROID_IMAGE: debian:bookworm
|
||||
ANDROID_CMDLINE_TOOLS_URL: https://dl.google.com/android/repository/commandlinetools-linux-11076708_latest.zip
|
||||
# Not the workspace MSRV (`rust-version = "1.91"`, and `ci.yml` stays on it): the
|
||||
# cuprated graph needs more. `tapes` (a Cuprate dependency) calls
|
||||
# `VecDeque::pop_front_if`, stable only from **1.93**, so 1.91 dies with
|
||||
# `error[E0658]: use of unstable library feature 'vec_deque_pop_if'` — 15 minutes
|
||||
# into the Android job, after 400-odd crates, in a dependency this repo cannot
|
||||
# patch. 1.98 is the stable release this graph is built and tested with on the dev
|
||||
# machine. Bumping `ci.yml` too is a separate decision (it would move the MSRV for
|
||||
# the whole workspace) and is not this workflow's to make.
|
||||
# Same floor as ci.yml and release.yml (`rust:1.98-bookworm`). The cuprated
|
||||
# graph needs >= 1.93 (`tapes` calls `VecDeque::pop_front_if`); 1.91 dies with
|
||||
# `error[E0658]: use of unstable library feature 'vec_deque_pop_if'`. 1.98 is
|
||||
# the stable release this graph is built and tested with.
|
||||
RUST_TOOLCHAIN: "1.98"
|
||||
DOCKER_STATIC_URL: https://download.docker.com/linux/static/stable/x86_64/docker-27.5.1.tgz
|
||||
# Distinct container prefix: run ids are per-workflow, so this workflow and
|
||||
|
|
|
|||
|
|
@ -61,9 +61,8 @@ env:
|
|||
ONIONWIRE_REQUIRE_RELEASE_KEY: "true"
|
||||
ANDROID_IMAGE: debian:bookworm
|
||||
ANDROID_CMDLINE_TOOLS_URL: https://dl.google.com/android/repository/commandlinetools-linux-11076708_latest.zip
|
||||
# Same as android-ci.yml: the cuprated graph needs >= 1.93 (`tapes` uses
|
||||
# `VecDeque::pop_front_if`), and 1.98 is what this graph is built with. The
|
||||
# workspace MSRV in Cargo.toml is untouched; `ci.yml` and `release.yml` keep 1.91.
|
||||
# Same floor as ci.yml (`rust:1.98-bookworm`): the cuprated graph needs >= 1.93
|
||||
# (`tapes` uses `VecDeque::pop_front_if`), and 1.98 is what this graph is built with.
|
||||
RUST_TOOLCHAIN: "1.98"
|
||||
DOCKER_STATIC_URL: https://download.docker.com/linux/static/stable/x86_64/docker-27.5.1.tgz
|
||||
BUILD_CONTAINER: onionwire-android-${{ github.run_id }}
|
||||
|
|
|
|||
|
|
@ -51,7 +51,15 @@ concurrency:
|
|||
|
||||
env:
|
||||
CARGO_TERM_COLOR: never
|
||||
RUST_IMAGE: rust:1.91-bookworm
|
||||
# Not 1.91. `cuprate-daemon` is a default feature, so `cargo test --locked`
|
||||
# compiles `tapes`, which calls `VecDeque::pop_front_if` (stable since 1.93).
|
||||
# On `rust:1.91-bookworm` that is `error[E0658]: use of unstable library
|
||||
# feature 'vec_deque_pop_if'`, after the job has already built the rest of
|
||||
# the graph. 1.98 is the release this graph is built with on the dev machine
|
||||
# and in the Android workflows. `--no-default-features` still builds on 1.91
|
||||
# (Arti 0.46's floor); the default build does not, so the image follows the
|
||||
# default build.
|
||||
RUST_IMAGE: rust:1.98-bookworm
|
||||
CARGO_REGISTRY_VOLUME: onionwire-cargo-registry
|
||||
CARGO_TARGET_VOLUME: onionwire-target-ci
|
||||
BUILD_CONTAINER: onionwire-ci-${{ github.run_id }}
|
||||
|
|
|
|||
|
|
@ -30,7 +30,10 @@ concurrency:
|
|||
|
||||
env:
|
||||
CARGO_TERM_COLOR: never
|
||||
RUST_IMAGE: rust:1.91-bookworm
|
||||
# Base image only: the job switches to nightly before it compiles. Kept on
|
||||
# the same tag as ci.yml so a step that forgets `+nightly` does not die in
|
||||
# `tapes` on 1.91 (`VecDeque::pop_front_if`).
|
||||
RUST_IMAGE: rust:1.98-bookworm
|
||||
# The build needs a release profile + debug=line-tables-only, so it must not
|
||||
# thrash the test/sdk target volumes and needs its own registry cache.
|
||||
FUZZ_REGISTRY_VOLUME: onionwire-cargo-registry-fuzz
|
||||
|
|
|
|||
|
|
@ -45,7 +45,9 @@ concurrency:
|
|||
|
||||
env:
|
||||
CARGO_TERM_COLOR: never
|
||||
RUST_IMAGE: rust:1.91-bookworm
|
||||
# Same floor as ci.yml: the release binary has `cuprate-daemon` on by default,
|
||||
# and `tapes` does not build on 1.91 (`VecDeque::pop_front_if`, stable in 1.93).
|
||||
RUST_IMAGE: rust:1.98-bookworm
|
||||
# Not baking pkg-config/libssl-dev into a custom image on this card —
|
||||
# dind PVC would make that the durable fix for the apt loop. Filed separately.
|
||||
CARGO_REGISTRY_VOLUME: onionwire-cargo-registry
|
||||
|
|
|
|||
Loading…
Reference in a new issue