-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Import KETTLE, a pipeline to get GCS test results into BigQuery.
- Loading branch information
Ryan Hitchman
committed
Mar 7, 2017
1 parent
0f7a1e4
commit a57d0bd
Showing
10 changed files
with
1,146 additions
and
2 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,3 @@ | ||
*.db | ||
*.gz | ||
*.json |
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,59 @@ | ||
py_test( | ||
name = "make_db_test", | ||
srcs = [ | ||
"make_db.py", | ||
"make_db_test.py", | ||
"model.py", | ||
], | ||
# Remove when these are fixed. | ||
# https://github.com/bazelbuild/bazel/issues/1973 | ||
# https://github.com/bazelbuild/bazel/issues/2056 | ||
local = True, | ||
) | ||
|
||
py_binary( | ||
name = "make_db", | ||
srcs = [ | ||
"make_db.py", | ||
"model.py", | ||
], | ||
) | ||
|
||
py_test( | ||
name = "model_test", | ||
srcs = [ | ||
"model.py", | ||
"model_test.py", | ||
], | ||
) | ||
|
||
py_test( | ||
name = "make_json_test", | ||
srcs = [ | ||
"make_json.py", | ||
"make_json_test.py", | ||
"model.py", | ||
], | ||
data = ["//:buckets"], | ||
# idem | ||
local = True, | ||
) | ||
|
||
filegroup( | ||
name = "package-srcs", | ||
srcs = glob( | ||
["**"], | ||
exclude = [ | ||
"*.db", | ||
"*.gz", | ||
], | ||
), | ||
visibility = ["//visibility:private"], | ||
) | ||
|
||
filegroup( | ||
name = "all-srcs", | ||
srcs = [":package-srcs"], | ||
tags = ["automanaged"], | ||
visibility = ["//visibility:public"], | ||
) |
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,6 @@ | ||
KETTLE -- Kubernetes Extract Tests/Transform/Load Engine | ||
====== | ||
|
||
This collects test results scattered across a variety of GCS buckets, | ||
stores them in a local SQLite database, and outputs newline-delimited JSON files | ||
for import into BigQuery. |
Oops, something went wrong.