]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ceph-pull-requests: Skip qa-only PRs
authorZack Cerza <zack@cerza.org>
Wed, 24 Sep 2025 18:02:57 +0000 (12:02 -0600)
committerZack Cerza <zack@cerza.org>
Wed, 24 Sep 2025 18:09:28 +0000 (12:09 -0600)
If only the qa directory changed, we don't need to run make check.

Signed-off-by: Zack Cerza <zack@cerza.org>
ceph-pull-requests-arm64/build/build
ceph-pull-requests/build/build
scripts/build_utils.sh

index b06ebfa582200bc6b8567509a7e19b7682a464f4..be8363b20018fd85ea6e44acded14cbf7740240d 100644 (file)
@@ -3,8 +3,9 @@
 docs_pr_only
 container_pr_only
 gha_pr_only
-if [[ "$DOCS_ONLY" = true || "$CONTAINER_ONLY" = true || "$GHA_ONLY" == true ]]; then
-    echo "Only the doc/, container/ or .github/ dir changed.  No need to run make check."
+qa_pr_only
+if [[ "$DOCS_ONLY" = true || "$CONTAINER_ONLY" = true || "$GHA_ONLY" == true || "$QA_ONLY" == true ]]; then
+    echo "Only the doc/, container/, qa/ or .github/ dir changed.  No need to run make check."
     exit 0
 fi
 
index e171201d72a67745a3236556e5a9b6d2ad1a861b..edb3ebb05ed962b081c500d99b91ad47ca95cfba 100644 (file)
@@ -3,8 +3,9 @@
 docs_pr_only
 container_pr_only
 gha_pr_only
-if [[ "$DOCS_ONLY" = true || "$CONTAINER_ONLY" = true || "$GHA_ONLY" == true ]]; then
-    echo "Only the doc/, container/ or .github/ dir changed.  No need to run make check."
+qa_pr_only
+if [[ "$DOCS_ONLY" = true || "$CONTAINER_ONLY" = true || "$GHA_ONLY" == true || "$QA_ONLY" == true ]]; then
+    echo "Only the doc/, container/, qa/ or .github/ dir changed.  No need to run make check."
     exit 0
 fi
 
index 83a288c3f09f545be852eedacf4501029ff0047a..ca12b679034c5dc5261b90dc7e29e09a89d96ceb 100755 (executable)
@@ -1770,6 +1770,14 @@ gha_pr_only () {
   if pr_only_for patterns; then GHA_ONLY=true; fi
 }
 
+qa_pr_only () {
+  QA_ONLY=false
+  local patterns=(
+    'qa/*'
+  )
+  if pr_only_for patterns; then QA_ONLY=true; fi
+}
+
 function ssh_exec() {
     if [[ -z $SSH_ADDRESS ]]; then
         echo "ERROR: Env variable SSH_ADDRESS is not set"