-
Notifications
You must be signed in to change notification settings - Fork 513
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set up Bazel build system to outsource parameterization (#642)
- Loading branch information
1 parent
55c6fbd
commit 3bda878
Showing
64 changed files
with
1,143 additions
and
839 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
package(default_visibility = ["//visibility:public"]) | ||
|
||
test_suite( | ||
name = "DataprocInitActionsTestSuite", | ||
tests = [ | ||
":test_cloud_sql_proxy", | ||
":test_dr_elephant", | ||
":test_hive_hcatalog", | ||
":test_starburst_presto", | ||
"//bigtable:test_bigtable", | ||
"//conda:test_conda", | ||
"//connectors:test_connectors", | ||
"//datalab:test_datalab", | ||
"//drill:test_drill", | ||
"//flink:test_flink", | ||
"//ganglia:test_ganglia", | ||
"//gpu:test_gpu", | ||
"//hbase:test_hbase", | ||
"//hue:test_hue", | ||
"//jupyter:test_jupyter", | ||
"//kafka:test_kafka", | ||
"//livy:test_livy", | ||
"//oozie:test_oozie", | ||
"//presto:test_presto", | ||
"//ranger:test_ranger", | ||
"//rapids:test_rapids", | ||
"//rstudio:test_rstudio", | ||
"//solr:test_solr", | ||
"//tez:test_tez", | ||
"//tony:test_tony", | ||
], | ||
) | ||
|
||
py_test( | ||
name = "test_cloud_sql_proxy", | ||
size = "enormous", | ||
srcs = ["cloud-sql-proxy/test_cloud_sql_proxy.py"], | ||
data = ["cloud-sql-proxy/cloud-sql-proxy.sh"], | ||
local = True, | ||
shard_count = 3, | ||
deps = [ | ||
":pyspark_metastore_test", | ||
"//integration_tests:dataproc_test_case", | ||
"@io_abseil_py//absl/testing:parameterized", | ||
], | ||
) | ||
|
||
py_test( | ||
name = "test_dr_elephant", | ||
size = "enormous", | ||
srcs = ["dr-elephant/test_dr_elephant.py"], | ||
data = ["dr-elephant/dr-elephant.sh"], | ||
local = True, | ||
shard_count = 2, | ||
deps = [ | ||
"//integration_tests:dataproc_test_case", | ||
"@io_abseil_py//absl/testing:parameterized", | ||
], | ||
) | ||
|
||
py_test( | ||
name = "test_hive_hcatalog", | ||
size = "enormous", | ||
srcs = ["hive-hcatalog/test_hive_hcatalog.py"], | ||
data = ["hive-hcatalog/hive-hcatalog.sh"], | ||
local = True, | ||
shard_count = 6, | ||
deps = [ | ||
"//integration_tests:dataproc_test_case", | ||
"@io_abseil_py//absl/testing:parameterized", | ||
], | ||
) | ||
|
||
py_test( | ||
name = "test_starburst_presto", | ||
size = "enormous", | ||
srcs = ["starburst-presto/test_starburst_presto.py"], | ||
data = ["starburst-presto/presto.sh"], | ||
local = True, | ||
shard_count = 4, | ||
deps = [ | ||
"//integration_tests:dataproc_test_case", | ||
"@io_abseil_py//absl/testing:parameterized", | ||
], | ||
) | ||
|
||
py_library( | ||
name = "pyspark_metastore_test", | ||
testonly = True, | ||
srcs = ["cloud-sql-proxy/pyspark_metastore_test.py"], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") | ||
|
||
http_archive( | ||
name = "rules_python", | ||
sha256 = "aa96a691d3a8177f3215b14b0edc9641787abaaa30363a080165d06ab65e1161", | ||
url = "https://github.com/bazelbuild/rules_python/releases/download/0.0.1/rules_python-0.0.1.tar.gz", | ||
) | ||
|
||
http_archive( | ||
name = "io_abseil_py", | ||
sha256 = "9b324bc96587819a1420c592cf5d54424456645719f1de6bb22f7045bb6dbc6b", | ||
strip_prefix = "abseil-py-master", | ||
url = "https://github.com/abseil/abseil-py/archive/master.zip", | ||
) | ||
|
||
http_archive( | ||
name = "six_archive", | ||
build_file = "@io_abseil_py//third_party:six.BUILD", | ||
sha256 = "105f8d68616f8248e24bf0e9372ef04d3cc10104f1980f54d57b2ce73a5ad56a", | ||
strip_prefix = "six-1.10.0", | ||
urls = [ | ||
"http://mirror.bazel.build/pypi.python.org/packages/source/s/six/six-1.10.0.tar.gz", | ||
"https://pypi.python.org/packages/source/s/six/six-1.10.0.tar.gz", | ||
], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package(default_visibility = ["//visibility:public"]) | ||
|
||
py_test( | ||
name = "test_bigtable", | ||
size = "enormous", | ||
srcs = ["test_bigtable.py"], | ||
data = ["bigtable.sh"], | ||
local = True, | ||
shard_count = 3, | ||
deps = [ | ||
":run_hbase_commands", | ||
"//integration_tests:dataproc_test_case", | ||
"@io_abseil_py//absl/testing:parameterized", | ||
], | ||
) | ||
|
||
py_library( | ||
name = "run_hbase_commands", | ||
srcs = ["run_hbase_commands.py"], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.