Skip to content
Snippets Groups Projects
Commit 864d94fe authored by Wenchen Fan's avatar Wenchen Fan
Browse files

[SPARK-20974][BUILD] we should run REPL tests if SQL module has code changes

## What changes were proposed in this pull request?

REPL module depends on SQL module, so we should run REPL tests if SQL module has code changes.

## How was this patch tested?

N/A

Author: Wenchen Fan <wenchen@databricks.com>

Closes #18191 from cloud-fan/test.
parent 6de41e95
No related branches found
No related tags found
No related merge requests found
...@@ -111,7 +111,7 @@ def determine_modules_to_test(changed_modules): ...@@ -111,7 +111,7 @@ def determine_modules_to_test(changed_modules):
>>> x = [x.name for x in determine_modules_to_test([modules.sql])] >>> x = [x.name for x in determine_modules_to_test([modules.sql])]
>>> x # doctest: +NORMALIZE_WHITESPACE >>> x # doctest: +NORMALIZE_WHITESPACE
['sql', 'hive', 'mllib', 'sql-kafka-0-10', 'examples', 'hive-thriftserver', ['sql', 'hive', 'mllib', 'sql-kafka-0-10', 'examples', 'hive-thriftserver',
'pyspark-sql', 'sparkr', 'pyspark-mllib', 'pyspark-ml'] 'pyspark-sql', 'repl', 'sparkr', 'pyspark-mllib', 'pyspark-ml']
""" """
modules_to_test = set() modules_to_test = set()
for module in changed_modules: for module in changed_modules:
......
...@@ -123,6 +123,7 @@ sql = Module( ...@@ -123,6 +123,7 @@ sql = Module(
], ],
) )
hive = Module( hive = Module(
name="hive", name="hive",
dependencies=[sql], dependencies=[sql],
...@@ -142,6 +143,18 @@ hive = Module( ...@@ -142,6 +143,18 @@ hive = Module(
) )
repl = Module(
name="repl",
dependencies=[hive],
source_file_regexes=[
"repl/",
],
sbt_test_goals=[
"repl/test",
],
)
hive_thriftserver = Module( hive_thriftserver = Module(
name="hive-thriftserver", name="hive-thriftserver",
dependencies=[hive], dependencies=[hive],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment