This is an automated email from the ASF dual-hosted git repository.
rhoughton pushed a commit to branch support/1.12
in repository https://gitbox.apache.org/repos/asf/geode.git
The following commit(s) were added to refs/heads/support/1.12 by this push:
new 4a9da58bc8 Allow CI changes to short-circuit PR tests
4a9da58bc8 is described below
commit 4a9da58bc88e1bfaf67cb3705f2ba2f4d4804e6d
Author: Robert Houghton <[email protected]>
AuthorDate: Fri May 27 13:53:30 2022 -0700
Allow CI changes to short-circuit PR tests
---
ci/scripts/archive_results.sh | 1 +
ci/scripts/delete_instance.sh | 3 +++
ci/scripts/execute_build.sh | 2 ++
ci/scripts/execute_tests.sh | 3 +++
ci/scripts/repeat-new-tests.sh | 4 ++++
ci/scripts/rsync_code_down.sh | 3 +++
ci/scripts/rsync_code_up.sh | 3 +++
7 files changed, 19 insertions(+)
diff --git a/ci/scripts/archive_results.sh b/ci/scripts/archive_results.sh
index 52bfd4ce0f..545f270bf9 100755
--- a/ci/scripts/archive_results.sh
+++ b/ci/scripts/archive_results.sh
@@ -30,6 +30,7 @@ SCRIPTDIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
source ${BASE_DIR}/concourse-metadata-resource/concourse_metadata
source ${SCRIPTDIR}/shared_utilities.sh
+is_source_from_pr_testable "geode" "$(get_geode_pr_exclusion_dirs)" || exit 0
BUILDROOT=$(pwd)
DEST_DIR=${BUILDROOT}/geode-results
diff --git a/ci/scripts/delete_instance.sh b/ci/scripts/delete_instance.sh
index c616087986..fa9f3a0fac 100755
--- a/ci/scripts/delete_instance.sh
+++ b/ci/scripts/delete_instance.sh
@@ -29,6 +29,9 @@ while [ -h "$SOURCE" ]; do # resolve $SOURCE until the file
is no longer a symli
done
SCRIPTDIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
+. ${SCRIPTDIR}/shared_utilities.sh
+is_source_from_pr_testable "geode" "$(get_geode_pr_exclusion_dirs)" || exit 0
+
INSTANCE_NAME="$(cat instance-data/instance-name)"
PERMITTED_ZONES=($(gcloud compute zones list --filter="name~'us-central.*'"
--format=json | jq -r .[].name))
diff --git a/ci/scripts/execute_build.sh b/ci/scripts/execute_build.sh
index 1459c5de3b..28467a26de 100755
--- a/ci/scripts/execute_build.sh
+++ b/ci/scripts/execute_build.sh
@@ -30,6 +30,8 @@ done
SCRIPTDIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
source ${SCRIPTDIR}/shared_utilities.sh
+is_source_from_pr_testable "geode" "$(get_geode_pr_exclusion_dirs)" || exit 0
+
if [[ -z "${GRADLE_TASK}" ]]; then
echo "GRADLE_TASK must be set. exiting..."
exit 1
diff --git a/ci/scripts/execute_tests.sh b/ci/scripts/execute_tests.sh
index b95ee051ef..8b6fffe073 100755
--- a/ci/scripts/execute_tests.sh
+++ b/ci/scripts/execute_tests.sh
@@ -34,6 +34,9 @@ if [[ -z "${GRADLE_TASK}" ]]; then
exit 1
fi
+. ${SCRIPTDIR}/shared_utilities.sh
+is_source_from_pr_testable "geode" "$(get_geode_pr_exclusion_dirs)" || exit 0
+
REPODIR=$(cd geode; git rev-parse --show-toplevel)
if [[ ${PARALLEL_GRADLE:-"true"} == "true" ]]; then
diff --git a/ci/scripts/repeat-new-tests.sh b/ci/scripts/repeat-new-tests.sh
index f744523294..bb0c40d19f 100755
--- a/ci/scripts/repeat-new-tests.sh
+++ b/ci/scripts/repeat-new-tests.sh
@@ -27,6 +27,10 @@ while [[ -h "$SOURCE" ]]; do # resolve $SOURCE until the
file is no longer a sym
done
SCRIPTDIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
+. "${SCRIPTDIR}/shared_utilities.sh"
+
+is_source_from_pr_testable "geode" "$(get_geode_pr_exclusion_dirs)" || exit 0
+
function changes_for_path() {
pushd geode >> /dev/null
local path="$1" # only expand once in the line below
diff --git a/ci/scripts/rsync_code_down.sh b/ci/scripts/rsync_code_down.sh
index 9321d002c3..65168a0f5e 100755
--- a/ci/scripts/rsync_code_down.sh
+++ b/ci/scripts/rsync_code_down.sh
@@ -29,6 +29,9 @@ while [ -h "$SOURCE" ]; do # resolve $SOURCE until the file
is no longer a symli
done
SCRIPTDIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
+. ${SCRIPTDIR}/shared_utilities.sh
+is_source_from_pr_testable "geode" "$(get_geode_pr_exclusion_dirs)" || exit 0
+
SSHKEY_FILE="instance-data/sshkey"
test -e ${SSHKEY_FILE}
diff --git a/ci/scripts/rsync_code_up.sh b/ci/scripts/rsync_code_up.sh
index c88b14f3cd..55cafa9ec7 100755
--- a/ci/scripts/rsync_code_up.sh
+++ b/ci/scripts/rsync_code_up.sh
@@ -31,6 +31,9 @@ SCRIPTDIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
REPODIR=$(cd geode; git rev-parse --show-toplevel)
+. ${SCRIPTDIR}/shared_utilities.sh
+is_source_from_pr_testable "geode" "$(get_geode_pr_exclusion_dirs)" || exit 0
+
SSHKEY_FILE="instance-data/sshkey"
SSH_OPTIONS="-i ${SSHKEY_FILE} -o ConnectionAttempts=60 -o
StrictHostKeyChecking=no"