From 4bf9382b2f54674b5dec0d18425b1aa8439c9f7e Mon Sep 17 00:00:00 2001 From: noah Date: Tue, 22 Sep 2026 18:22:32 -0600 Subject: [PATCH] ci: install clippy component before the gate; classify all GUI src as backend Run 82 failed because the alkane-ci image ships no clippy component ("cargo-clippy is not installed for the toolchain"). Both workflows now `rustup component add clippy` before the gate. Also broadened compute-version.sh: any crates/alkane-gui/src/* file is backend logic (previously only scan.rs/model.rs/main.rs were, so a fix confined to naming.rs / pool_prefs.rs / restore.rs / access_probe.rs / credentials.rs would never cut a release). ui.rs/fixtures.rs/bin still match the UI arm first. All 9 compute-version tests pass. Co-Authored-By: Claude Opus 4.8 Claude-Session: https://claude.ai/code/session_01Djv3oncM4LxTS5tb61Ako6 --- .gitea/workflows/release.yml | 1 + .gitea/workflows/verify.yml | 4 +++- ci/compute-version.sh | 6 ++++-- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index 7b40471e..3538a458 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -53,6 +53,7 @@ jobs: if: steps.ver.outputs.release == 'true' run: | export WX_RS_WXCONFIG="$WX_PREFIX/bin/wx-config" + rustup component add clippy >/dev/null 2>&1 || true cargo clippy -p alkane-gui --no-deps --release --bins --offline -- -D warnings - name: Set crate version to ${{ steps.ver.outputs.version }} diff --git a/.gitea/workflows/verify.yml b/.gitea/workflows/verify.yml index 7e1cf45e..a0e28191 100644 --- a/.gitea/workflows/verify.yml +++ b/.gitea/workflows/verify.yml @@ -40,7 +40,9 @@ jobs: fi - name: Clippy (our crate, warnings are errors) - run: cargo clippy -p alkane-gui --no-deps --release --bins --offline -- -D warnings + run: | + rustup component add clippy >/dev/null 2>&1 || true + cargo clippy -p alkane-gui --no-deps --release --bins --offline -- -D warnings - name: Build run: cargo build --release -p alkane-gui --offline diff --git a/ci/compute-version.sh b/ci/compute-version.sh index a833a8bf..3c0ea33b 100755 --- a/ci/compute-version.sh +++ b/ci/compute-version.sh @@ -35,9 +35,11 @@ crates/alkane-gui/src/bin/*) ui=true ;; crates/alkane-core/*|crates/alkane-discovery/*|crates/alkane-access/*|\ crates/alkane-flash/*|crates/alkane-artifacts/*|crates/alkane-cli/*|\ -crates/alkane-gui/src/scan.rs|crates/alkane-gui/src/model.rs|\ -crates/alkane-gui/src/main.rs|Cargo.toml|Cargo.lock|.gitea/*|ci/*|scripts/*|\ +crates/alkane-gui/src/*|Cargo.toml|Cargo.lock|.gitea/*|ci/*|scripts/*|\ vendor/*|thirdparty/asic-rs/*) + # Any other GUI source file (naming, scan, model, pool_prefs, restore, + # access_probe, credentials, ...) is backend logic. ui.rs/fixtures.rs/bin + # match the UI arm above first, so they still bump Z, not Y. backend=true ;; *) : ;; # docs, HANDOFF, README, thirdparty/wxwidgets tree: no bump esac