Github user scwf commented on a diff in the pull request:

    https://github.com/apache/spark/pull/5955#discussion_r29989635
  
    --- Diff: dev/run-tests ---
    @@ -82,24 +82,31 @@ export 
SBT_MAVEN_PROFILES_ARGS="$SBT_MAVEN_PROFILES_ARGS -Pkinesis-asl"
     if [ -n "$AMPLAB_JENKINS" ]; then
       git fetch origin master:master
     
    -  sql_diffs=$(
    -    git diff --name-only master \
    -    | grep -e "^sql/" -e "^bin/spark-sql" -e "^sbin/start-thriftserver.sh"
    -  )
    -
    -  non_sql_diffs=$(
    -    git diff --name-only master \
    -    | grep -v -e "^sql/" -e "^bin/spark-sql" -e 
"^sbin/start-thriftserver.sh"
    -  )
    -
    -  if [ -n "$sql_diffs" ]; then
    -    echo "[info] Detected changes in SQL. Will run Hive test suite."
    -    _RUN_SQL_TESTS=true
    -
    -    if [ -z "$non_sql_diffs" ]; then
    -      echo "[info] Detected no changes except in SQL. Will only run SQL 
tests."
    -      _SQL_TESTS_ONLY=true
    +  # AMP_JENKINS_PRB indicates if the current build is a pull request build.
    +  if [ -n "$AMP_JENKINS_PRB" ]; then
    +    # It is a pull request build.
    +    sql_diffs=$(
    +      git diff --name-only master \
    +      | grep -e "^sql/" -e "^bin/spark-sql" -e 
"^sbin/start-thriftserver.sh"
    +    )
    +
    +    non_sql_diffs=$(
    +      git diff --name-only master \
    +      | grep -v -e "^sql/" -e "^bin/spark-sql" -e 
"^sbin/start-thriftserver.sh"
    +    )
    +
    +    if [ -n "$sql_diffs" ]; then
    +      echo "[info] Detected changes in SQL. Will run Hive test suite."
    +      _RUN_SQL_TESTS=true
    +
    +      if [ -z "$non_sql_diffs" ]; then
    +        echo "[info] Detected no changes except in SQL. Will only run SQL 
tests."
    --- End diff --
    
    maybe "only run SQL related module test suite"


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to