-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-8422] [BUILD] [PROJECT INFRA] Add a module abstraction to dev/run-tests #6866
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
f0249bd
f53864b
37f3fb3
3371441
43a0ced
7092d3e
dc6f1c6
3670d50
df10e23
35a3052
e46539f
a86a953
4224da5
75de450
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -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", | ||
|
|
@@ -114,35 +112,108 @@ def contains_file(self, filename): | |
| name="streaming", | ||
| dependencies=[], | ||
| source_file_regexes=[ | ||
| "external/", | ||
| "extras/java8-tests/", | ||
| "extras/kinesis-asl/", | ||
| "streaming", | ||
| ], | ||
| 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", | ||
| ] | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. should run pyspark test, same to sql and mllib
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The intent was to have this be covered via transitive dependencies: the
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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", | ||
| ] | ||
| ) | ||
|
|
||
|
|
@@ -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. | ||
|
|
||
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.