diff --git a/.github/workflows/reusable-ci.yml b/.github/workflows/reusable-ci.yml index acdaf79d..fc186815 100644 --- a/.github/workflows/reusable-ci.yml +++ b/.github/workflows/reusable-ci.yml @@ -1,5 +1,5 @@ # file: .github/workflows/reusable-ci.yml -# version: 1.13.0 +# version: 1.14.0 # guid: reusable-ci-2025-09-24-core-workflow name: Reusable CI Workflow @@ -652,16 +652,16 @@ jobs: with: command: rust-clippy + # Build and test run inline rather than through gha-ci-workflow-helpers: + # the action never implemented the rust-build / rust-test commands (only + # rust-format and rust-clippy exist, in every release through v1.1.7), so + # invoking them failed every Rust CI run with "Unknown command: rust-build". - name: Build Rust project - uses: falkcorp/gha-ci-workflow-helpers@c8b87fae92ee0a0458e47b970ed892310323aa58 # v1.1.4 - with: - command: rust-build + run: cargo build --release - name: Test Rust project if: ${{ !inputs.skip-tests }} - uses: falkcorp/gha-ci-workflow-helpers@c8b87fae92ee0a0458e47b970ed892310323aa58 # v1.1.4 - with: - command: rust-test + run: cargo test --release # Setup npm cache for frontend using advanced cache strategy frontend-npm-cache: diff --git a/changelog.d/20260720-rust-build-inline.md b/changelog.d/20260720-rust-build-inline.md new file mode 100644 index 00000000..1b88be8c --- /dev/null +++ b/changelog.d/20260720-rust-build-inline.md @@ -0,0 +1,14 @@ +### Fixed + +#### Rust CI no longer fails with "Unknown command: rust-build" + +The Rust job invoked `gha-ci-workflow-helpers` with `command: rust-build` and +`command: rust-test`, but that action never implemented either command — only +`rust-format` and `rust-clippy` exist, in every release through v1.1.7. So every +repository whose Rust CI actually ran failed at the build step with +`Unknown command: rust-build`. + +The build and test steps now run `cargo build --release` / `cargo test --release` +inline. Format and clippy still go through the action, which does support them. +Surfaced by falkcorp/cockroach-rollout-agent, whose Rust CI activated for the +first time during the TODO fan-out.