Skip to content

ci: fix pre-existing reds — pin toolchain, drop --all-features (nightly ratchet)#38

Open
dcondrey wants to merge 3 commits into
mainfrom
chore/ci-fixes
Open

ci: fix pre-existing reds — pin toolchain, drop --all-features (nightly ratchet)#38
dcondrey wants to merge 3 commits into
mainfrom
chore/ci-fixes

Conversation

@dcondrey

Copy link
Copy Markdown
Contributor

Fixes the long-standing red CI on main (Check & Lint + Test on all OSes), root-caused to two systemic issues:

  1. --all-features pulls nightly ratchet — the protocol crate's wasm feature depends on ratchet, which uses #![feature] and fails on stable (error[E0554]). This broke cargo test --all-features (all 3 OS Test jobs) and cargo clippy --all-features. Switched both to --workspace; wasm is built separately for a wasm target.
  2. Unpinned toolchain → fmt/clippy drift — with @stable (a moving target) and no rust-toolchain.toml, formatting + lints drifted. Pinned to 1.94.0 for reproducibility; applied cargo fmt + the resulting clippy fixes (to_vec, clone-on-Copy, clamp, an #[allow(too_many_arguments)] on an 11-param FFI export).

Verified locally on 1.94.0: cargo clippy --workspace -- -D warnings clean, cargo fmt --all --check clean. The big diff is the one-time cargo fmt normalization.

dcondrey added 3 commits June 25, 2026 18:03
Two pre-existing CI reds, both systemic:
- Test (all OS) + Clippy used --all-features, which enables the protocol
  crate's wasm feature -> pulls the nightly-only ratchet crate -> fails to
  compile on stable. Switch to --workspace (wasm is built separately for a
  wasm target).
- fmt/clippy drifted because the toolchain was unpinned (@stable is a moving
  target). Pin rust-toolchain.toml to 1.94.0 so fmt/clippy are reproducible.
Auto-fixable clippy lints (to_vec, clone-on-Copy, collapsible-if), a clamp()
and an #[allow(too_many_arguments)] on an 11-param FFI export, plus a
workspace-wide cargo fmt to make fmt --check deterministic on the pin.
Two integration-test initializers predated the window_number field on
WindowInfo and no longer compiled under cargo test --workspace.
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