From 6eb599515d20763ed7479cf37f4d441932420817 Mon Sep 17 00:00:00 2001 From: lcian <17258265+lcian@users.noreply.github.com> Date: Thu, 25 Sep 2025 16:34:44 +0200 Subject: [PATCH 1/8] ci: try Sentry Prevent --- .config/nextest.toml | 3 +++ .github/workflows/ci.yml | 12 ++++++++++-- 2 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 .config/nextest.toml diff --git a/.config/nextest.toml b/.config/nextest.toml new file mode 100644 index 000000000..814aa40e5 --- /dev/null +++ b/.config/nextest.toml @@ -0,0 +1,3 @@ +[profile.ci] +fail-fast = false +path = "junit.xml" diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a26c3cf27..4a008d253 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -57,8 +57,16 @@ jobs: - uses: Swatinem/rust-cache@v2 - - name: Run cargo test - run: cargo test --workspace --all-features --all-targets + - uses: taiki-e/install-action@nextest + + - name: Run nextest + run: cargo nextest --profile ci --workspace --all-features --all-targets + + - name: Upload test results to Sentry Prevent + if: ${{ !cancelled() }} + uses: getsentry/prevent-action@v0 + with: + token: ${{ secrets.SENTRY_PREVENT_TOKEN }} MSRV: strategy: From f73eb9f94229742d0cc07abca7eaa229e4615e0b Mon Sep 17 00:00:00 2001 From: Lorenzo Cian <17258265+lcian@users.noreply.github.com> Date: Thu, 25 Sep 2025 16:37:50 +0200 Subject: [PATCH 2/8] Update ci.yml --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4a008d253..2e3418d59 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -60,7 +60,7 @@ jobs: - uses: taiki-e/install-action@nextest - name: Run nextest - run: cargo nextest --profile ci --workspace --all-features --all-targets + run: cargo nextest --profile ci --all-features --all-targets - name: Upload test results to Sentry Prevent if: ${{ !cancelled() }} From fe2fb672644a1bd6e24300c10bd7e86946d266fc Mon Sep 17 00:00:00 2001 From: Lorenzo Cian <17258265+lcian@users.noreply.github.com> Date: Thu, 25 Sep 2025 16:40:00 +0200 Subject: [PATCH 3/8] Fix command to run nextest in CI workflow --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2e3418d59..a4bb2cd61 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -60,7 +60,7 @@ jobs: - uses: taiki-e/install-action@nextest - name: Run nextest - run: cargo nextest --profile ci --all-features --all-targets + run: cargo nextest run --profile ci --all-features --all-targets - name: Upload test results to Sentry Prevent if: ${{ !cancelled() }} From d39c5aeb39a5cfd7e93d01cb9fc82b89f1a3ddf6 Mon Sep 17 00:00:00 2001 From: Lorenzo Cian <17258265+lcian@users.noreply.github.com> Date: Thu, 25 Sep 2025 16:40:30 +0200 Subject: [PATCH 4/8] Rename step to run tests with nextest --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a4bb2cd61..0ed4313a2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -59,7 +59,7 @@ jobs: - uses: taiki-e/install-action@nextest - - name: Run nextest + - name: Run tests with nextest run: cargo nextest run --profile ci --all-features --all-targets - name: Upload test results to Sentry Prevent From e52cbc9c2ff6106320893f922776ee2b3607ba64 Mon Sep 17 00:00:00 2001 From: Lorenzo Cian <17258265+lcian@users.noreply.github.com> Date: Thu, 25 Sep 2025 16:48:48 +0200 Subject: [PATCH 5/8] Add permissions for id-token in CI workflow --- .github/workflows/ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0ed4313a2..3199f5058 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -50,6 +50,8 @@ jobs: name: Test using Rust stable on ${{ matrix.os }} runs-on: ${{ matrix.os }} + permissions: + id-token: write # required by `getsentry/prevent-action` steps: - name: Checkout sources From b766ac32cb72e07460cc7ab9a54399fb65b93349 Mon Sep 17 00:00:00 2001 From: Lorenzo Cian <17258265+lcian@users.noreply.github.com> Date: Thu, 25 Sep 2025 16:54:22 +0200 Subject: [PATCH 6/8] Update ci.yml --- .github/workflows/ci.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3199f5058..edf09701d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -67,8 +67,6 @@ jobs: - name: Upload test results to Sentry Prevent if: ${{ !cancelled() }} uses: getsentry/prevent-action@v0 - with: - token: ${{ secrets.SENTRY_PREVENT_TOKEN }} MSRV: strategy: From d2a4e54203d6ecf01a8f67082c79c2185980bf36 Mon Sep 17 00:00:00 2001 From: lcian <17258265+lcian@users.noreply.github.com> Date: Thu, 25 Sep 2025 17:01:52 +0200 Subject: [PATCH 7/8] improve --- .config/nextest.toml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.config/nextest.toml b/.config/nextest.toml index 814aa40e5..6a109e171 100644 --- a/.config/nextest.toml +++ b/.config/nextest.toml @@ -1,3 +1,5 @@ [profile.ci] fail-fast = false + +[profile.ci.junit] path = "junit.xml" From a3ffc5fbc0a08ce1a8ee982b0e375ab7310f62be Mon Sep 17 00:00:00 2001 From: Lorenzo Cian <17258265+lcian@users.noreply.github.com> Date: Thu, 25 Sep 2025 17:12:04 +0200 Subject: [PATCH 8/8] Update ci.yml --- .github/workflows/ci.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index edf09701d..87f0dd07c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -67,6 +67,9 @@ jobs: - name: Upload test results to Sentry Prevent if: ${{ !cancelled() }} uses: getsentry/prevent-action@v0 + with: + files: target/nextest/ci/junit.xml + disable_search: true MSRV: strategy: