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

pcongiusti pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/main by this push:
     new 878c230fb94d fix(ci): skip test-infra unit test in parent pom detection
878c230fb94d is described below

commit 878c230fb94d353d53c54204668a3d2a2db991c8
Author: Pasquale Congiusti <[email protected]>
AuthorDate: Wed Nov 5 08:52:13 2025 +0100

    fix(ci): skip test-infra unit test in parent pom detection
---
 .github/actions/detect-dependencies/detect-test.sh | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/.github/actions/detect-dependencies/detect-test.sh 
b/.github/actions/detect-dependencies/detect-test.sh
index 26b58ce07716..86f4867852af 100755
--- a/.github/actions/detect-dependencies/detect-test.sh
+++ b/.github/actions/detect-dependencies/detect-test.sh
@@ -45,10 +45,9 @@ find_affected_modules() {
       # artifactId=$($mavenBinary -f "$pom" help:evaluate 
-Dexpression=project.artifactId -q -DforceStdout)
       # workaround while https://github.com/apache/maven-mvnd/issues/1463 is 
fixed
       artifactId=$($mavenBinary -f "$pom" help:evaluate 
-Dexpression=project.artifactId | grep -v '\[')
-      if [ ! -z "$artifactId" ]; then
+      # we can skip any test-infra for the goal of the unit test
+      if [ ! -z "$artifactId" ] && [[ "$artifactId" != *test-infra* ]]; then
         affected_transformed+=":$artifactId,"
-      else
-        echo "⚠️ could not find proper artifactId in $pom" >&2
       fi
   done
 

Reply via email to