Skip to content

Commit c63036c

Browse files
committed
Revert "[BUILD] Always run SQL tests in master build."
This reverts commit 147b6be.
1 parent f490b3b commit c63036c

File tree

2 files changed

+17
-26
lines changed

2 files changed

+17
-26
lines changed

dev/run-tests

Lines changed: 17 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -82,31 +82,24 @@ export SBT_MAVEN_PROFILES_ARGS="$SBT_MAVEN_PROFILES_ARGS -Pkinesis-asl"
8282
if [ -n "$AMPLAB_JENKINS" ]; then
8383
git fetch origin master:master
8484

85-
# AMP_JENKINS_PRB indicates if the current build is a pull request build.
86-
if [ -n "$AMP_JENKINS_PRB" ]; then
87-
# It is a pull request build.
88-
sql_diffs=$(
89-
git diff --name-only master \
90-
| grep -e "^sql/" -e "^bin/spark-sql" -e "^sbin/start-thriftserver.sh"
91-
)
92-
93-
non_sql_diffs=$(
94-
git diff --name-only master \
95-
| grep -v -e "^sql/" -e "^bin/spark-sql" -e "^sbin/start-thriftserver.sh"
96-
)
97-
98-
if [ -n "$sql_diffs" ]; then
99-
echo "[info] Detected changes in SQL. Will run Hive test suite."
100-
_RUN_SQL_TESTS=true
101-
102-
if [ -z "$non_sql_diffs" ]; then
103-
echo "[info] Detected no changes except in SQL. Will only run SQL tests."
104-
_SQL_TESTS_ONLY=true
105-
fi
106-
fi
107-
else
108-
# It is a regular build. We should run SQL tests.
85+
sql_diffs=$(
86+
git diff --name-only master \
87+
| grep -e "^sql/" -e "^bin/spark-sql" -e "^sbin/start-thriftserver.sh"
88+
)
89+
90+
non_sql_diffs=$(
91+
git diff --name-only master \
92+
| grep -v -e "^sql/" -e "^bin/spark-sql" -e "^sbin/start-thriftserver.sh"
93+
)
94+
95+
if [ -n "$sql_diffs" ]; then
96+
echo "[info] Detected changes in SQL. Will run Hive test suite."
10997
_RUN_SQL_TESTS=true
98+
99+
if [ -z "$non_sql_diffs" ]; then
100+
echo "[info] Detected no changes except in SQL. Will only run SQL tests."
101+
_SQL_TESTS_ONLY=true
102+
fi
110103
fi
111104
fi
112105

dev/run-tests-jenkins

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,8 +185,6 @@ done
185185

186186
# run tests
187187
{
188-
# Marks this build is a pull request build.
189-
export AMP_JENKINS_PRB=true
190188
timeout "${TESTS_TIMEOUT}" ./dev/run-tests
191189
test_result="$?"
192190

0 commit comments

Comments
 (0)