Skip to content

fix(ci): migrate loom-testing to rand 0.10 API — unblocks all CI#275

Merged
avrabe merged 2 commits into
mainfrom
fix/rand-floating-dep-ci
Jul 10, 2026
Merged

fix(ci): migrate loom-testing to rand 0.10 API — unblocks all CI#275
avrabe merged 2 commits into
mainfrom
fix/rand-floating-dep-ci

Conversation

@avrabe

@avrabe avrabe commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

Unblocks all loom CI (currently fully red). loom-testing failed to compile: cannot find trait RngCore / cannot find function thread_rng in crate rand.

Root cause: Dependabot #265 bumped loom-testing/Cargo.toml to rand = "0.10" but never updated the source, so the spec and code were out of sync (and with Cargo.lock gitignored, CI floats to 0.10 — #142). Fix = match the code to the already-declared 0.10 API (8 lines, loom-testing/src/emi/mod.rs):

  • rand::thread_rng()rand::rng()
  • Rng::gen_range()random_range()
  • Box<dyn RngCore>Box<dyn Rng> (RngCore deprecated in rand_core 0.10)

Verified in an isolated target: cargo build --release --workspace Finished; clippy clean; fmt clean. Refs #142.

Durable follow-up: commit Cargo.lock (#142) — this is the 3rd recurrence of a gitignored-lockfile dep-float breaking CI with no code change (wasmtime 45, criterion, now rand). Recommend prioritizing before more releases.

avrabe and others added 2 commits July 10, 2026 11:43
rand floated to 0.10 (Cargo.lock is gitignored, #142), which renamed
thread_rng() -> rng(), Rng::gen_range() -> RngExt::random_range(), and
deprecated the RngCore trait in favour of Rng. loom-testing's EMI module
still used the 0.8 API, so CI failed to compile it and all loom CI
(including v1.2.0 release) was blocked.

Update the code to the rand 0.10 API to match the already-bumped
`rand = "0.10"` spec in loom-testing/Cargo.toml (#265).

Refs: #142
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@avrabe avrabe merged commit 54dbb69 into main Jul 10, 2026
23 of 25 checks passed
@avrabe avrabe deleted the fix/rand-floating-dep-ci branch July 10, 2026 18:54
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.

1 participant