]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-build.git/commitdiff
disable CI checks for PRs with only docs/QA changes 2546/head
authorShraddha Agrawal <shraddha.agrawal000@gmail.com>
Tue, 3 Mar 2026 10:06:46 +0000 (15:36 +0530)
committerShraddha Agrawal <shraddha.agrawal000@gmail.com>
Fri, 6 Mar 2026 12:15:27 +0000 (17:45 +0530)
Signed-off-by: Shraddha Agrawal <shraddha.agrawal000@gmail.com>
ceph-dashboard-pull-requests/build/check_docs_pr_only [new file with mode: 0755]
ceph-dashboard-pull-requests/config/definitions/ceph-dashboard-pull-requests.yml
ceph-volume-cephadm-prs/build/build
ceph-volume-cephadm-prs/config/definitions/ceph-volume-pr.yml

diff --git a/ceph-dashboard-pull-requests/build/check_docs_pr_only b/ceph-dashboard-pull-requests/build/check_docs_pr_only
new file mode 100755 (executable)
index 0000000..9dd1a72
--- /dev/null
@@ -0,0 +1,12 @@
+#!/usr/bin/env bash
+set -o errexit
+set -o pipefail
+
+docs_pr_only
+container_pr_only
+gha_pr_only
+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 dashboard tests."
+    exit 0
+fi
index 55af8b7dcb5f11abef0940bcf9688c8eba02f59b..3cc5813ccd1b751fe50a5f6f6c6ed25a6ebb680f 100644 (file)
           wipe-workspace: true
 
     builders:
+      - shell:
+          !include-raw-verbatim:
+            - ../../../scripts/build_utils.sh
+            - ../../build/check_docs_pr_only
       - shell: "export FOR_MAKE_CHECK=1; timeout 2h ./src/script/run-make.sh --cmake-args '-DWITH_TESTS=OFF -DENABLE_GIT_VERSION=OFF'"
       - shell:
           !include-raw-verbatim:
           global: true
           mask-password-params: true
       - credentials-binding:
+          - username-password-separated:
+              credential-id: github-readonly-token
+              username: GITHUB_USER
+              password: GITHUB_PASS
           - text:
               credential-id: cd-cypress-record-key
               variable: CYPRESS_RECORD_KEY
index 820c8ed12bf85c4461dca693f97b35301bb6ccdd..4726a41e7b0279b5ebb8f2376c3b73bd04d024aa 100644 (file)
@@ -8,6 +8,15 @@ WORKDIR=$(mktemp -td tox.XXXXXXXXXX)
 # if this project was started manually
 github_status_setup
 
+docs_pr_only
+container_pr_only
+gha_pr_only
+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 ceph-volume tests."
+    exit 0
+fi
+
 # the following two methods exist in scripts/build_utils.sh
 pkgs=( "tox" "github-status>0.0.3" )
 TEMPVENV=$(create_venv_dir)
index 72bf6a86683e15d686a888c55e727717f2e50d6a..9b6fa9022b3fca4078613e4bb200a95a54ca695b 100644 (file)
       - inject-passwords:
           global: true
           mask-password-params: true
+      - credentials-binding:
+          - username-password-separated:
+              credential-id: github-readonly-token
+              username: GITHUB_USER
+              password: GITHUB_PASS
 
     publishers:
       - postbuildscript: