From 78849bdf7d0db80d70b9b9b3662501c86106e725 Mon Sep 17 00:00:00 2001 From: Zack Cerza Date: Wed, 24 Sep 2025 12:02:57 -0600 Subject: [PATCH] ceph-pull-requests: Skip qa-only PRs If only the qa directory changed, we don't need to run make check. Signed-off-by: Zack Cerza --- ceph-pull-requests-arm64/build/build | 5 +++-- ceph-pull-requests/build/build | 5 +++-- scripts/build_utils.sh | 8 ++++++++ 3 files changed, 14 insertions(+), 4 deletions(-) diff --git a/ceph-pull-requests-arm64/build/build b/ceph-pull-requests-arm64/build/build index b06ebfa5..be8363b2 100644 --- a/ceph-pull-requests-arm64/build/build +++ b/ceph-pull-requests-arm64/build/build @@ -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 diff --git a/ceph-pull-requests/build/build b/ceph-pull-requests/build/build index e171201d..edb3ebb0 100644 --- a/ceph-pull-requests/build/build +++ b/ceph-pull-requests/build/build @@ -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 diff --git a/scripts/build_utils.sh b/scripts/build_utils.sh index 83a288c3..ca12b679 100755 --- a/scripts/build_utils.sh +++ b/scripts/build_utils.sh @@ -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" -- 2.39.5