Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Clean up modules; add new modules for streaming external projects
  • Loading branch information
JoshRosen committed Jun 19, 2015
commit a86a953443411aac830b615cbfc06763520a6f2f
106 changes: 93 additions & 13 deletions dev/run-tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,6 @@ def contains_file(self, filename):
source_file_regexes=[
"sql/(?!hive-thriftserver)",
"bin/spark-sql",
"examples/src/main/java/org/apache/spark/examples/sql/",
"examples/src/main/scala/org/apache/spark/examples/sql/",
],
sbt_test_goals=[
"catalyst/test",
Expand Down Expand Up @@ -114,35 +112,108 @@ def contains_file(self, filename):
name="streaming",
dependencies=[],
source_file_regexes=[
"external/",
"extras/java8-tests/",
"extras/kinesis-asl/",
"streaming",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is missing the example streaming files

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these should be covered by the examples subproject instead.

],
sbt_test_goals=[
"streaming/test",
"streaming-flume/test",
"streaming-flume-sink/test",
"streaming-kafka/test",
"streaming-mqtt/test",
"streaming-twitter/test",
]
)


streaming_kinesis_asl = Module(
name="kinesis-asl",
dependencies=[streaming],
source_file_regexes=[
"extras/kinesis-asl/",
],
sbt_test_goals=[
"kinesis-asl/test",
]
)


streaming_zeromq = Module(
name="streaming-zeromq",
dependencies=[streaming],
source_file_regexes=[
"external/zeromq",
],
sbt_test_goals=[
"streaming-zeromq/test",
]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should run pyspark test, same to sql and mllib

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The intent was to have this be covered via transitive dependencies: the pyspark module (on line 162) depends on mllib, sql, and streaming, so changes in any of those modules will cause the python tests to be run.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

O, I see, make sense.

)


streaming_twitter = Module(
name="streaming-twitter",
dependencies=[streaming],
source_file_regexes=[
"external/twitter",
],
sbt_test_goals=[
"streaming-twitter/test",
]
)


streaming_mqqt = Module(
name="streaming-mqqt",
dependencies=[streaming],
source_file_regexes=[
"external/mqqt",
],
sbt_test_goals=[
"streaming-mqqt/test",
]
)


streaming_kafka = Module(
name="streaming-kafka",
dependencies=[streaming],
source_file_regexes=[
"external/kafka",
"external/kafka-assembly",
],
sbt_test_goals=[
"streaming-kafka/test",
]
)


streaming_flume_sink = Module(
name="streaming-flume-sink",
dependencies=[streaming],
source_file_regexes=[
"external/flume-sink",
],
sbt_test_goals=[
"streaming-flume-sink/test",
]
)


streaming_flume = Module(
name="streaming_flume",
dependencies=[streaming],
source_file_regexes=[
"external/flume",
],
sbt_test_goals=[
"streaming-flume/test",
]
)


mllib = Module(
name="mllib",
dependencies=[streaming, sql],
source_file_regexes=[
"examples/src/main/java/org/apache/spark/examples/mllib/",
"examples/src/main/scala/org/apache/spark/examples/mllib",
"data/mllib/",
"mllib/",
],
sbt_test_goals=[
"mllib/test",
"examples/test",
]
)

Expand Down Expand Up @@ -188,6 +259,15 @@ def contains_file(self, filename):
)


ec2 = Module(
name="ec2",
dependencies=[],
source_file_regexes=[
"ec2/",
]
)


def determine_modules_for_files(filenames):
"""
Given a list of filenames, return the set of modules that contain those files.
Expand Down