Skip to content

feat: bump ic-wasm and drop syn 3 - #11016

Merged
nmattia merged 2 commits into
masterfrom
nm-bump-ic-wasm
Aug 4, 2026
Merged

nmattia merged 2 commits into
masterfrom
nm-bump-ic-wasm

Conversation

@nmattia

@nmattia nmattia commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

This bumps to ic-wasm 0.11.1 which relaxes the bounds on syn, which (with some more pinning gymnastics) allows us to drop the recently released syn v3 crate. We already depend on syn v1 & v2, and we'll update everything to v3 later.

This bumps to ic-wasm 0.11.1 which relaxes the bounds on `syn`, which
(with some more pinning gymnastics) allows us to drop the recently
released syn v3 crate. We already depend on syn v1 & v2, and we'll
update everything to v3 later.
@github-actions github-actions Bot added the feat label Aug 4, 2026
@nmattia
nmattia marked this pull request as ready for review August 4, 2026 09:39
@nmattia
nmattia requested a review from a team as a code owner August 4, 2026 09:39
@nmattia
nmattia enabled auto-merge August 4, 2026 09:39
@github-actions github-actions Bot added the @idx label Aug 4, 2026
@nmattia
nmattia added this pull request to the merge queue Aug 4, 2026
Merged via the queue into master with commit 32e7d53 Aug 4, 2026
41 checks passed
@nmattia
nmattia deleted the nm-bump-ic-wasm branch August 4, 2026 11:04
valorjesson-commits pushed a commit to Marketearth/ic that referenced this pull request Oct 3, 2026
… 1.99.0 (dfinity#11734)

`cargo clippy` fixes to prepare for upgrading to
[rustc-1.99.0](https://blog.rust-lang.org/2026/10/01/Rust-1.99.0/).

Clippy 0.1.99 and rustc 1.99.0 report diagnostics at **124 sites** that
1.98.1 does not, in 67
source files plus 5 tonic-generated ones. 107 of these sites are clippy
false positives in
macro-generated code; the other 17 are fixed in the code:

| lint | sites | why it fires now | fix |
| --- | --: | --- | --- |
|
[`double_must_use`](https://rust-lang.github.io/rust-clippy/rust-1.99.0/index.html#double_must_use)
| 66 | [#16633](rust-lang/rust-clippy#16633)
makes clippy use rustc's `#[must_use]` determination. Clippy now sees
that the `Pin<Box<dyn Future>>` an `#[async_trait]` method returns is
already `#[must_use]`, and flags the `#[must_use]` that async-trait adds
to it. That hits every one of the 61 `#[async_trait]` traits in the
workspace, plus 5 tonic-generated ones (141 diagnostics, one per async
method) | `--allow` (see below) |
|
[`redundant_field_names`](https://rust-lang.github.io/rust-clippy/rust-1.99.0/index.html#redundant_field_names)
| 41 | [#17294](rust-lang/rust-clippy#17294)
moved the macro check from the struct expression to its fields. In
derive output the fields' spans point at user code: thiserror's `From`
impl for `#[from] source` fields (16) and `derive_new::new` (25, all in
`ic_boundary`) | `--allow` (see below) |
| `deprecated` (rustc) | 13 |
[rust#148590](rust-lang/rust#148590) deprecates
`Atomic*::fetch_update` in favour of its new name `try_update` (3).
[rust#146882](rust-lang/rust#146882) fully
deprecates the legacy `std::f32`/`std::f64` module constants, which `use
std::f32;`/`use std::f64;` made `f32::NAN` etc. resolve to (10) |
`fetch_update` → `try_update`; drop `use std::f64;` from `metrics_proxy`
and `use std::f32;`/`use std::f64;` from `nan_canonicalized` (see below)
|
|
[`nonstandard_macro_braces`](https://rust-lang.github.io/rust-clippy/rust-1.99.0/index.html#nonstandard_macro_braces)
| 3 | [#16808](rust-lang/rust-clippy#16808)
moved the lint from `nursery` to `style`, so `clippy::all` now enables
it | `format! {..}` / `write! {..}` → `format!(..)` / `write!(..)` |
|
[`single_element_loop`](https://rust-lang.github.io/rust-clippy/rust-1.99.0/index.html#single_element_loop)
| 1 | [#16513](rust-lang/rust-clippy#16513): now
also fires when the loop body is a single expression | `for (flag, s) in
[(sns, "sns")] { if flag.is_some() { .. } }` → `if sns.is_some() { .. }`
|

Three of these deserve a word:

* **`double_must_use` and `redundant_field_names` are allowed globally**
rather than at each site,
both in `ci/scripts/rust-lint.sh` and in the second clippy gate, the
PocketIC Windows lint
(`.github/workflows/pocket-ic-tests-windows.yml`). Its `cargo clippy -p
pocket-ic` also lints
pocket-ic's workspace path dependencies, which include `#[async_trait]`
traits. The lints flag code
that the macros generate, not code anyone wrote. Per-site `#[allow]`s
would touch 64 files across
most teams: the 59 with flagged code plus the 5 that include
tonic-generated code. Every new
`#[async_trait]` trait, `#[from] source` field or `#[derive(new)]`
struct would then need one too.
- The trade-off: until the allows are removed, both lints also stop
catching hand-written code.
  - Clippy has already fixed the first one
([#17547](rust-lang/rust-clippy#17547), merged
after 1.99 branched, so
    it ships in 1.100). The second is still open as
    [#17525](rust-lang/rust-clippy#17525).
- Upgrading the macros instead is not an option. async-trait 0.1.92 and
thiserror 2.0.20 do
suppress the lints in their output, but both require syn 3, which this
repo deliberately avoids
(`thiserror = "=2.0.18"`, dfinity#11016). derive-new has had no release since
0.7.0.
- This is how the 1.88 upgrade (dfinity#6045) handled `uninlined_format_args`.

The Windows workflow's path filter now also matches
`rust-toolchain.toml`, so a toolchain bump
(like the PR stacked on this one) runs the Windows lint and tests before
it merges, rather than
  first in the next daily run on master.

* **`use std::f32;` / `use std::f64;`** bring the *module* into scope.
For names that exist in that
module it shadows the primitive type. So `f64::INFINITY` resolved to the
deprecated
`std::f64::INFINITY` rather than the associated constant on `f64` (same
value), while `f64::ln`
and the like fell through to the primitive type. Without the imports
every `f32::…`/`f64::…` path
  in those two files resolves to the primitive type.

* **`try_update`** is `fetch_update` under its new name: same arguments,
same result. It has been
stable since 1.95, so it also builds on the currently pinned toolchain.

Because this PR lands *before* the toolchain bump, it has to stay clean
on 1.98.1 too. It does not
name any lint that is new in 1.99: both allowed lints exist in Clippy
0.1.98, so there is no
`unknown_lints` issue. It also uses no API that 1.98.1 lacks.

The toolchain upgrade itself is the PR stacked on top of this one.

## Testing

* `./ci/scripts/rust-lint.sh` exits 0 both on the currently pinned
**1.98.1** and on **1.99.0**.
* On 1.98.1, these pass:
  * `cargo check --all-targets --all-features` of the 7 touched crates
  * `bazel build` of the 8 directly affected targets
* Of the 464 tests that depend on the touched files within two hops, 459
passed locally before the
run was stopped in favour of CI, which passes on all targets
(`CI_ALL_BAZEL_TARGETS`). The 3 local
  failures are environmental:
* two golden-state tests: `golden_state_swap_upgrade_twice` cannot fetch
its state over SSH from
the dev environment, and `upgrade_canisters_with_golden_nns_state` needs
    `NNS_CANISTER_UPGRADE_SEQUENCE`
  * a cketh minter test timed out under full machine load

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
basvandijk pushed a commit to Ocheretovich/ic that referenced this pull request Oct 23, 2026
…nity#11910)

This bumps the third-party crates used by the p2p crates as part of a
larger p2p maintenance round. The main reason is a set of security fixes
in quinn-proto and rustls. The rest are semver-compatible updates of the
same dependency set.

## Security fixes

**quinn-proto 0.11.15 → 0.11.19**, via quinn 0.11.11 → 0.11.12

**rustls 0.23.45 → 0.23.46**

Transitive dependencies, pinned in the lockfiles only:
- rustls-webpki 0.103.15 → 0.103.16
- h2 → 0.4.20, from 0.4.4 in Bazel and 0.4.13 in Cargo

## Other updates

These are semver-compatible. Versions are as resolved in
`Cargo.Bazel.toml.lock`:
- tokio 1.50.0 → 1.54.0, tokio-util 0.7.17 → 0.7.20, tokio-metrics 0.4.0
→ 0.4.9
- bytes 1.11.1 → 1.12.1, futures 0.3.31 → 0.3.33, http 1.3.1 → 1.5.0,
http-body-util 0.1.3 → 0.1.5, tower 0.5.2 → 0.5.3
- socket2 0.5.9 → 0.5.10, turmoil 0.6.4 → 0.6.6, rcgen 0.13.1 → 0.13.2,
tempfile 3.23.0 → 3.27.0
- zstd 0.13.2 → 0.13.3. Bazel keeps zstd-sys on libzstd 1.5.6.
- In `Cargo.lock` only: prost and prost-build 0.14.3 → 0.14.4. Bazel was
already on 0.14.4.
- Transitive: mio 1.0.2 → 1.2.4, slab 0.4.8 → 0.4.12, socket2 0.6.1 →
0.6.5. quinn-proto now also pulls in rand_pcg 0.10.2.

None of the APIs deprecated in these version ranges is used in the repo.
No crate needs a Rust version newer than 1.85.

## Held back

- tokio-macros 2.7.2 and futures-macro 0.3.34 require syn 3, which
dfinity#11016 keeps out of the workspace. So tokio-macros stays at 2.7.1 and
futures at 0.3.33.
- async-trait (0.1.90+) and serde (1.0.229) aren't bumped for the same
reason. thiserror stays pinned at `=2.0.18`.
- No semver-major updates: socket2 0.6, tokio-metrics 0.5, zstd 0.14,
turmoil 0.7 and rand 0.10 are left out.

## Recently released versions

These were released less than two weeks before this PR was opened
(2026-10-21):
- rustls-webpki 0.103.16: 2026-10-20
- tokio 1.54.0: 2026-10-19
- rustls 0.23.46: 2026-10-14
- tokio-util 0.7.20: 2026-10-09

rustls and rustls-webpki are part of the security fixes, and no older
release contains them. tokio and tokio-util could instead go to 1.53.2
(2026-10-03) and 0.7.19 (2026-07-21) without changing anything else in
this PR. Everything else is at least two weeks old.

## Notes for reviewers

- quinn-proto 0.11.19, rustls-webpki 0.103.16, h2 0.4.20, tokio-macros
2.7.1 and the futures 0.3.33 crates are pinned only in the lockfiles.
When resolving a lockfile conflict, don't take the older versions. Repin
with, for example, `./bin/bazel-pin.sh quinn-proto=0.11.19`. rules_rust
0.74 expects `name=version`, not the `name@version` shown in the
script's help.
- The last quinn bump (dfinity#10174) was reverted because wasm-bindgen leaked
into canister builds. This change adds no wasm32-specific dependencies
or features to `Cargo.Bazel.json.lock`.

## Testing

- `bazel build //...`: all 3,369 targets build.
- `./ci/scripts/rust-lint.sh` passes.
- `bazel test //... --test_tag_filters=-system_test`: 941 of 946 tests
pass, including all p2p tests. The 5 failures are golden-state tests
that can't fetch the mainnet state without an ssh key, unrelated to this
change.
- System tests, Farm backend: `//rs/tests/idx:basic_health_test_farm`,
`//rs/tests/networking:network_reliability_test_farm`,
`//rs/tests/message_routing:state_sync_malicious_chunk_test_farm` and
`//rs/tests/consensus:catch_up_possible_test_farm` all pass.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 5.5 <[email protected]>
q-uint pushed a commit to Swiss-Subnet/ic that referenced this pull request Nov 19, 2026
…ompatible versions (dfinity#12177)

Refreshes both lock sets (`Cargo.lock` and
`Cargo.Bazel.{toml,json}.lock`) to the newest semver-compatible
versions, and fixes the Cargo/Bazel drift that had built up between
them.
- Bazel (what CI tests and what we ship) moves 541 locked versions, and
Cargo 363.
- Before this PR, 362 crates.io packages that both locks contain were
locked at different versions. Now 31 are, each one explained
[below](#remaining-cargo-vs-bazel-differences).

This is the first of a series of dependency-upgrade PRs.
- The updates most likely to change canister or replica behaviour are
held back here and follow in small owner-reviewed PRs: canister runtime
(candid, ic-cdk, num-bigint, serde_json, time, …) and replica runtime
(wasmtime 48.0.9, flate2, the TLS stack). Smaller behaviour changes do
land; they are listed under [Behaviour changes](#behaviour-changes-fyi).
- Major-version bumps follow separately.

No `BUILD.bazel` changes. The only `.rs` changes are [test
fixes](#test-fixes).

# Changes

## Lift the syn 3 ban

dfinity#11016 banned syn 3 as a stopgap ("we'll update everything to v3
later"). The latest releases of 27 crates in our graph now require it:
21 proc-macros (serde_derive, tokio-macros, clap_derive, async-trait, …)
and 6 macro-support or code-generation libraries (darling_core,
pest_generator, prettyplease, prost-build, synstructure,
wasm-bindgen-macro-support). Keeping the ban would hold them at their
last syn-2 releases, and with them clap (4.6.3), serde (1.0.228) and
futures (0.3.33), which require their macro crates at exact versions.
- `thiserror = "=2.0.18"` → `2.0.21`, in both `Cargo.toml` and
`bazel/rust.MODULE.bazel`.
- The `enum-ordinalize-derive = "=4.4.1"` constraint spec and the "DO
NOT upgrade" comments are deleted.
- syn 3 now coexists with syn 2. The repo's own proc-macros stay on syn
2.
- The tarpc fork stays for now. Its comment gives syn 3 as the reason,
but the published tarpc that uses syn 3, 0.38.0, is a
semver-incompatible bump and follows with the major-version PRs.

The published `pocket-ic` 16.x inherited the exact `=2.0.18` pin, so a
new `pocket-ic` release unblocks downstream users.

## Refresh

`cargo update` and `./bin/bazel-pin.sh --full`.
- This also clears 4 yanked locked versions: chacha20 0.10.0 (SIGILL on
x86 without SSE4.1) and spin 0.9.8 in both locks, plus iana-time-zone
0.1.59 and rgb 0.8.37 in Bazel.
- `cc` is constrained to `~1.2`, both in the Bazel spec (was `=1.2.48`)
and in `rs/canister_sandbox`, so it stays on the 1.2 line. The `=1.2.48`
pin existed only for `bazel/cc_rs.patch`, which dfinity#10991 deleted. cc 1.11
changes default C flags (e.g. `-march=x86-64` for GCC) and how C++ code
links, so it will be its own PR.

## Held back

Except where noted, each lock keeps the version it had before this PR.
These move in follow-up PRs reviewed by their owners:
- **Execution / crypto / networking:**
- wasmtime/pulley 48.0.7 (cranelift 0.135.7) and wirm 4.0.4. This
includes cranelift's internal crates (`cranelift-assembler-x64`,
`-assembler-x64-meta`, `-codegen-shared`, `-control`, `-srcgen`) and
regalloc2, which cranelift requires with caret ranges.
  - flate2.
- The TLS stack: aws-lc-rs/aws-lc-sys, rustls-pki-types, rustls-webpki,
webpki-roots and webpki-root-certs, tokio-rustls, hyper-rustls,
rustls-native-certs/openssl-probe, async-web-client, and brotli
8/brotli-decompressor 5, which rustls uses to compress certificates in
node-to-node TLS. For example, rustls-pki-types 1.16 strips a trailing
dot from server names, and webpki-root-certs 1.0.12 would change
ic-gateway's trust roots.
- **Canister runtime:**
  - candid, ic-cdk/ic0, num-bigint, rust_decimal, serde_json.
- serde_with stops at 3.22.0, up from 3.21.0. It is the newest release
that works with the held serde_json, and its changes touch only adapters
we don't use.
  - time, walrus (ic-wasm's copy), ic-stable-structures (Bazel).
- The rust-bitcoin `.101` family, secp256k1 0.29 and secp256k1-sys 0.10.
- **Breaks the build:** systemstat stops at 0.2.7, which both locks now
use. 0.2.8 adds a `RefCell` to the Linux `PlatformImpl`, so it is no
longer `Sync`, and ic-bn-lib's `GetsSystemInfo: Send + Sync` bound fails
to compile.
- **Bazel only:**
- assert_cmd 2.0.16. From 2.2, `cargo_bin` panics instead of returning
`Err`, which breaks `fstrim_tool_integration` under Bazel.
- ssh2/libssh2-sys, whose new version bumps the libssh2 C library and
needs `bazel/libssh2-sys.patch` removed.
- libfuzzer-sys 0.4.7. From 0.4.8, `test_input_wrap` is an `unsafe fn`,
which no longer fits the `fn` callback type that
`//rs/execution_environment/fuzz:fuzzer_sandbox` passes to
`LLVMFuzzerRunDriver`.
- ping 0.5.0. From 0.5.1, `dgramsock::ping` waits for a reply that
carries its request's ICMP echo identifier, but Linux ping sockets
replace that identifier, so every ping times out. SetupOS/HostOS uplink
detection then finds no interface, HostOS creates no `br6` bridge, and
the GuestOS VM never starts. This failed the 8 `//rs/tests/nested` tests
that boot a HostOS built from this branch.

## Annotation and patch updates

- The wasm32 getrandom override annotation hard-coded the repo names
`crate_index__getrandom-0.2.10`, `crate_index__cfg-if-1.0.0` and
`crate_index__libc-0.2.186`, which the refresh replaces.
  - cfg-if and libc now use the version-independent hub labels.
  - getrandom is updated to 0.2.17.
- `bazel/pkg-config.patch` is rebased onto pkg-config 0.3.34, whose new
`probe_cflags` field changed the hunk's last context line. Bazel's
patcher would still apply the old hunk with fuzz; the rebased one
applies exactly.

## Cargo/Bazel sync

- Aligned requirements: axum-server, humantime 2.4 (the locks differed),
ic-cbor, ic-certification, ic_principal, indexmap, nftables,
parking_lot, procfs, scopeguard, tar and walkdir.
- Cargo floors raised to Bazel's: time 0.3.47 (RUSTSEC-2026-0009),
tracing-subscriber 0.3.20 (RUSTSEC-2025-0055), rsa 0.9.10.
- dashmap: the Bazel spec was `^5.3.4`, so Bazel built ic-boundary
against dashmap 5 while Cargo used 6. It is now 6.2.1 in both.
- insta becomes a workspace dependency at 1.49.
- ic-canister-sig-creation: Bazel used a git rev, Cargo crates.io 1.3.1.
Both now use crates.io 1.3.1; the source is identical.
- Feature sets:
- rustix: `stdio`/`termios` in both, plus `fs` in Bazel (Cargo already
had it). infogetty uses all three, but they were only enabled
transitively: `stdio`/`termios` by crossterm, and Bazel's `fs` by
tempfile, memfd and xattr.
  - libcryptsetup-rs `mutex` is added in Cargo.
  - backon `std-blocking-sleep`, unused, is dropped in Bazel.
- `chrono_canisters` moves to tag v0.4.44. It must differ from registry
chrono's version, because cargo-bazel keys crates by name and version.

## Unreferenced `crate.spec`s deleted

addr, bindgen, chacha20poly1305, cidr, console, enum-ordinalize-derive,
ff, form_urlencoded, ic-cdk-executor, pkg-config (its patch annotation
stays), rustversion, tabled, toml, tracing-slog.

No BUILD file or manifest references them. Some pinned dead old versions
into the Bazel graph.

## `bin/bazel-pin.sh`

- New `--full` flag, optionally followed by crates to pin afterwards.
The no-argument default is a minimal `cargo update --workspace`, which
cannot refresh transitive crates.
- Several crates are now repinned one at a time. Before, rules_rust read
them as one invalid package spec.
- The help text said `[email protected]` for a precise pin, which is wrong;
it now shows `serde=1.0.130` and `[email protected]=1.0.130`. Its dead link
to the rules_rust docs now points at the code that parses
`CARGO_BAZEL_REPIN`.

## Test fixes

- **Snapshot heap-delta rate-limit tests** (`rs/execution_environment`).
`take_canister_snapshot_fails_when_heap_delta_rate_limited` and
`load_canister_snapshot_fails_when_heap_delta_rate_limited` set their
heap-delta rate limits (80,000 and 150,000 bytes) just below the heap
delta of one and two snapshots of the universal canister (86,016 bytes
each).
  - That heap delta is mostly the canister's data-segment pages.
- The refresh builds the universal canister with pretty 0.12.5 (a candid
dependency), which uses unicode-width's tables instead of
unicode-segmentation's. Its data segments shrink by 4 pages, to 69,632
bytes per snapshot, so neither test reached its limit anymore. The
replica's behaviour is unchanged.
- The tests now write 1 MiB of stable memory before taking the snapshot
and set the limits relative to it, so they no longer depend on the
canister's size.
- **`subnet_splitting` integration test** (`rs/recovery`). The rebuilt
universal and proxy canisters execute slightly different instruction
counts, so the split-finder picks a different, equally balanced split
with the same totals. The expected per-subnet values are updated, as
dfinity#11932 and dfinity#12143 did.
- **NNS governance canbench**, regenerated with `bazel run
//rs/nns/governance:governance-canbench_update`. Two of the 28
benchmarks moved beyond the noise threshold:
`neuron_metrics_calculation` +8.67% (3.65M instructions) and
`draw_maturity_from_neurons_fund` -6.67% (7.12M). Only instruction
counts changed; heap and stable-memory increases are the same.
@dfinity/governance-team

## Remaining Cargo-vs-Bazel differences

Among crates.io packages that both locks contain:
- **Held back (19):**
- assert_cmd, libfuzzer-sys, ping and ssh2/libssh2-sys are held in Bazel
only, while Cargo has their newest releases (2.2.2, 0.4.13, 0.5.2 and
0.9.7/0.3.4).
- bitcoin-io, bitcoin_hashes, brotli, flate2, ic-stable-structures,
openssl-probe, rustls-native-certs, rustls-pki-types, secp256k1,
secp256k1-sys, serde_json, tokio-rustls, webpki-root-certs and
webpki-roots keep each lock's version from before this PR.
- **Extra versions that only Bazel targets use (12):**
- ssh2 0.9.4 pulls in parking_lot 0.11, parking_lot_core 0.8,
redox_syscall 0.2 and bitflags 1.
- ic-wasm's `check-endpoints` feature, enabled only in Bazel, pulls in
candid_parser 0.4.1 and logos 0.14 (+ `-codegen`, `-derive`). Through
toml 0.8 it also brings toml_edit 0.22, toml_datetime 0.6 and winnow
0.7.
  - little-loadshedder pulls in tower 0.4.

16 more packages are in only one lock:
- Bazel only:
- from ic-wasm's `check-endpoints`: handlebars, derive_builder (+
`_core`, `_macro`), num-order, num-modular, toml and serde_spanned (all
via candid_parser 0.4.1), and parse-display (+ `-derive`);
- from the Bazel-only holds: instant (parking_lot 0.11) and doc-comment
(assert_cmd 2.0.16);
- declared only in BUILD files: little-loadshedder, quickcheck and
syscalls.
- Cargo only: zmij (serde_json 1.0.149).

Bazel also locks chrono 0.4.44 from git, for `chrono_canisters`.

# Behaviour changes (FYI)

- **zstd:** libzstd 1.5.6 → 1.5.7 (zstd-sys 2.1.3). This affects replica
state-sync chunk compression (wire-compatible) and the orchestrator's
subnet-recovery `tar.zst` downloads. @dfinity/core-protocol
- **hyper:** hyper 1.12 / hyper-util 0.1.21 parse HTTP/1 more strictly,
and tasks they spawn no longer inherit the caller's tracing span.
- **tonic:** tonic 0.14.9 changes some status-code mappings, which may
show in adapter error metrics.
- **ic-agent:** 0.49.3 retries HTTP 503.
- **actix-web:** 4.20, used by ICP Rosetta, now requires a Host header
and turns TCP_NODELAY on. @dfinity/defi
- **Bazel catch-ups:** Bazel was further behind than Cargo, so some of
its jumps are larger than the `Cargo.lock` diff shows: clap 4.5 → 4.6,
slog 2.7 → 2.8, insta 1.31 → 1.49, actix-web 4.9 → 4.20, bytemuck 1.13 →
1.25 and url/idna_adapter (ICU4X 1 → 2). CI tests the Bazel build (the
Cargo gate only compiles), so for most of the 541 new Bazel versions
this PR's CI is their first test run.

## Mixed versions and reproducibility

- **State sync between replica versions** is unaffected by libzstd
1.5.7. In the replica, zstd only compresses state-sync chunks for the
wire (`rs/p2p/state_sync_manager/src/routes/chunk.rs`), and the receiver
checks the chunk, sub-manifest and root hashes on the decompressed
bytes. 1.5.7 writes different bytes for about two thirds of chunk-shaped
payloads, but the frame format is unchanged: in a cross-version test of
the two vendored libraries, every frame decoded on the other version to
the exact input (1,340 decodes). prost 0.14.6 doesn't change how the
state-sync, transport and manifest messages are encoded, and quinn,
rustls, tokio and axum don't move.
- **Reward computations stay reproducible.** The node rewards
calculation, NNS and SNS voting rewards, maturity modulation and the
CMC's ICP/XDR averages compute with rust_decimal, rust_decimal_macros,
num-traits, libm, integer arithmetic and `f64`, and read their state
through ic-stable-structures and candid. None of these changes version
or enabled features in either lock. Of the crates on those paths that do
move, chrono (v0.4.41 → v0.4.44, `chrono_canisters`), itertools 0.12.1
and prost-derive 0.14.6 change nothing the reward code calls for valid
input, and crc32fast 1.5.5 (principal and account-identifier checksums)
restructures its wasm32 path but computes the same CRC-32.

# Verification

Run locally in the dev container, on this branch:
- `cargo update --workspace` reports "Locking 0 packages",
`./bin/bazel-pin.sh` reports "Nothing to repin.", and `bazel mod deps`
leaves `MODULE.bazel.lock` unchanged.
- `bazel run //bazel:buildifier.check` passes.
- `./ci/scripts/rust-lint.sh` passes: `cargo fmt --check`,
workspace-wide `cargo clippy --all-features --all-targets --deny
warnings`, and depcheck.
- The tests the refresh broke pass with the fixes above:
`//rs/execution_environment:execution_environment_test`,
`//rs/recovery/subnet_splitting:integration_test` and
`//rs/nns/governance:governance-canbench_test`. The `//rs/tests/nested`
HostOS tests are left to CI.
- prost-build 0.14.6: all 18 `check_generated_files` tests
(`bazel/prost.bzl`) pass, so the checked-in generated protobuf files are
unchanged.
- `bazel query --keep_going 'deps(//...)'` succeeds, so no BUILD file,
`manual` targets included, references a deleted `crate.spec`.
- `bazel build` of:
- the pkg-config patch's users: `//rs/ic_os/os_tools/guest_disk`,
`//rs/ic_os/device` and `//rs/ic_os/os_tools/guest_vm_runner`;
- the wasm32 canisters that use the getrandom override: rate-limit,
registry, governance and the ckDOGE minter;
- ic-boundary, the HTTPS outcalls adapter, the orchestrator, the
PocketIC server and the replica.
- `bazel build --config=fuzzing --build_tag_filters=libfuzzer //rs/...`:
the 23 libfuzzer targets. PR CI doesn't build them here: CI Main
excludes `fuzz_test` targets, and the fuzzer jobs run only when `.rs`,
`BUILD.bazel`, `.bzl` or fuzzing-script files change.

This PR carries the `CI_ALL_BAZEL_TARGETS` label, so CI Main builds and
tests the same targets as on master, `long_test`s included.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
Co-authored-by: IDX GitHub Automation <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants