This is an automated email from the ASF dual-hosted git repository.

hubcio pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/iggy.git


The following commit(s) were added to refs/heads/master by this push:
     new 127a33c3b ci(rust): don't fail when a DAG scope matches no tests 
(#3943)
127a33c3b is described below

commit 127a33c3bf162d377f4544a3102e65e8deed8785
Author: Chengxi Luo <[email protected]>
AuthorDate: Fri Aug 21 05:27:38 2026 -0400

    ci(rust): don't fail when a DAG scope matches no tests (#3943)
---
 .github/actions/rust/pre-merge/action.yml | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/.github/actions/rust/pre-merge/action.yml 
b/.github/actions/rust/pre-merge/action.yml
index 0c8f47a24..e2d2d3c30 100644
--- a/.github/actions/rust/pre-merge/action.yml
+++ b/.github/actions/rust/pre-merge/action.yml
@@ -293,7 +293,12 @@ runs:
         test_start=$(date +%s)
         if command -v cargo-nextest &> /dev/null; then
           if [[ -n "$NEXTEST_FILTER" ]]; then
-            cargo nextest run --locked --no-fail-fast --profile ci 
$PARTITION_FLAG $PACKAGE_FLAGS -E "$NEXTEST_FILTER"
+            # Every test target in the `bdd` crate is `required-features =
+            # ["bdd"]`, so the `cargo test --no-run` above builds no binaries
+            # for it. A PR touching only that crate then produces a valid
+            # filter that matches zero tests, and nextest's default
+            # `--no-tests=fail` turns that into exit 4 on a green PR.
+            cargo nextest run --locked --no-fail-fast --no-tests=warn 
--profile ci $PARTITION_FLAG $PACKAGE_FLAGS -E "$NEXTEST_FILTER"
           else
             cargo nextest run --locked --no-fail-fast --profile ci 
$PARTITION_FLAG
           fi

Reply via email to