From e87297335679da1bfedd85d41a7970f47730932d Mon Sep 17 00:00:00 2001 From: Michael Bolin Date: Wed, 1 Apr 2026 13:54:35 -0700 Subject: [PATCH] ci: stop running rust CI with --all-features --- .github/scripts/verify_cargo_workspace_manifests.py | 3 +-- .github/workflows/rust-ci-full.yml | 6 +++--- codex-rs/tui/src/history_cell.rs | 2 +- ...command_wraps_with_extra_indent_on_subsequent_lines.snap | 3 +-- justfile | 4 ++-- 5 files changed, 8 insertions(+), 10 deletions(-) diff --git a/.github/scripts/verify_cargo_workspace_manifests.py b/.github/scripts/verify_cargo_workspace_manifests.py index 6da903ca75..4812e2428d 100644 --- a/.github/scripts/verify_cargo_workspace_manifests.py +++ b/.github/scripts/verify_cargo_workspace_manifests.py @@ -6,8 +6,7 @@ Checks: - Crates inherit `[workspace.package]` metadata. - Crates opt into `[lints] workspace = true`. - Crate names follow the codex-rs directory naming conventions. -- Workspace manifests do not introduce new workspace crate feature toggles - while the remaining exceptions are being removed. +- Workspace manifests do not introduce workspace crate feature toggles. """ from __future__ import annotations diff --git a/.github/workflows/rust-ci-full.yml b/.github/workflows/rust-ci-full.yml index 6d36b5f2eb..146e57524c 100644 --- a/.github/workflows/rust-ci-full.yml +++ b/.github/workflows/rust-ci-full.yml @@ -445,10 +445,10 @@ jobs: set -euo pipefail RECIPE="${RUNNER_TEMP}/chef-recipe.json" cargo chef prepare --recipe-path "$RECIPE" - cargo chef cook --recipe-path "$RECIPE" --target ${{ matrix.target }} --release --all-features + cargo chef cook --recipe-path "$RECIPE" --target ${{ matrix.target }} --release - name: cargo clippy - run: cargo clippy --target ${{ matrix.target }} --all-features --tests --profile ${{ matrix.profile }} --timings -- -D warnings + run: cargo clippy --target ${{ matrix.target }} --tests --profile ${{ matrix.profile }} --timings -- -D warnings - name: Upload Cargo timings (clippy) if: always() @@ -672,7 +672,7 @@ jobs: - name: tests id: test - run: cargo nextest run --all-features --no-fail-fast --target ${{ matrix.target }} --cargo-profile ci-test --timings + run: cargo nextest run --no-fail-fast --target ${{ matrix.target }} --cargo-profile ci-test --timings env: RUST_BACKTRACE: 1 NEXTEST_STATUS_LEVEL: leak diff --git a/codex-rs/tui/src/history_cell.rs b/codex-rs/tui/src/history_cell.rs index 4aadbf06d1..3a2e98b95c 100644 --- a/codex-rs/tui/src/history_cell.rs +++ b/codex-rs/tui/src/history_cell.rs @@ -4057,7 +4057,7 @@ mod tests { #[test] fn multiline_command_wraps_with_extra_indent_on_subsequent_lines() { // Create a completed exec cell with a multiline command - let cmd = "set -o pipefail\ncargo test --all-features --quiet".to_string(); + let cmd = "set -o pipefail\ncargo test --quiet".to_string(); let call_id = "c1".to_string(); let mut cell = ExecCell::new( ExecCall { diff --git a/codex-rs/tui/src/snapshots/codex_tui__history_cell__tests__multiline_command_wraps_with_extra_indent_on_subsequent_lines.snap b/codex-rs/tui/src/snapshots/codex_tui__history_cell__tests__multiline_command_wraps_with_extra_indent_on_subsequent_lines.snap index e8458cfdc1..b7fa1d865e 100644 --- a/codex-rs/tui/src/snapshots/codex_tui__history_cell__tests__multiline_command_wraps_with_extra_indent_on_subsequent_lines.snap +++ b/codex-rs/tui/src/snapshots/codex_tui__history_cell__tests__multiline_command_wraps_with_extra_indent_on_subsequent_lines.snap @@ -3,6 +3,5 @@ source: tui/src/history_cell.rs expression: rendered --- • Ran set -o pipefail - │ cargo test - │ --all-features --quiet + │ cargo test --quiet └ (no output) diff --git a/justfile b/justfile index 1a1295020f..7dc6ae1005 100644 --- a/justfile +++ b/justfile @@ -46,8 +46,8 @@ install: # --no-fail-fast is important to ensure all tests are run. # # Run `cargo install cargo-nextest` if you don't have it installed. -# Prefer this for routine local runs; use explicit `cargo test --all-features` -# only when you specifically need full feature coverage. +# Prefer this for routine local runs. Workspace crate features are banned, so +# there should be no need to add `--all-features`. test: cargo nextest run --no-fail-fast