Skip to content

Pin Rust 1.99.1 in CI and fix Rust 1.100 lints - #129

Merged
leonardoaraujosantos merged 2 commits into
mainfrom
fix/clippy-1.100
Nov 12, 2026
Merged

leonardoaraujosantos merged 2 commits into
mainfrom
fix/clippy-1.100

Conversation

@leonardoaraujosantos

@leonardoaraujosantos leonardoaraujosantos commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

CI and the release workflow installed the latest stable Rust. Rust 1.100, released on 2026-11-09, broke main in two ways:

  1. Clippy: -D warnings now fails on main's code. This is the Rust (macos-latest) failure on Prepare 0.1.0-beta.2 #128.
  2. Cargo build layout: Cargo 1.100 builds test binaries under target/<profile>/build/<crate>/<hash>/out/ instead of target/<profile>/deps/. cyber_sandbox::find_helper looks for cyber-sandbox-exec at most two directories above the running executable, so tests that need the helper no longer find it. This is the Host bootstrap failure (focused workflow builds the sandbox helper).

Changes

  • Pin Rust 1.99.1 in every workflow, including release.yml. This is the toolchain main last passed CI on. All workflows now use the pinned action commit that release.yml already used, with toolchain: 1.99.1. A comment in ci.yml says why.
  • crates/cyber-cli/src/commands/workflows/runs.rs: return the condition directly (needless_bool).
  • crates/cyber-core/src/intelligence/discovery.rs: executable_file is split so the Windows build has no needless_bool.
  • crates/cyber-collab/Cargo.toml: drop the unused futures dependency.

The code changes are lint-only and change no behavior. They also keep main clean on 1.100.

Installed binaries are not affected: the helper sits next to cyber in the release archive. The follow-up to move to 1.100 is to make tests find the helper under the new layout, for example through CYBER_SANDBOX_HELPER from the test harness, rather than widening the production search.

Verification

  • On Rust 1.100: workspace clippy --all-targets -D warnings and cargo fmt --check are clean.
  • cyber-collab 40/40, cyber-cli workflow tests 20/20, cyber-core discovery 4/4.
  • All workflow YAML parses. The script tests pass.

CI uses the latest stable toolchain. Rust 1.100 (2026-11-09) flags a
needless_bool in the workflow runs watcher and an unused futures
dependency in cyber-collab, which fails clippy -D warnings on main.
Cargo 1.100 builds test binaries under target/<profile>/build/, so tests
that locate the sandbox helper next to their executable fail. Pin every
workflow to 1.99.1, the last toolchain main passed on, until the helper
lookup is reworked for the new layout. Also rewrite executable_file so
the Windows build has no needless_bool.
@leonardoaraujosantos leonardoaraujosantos changed the title Fix lints from Rust 1.100 clippy Pin Rust 1.99.1 in CI and fix Rust 1.100 lints Nov 12, 2026
@leonardoaraujosantos
leonardoaraujosantos merged commit 8fbecae into main Nov 12, 2026
47 checks passed
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