From: Shraddha Agrawal Date: Tue, 3 Mar 2026 10:06:46 +0000 (+0530) Subject: disable CI checks for PRs with only docs/QA changes X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=5fb3538d961cdb9e1376f9c7b95d641643bf5ef0;p=ceph-build.git disable CI checks for PRs with only docs/QA changes Signed-off-by: Shraddha Agrawal --- 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 index 00000000..9dd1a722 --- /dev/null +++ b/ceph-dashboard-pull-requests/build/check_docs_pr_only @@ -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 diff --git a/ceph-dashboard-pull-requests/config/definitions/ceph-dashboard-pull-requests.yml b/ceph-dashboard-pull-requests/config/definitions/ceph-dashboard-pull-requests.yml index 55af8b7d..3cc5813c 100644 --- a/ceph-dashboard-pull-requests/config/definitions/ceph-dashboard-pull-requests.yml +++ b/ceph-dashboard-pull-requests/config/definitions/ceph-dashboard-pull-requests.yml @@ -62,6 +62,10 @@ 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: @@ -81,6 +85,10 @@ 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 diff --git a/ceph-volume-cephadm-prs/build/build b/ceph-volume-cephadm-prs/build/build index 820c8ed1..4726a41e 100644 --- a/ceph-volume-cephadm-prs/build/build +++ b/ceph-volume-cephadm-prs/build/build @@ -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) diff --git a/ceph-volume-cephadm-prs/config/definitions/ceph-volume-pr.yml b/ceph-volume-cephadm-prs/config/definitions/ceph-volume-pr.yml index 72bf6a86..9b6fa902 100644 --- a/ceph-volume-cephadm-prs/config/definitions/ceph-volume-pr.yml +++ b/ceph-volume-cephadm-prs/config/definitions/ceph-volume-pr.yml @@ -102,6 +102,11 @@ - 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: