From e0cb6481b0723b92f97455aa2e21e46d37165344 Mon Sep 17 00:00:00 2001 From: Samuel Williams Date: Mon, 5 Oct 2026 19:25:37 +1300 Subject: [PATCH 1/2] Enforce source-region coverage in Bake Agent Context CI. --- .github/workflows/test.yml | 15 +++++++++++---- Cargo.lock | 4 ++-- 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 899db84..f96cdf5 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -21,7 +21,7 @@ jobs: - uses: actions/checkout@v7 - uses: dtolnay/rust-toolchain@stable - name: Install the Cargo Bake launcher - run: cargo install socketry-cargo-bake --version 0.17.0 --locked + run: cargo install socketry-cargo-bake --locked - name: Run workspace tests run: cargo test --workspace --locked - name: Exercise task registration @@ -33,11 +33,18 @@ jobs: quality: runs-on: ubuntu-latest - timeout-minutes: 10 + timeout-minutes: 20 steps: - uses: actions/checkout@v7 - - uses: dtolnay/rust-toolchain@stable + - uses: actions-rust-lang/setup-rust-toolchain@v2 with: - components: rustfmt, clippy + components: clippy, llvm-tools-preview, rustfmt + cache-shared-key: coverage-cargo-install-v1 + - name: Install Bake launcher + run: cargo install socketry-cargo-bake --locked + - name: Install coverage tool + run: cargo install cargo-llvm-cov --locked - run: cargo fmt --all --check - run: cargo clippy --workspace --all-targets --locked -- -D warnings + - name: Run tests and require complete source-region coverage + run: cargo bake --locked test:coverage --all-targets true diff --git a/Cargo.lock b/Cargo.lock index 936cd51..cf07276 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -118,9 +118,9 @@ dependencies = [ [[package]] name = "bake-test-rust" -version = "0.2.2" +version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1d29e665d8e2373f5931adebe8ee29d36fd2a59c36c3d755a7d408d7eaed20dc" +checksum = "e9d5ceec9cc08a3bb421dd3755ad9e073831934793aa88d8f55095ad98c1dc45" dependencies = [ "bake", "serde_json", From ef9fe80bf271feb326206d123cfea42a81900f7d Mon Sep 17 00:00:00 2001 From: Samuel Williams Date: Mon, 5 Oct 2026 19:36:37 +1300 Subject: [PATCH 2/2] Keep the existing Bake coverage task version. --- .github/workflows/test.yml | 2 +- Cargo.lock | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f96cdf5..cca5700 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -46,5 +46,5 @@ jobs: run: cargo install cargo-llvm-cov --locked - run: cargo fmt --all --check - run: cargo clippy --workspace --all-targets --locked -- -D warnings - - name: Run tests and require complete source-region coverage + - name: Run tests and require complete line coverage run: cargo bake --locked test:coverage --all-targets true diff --git a/Cargo.lock b/Cargo.lock index cf07276..936cd51 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -118,9 +118,9 @@ dependencies = [ [[package]] name = "bake-test-rust" -version = "0.3.0" +version = "0.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e9d5ceec9cc08a3bb421dd3755ad9e073831934793aa88d8f55095ad98c1dc45" +checksum = "1d29e665d8e2373f5931adebe8ee29d36fd2a59c36c3d755a7d408d7eaed20dc" dependencies = [ "bake", "serde_json",