-
Notifications
You must be signed in to change notification settings - Fork 590
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into kwannoel/reserve-buffer
- Loading branch information
Showing
86 changed files
with
2,067 additions
and
935 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,41 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Exits as soon as any line fails. | ||
set -euo pipefail | ||
|
||
while getopts 'c:f:' opt; do | ||
case ${opt} in | ||
c ) | ||
case=$OPTARG | ||
;; | ||
f ) | ||
format=$OPTARG | ||
;; | ||
\? ) | ||
echo "Invalid Option: -$OPTARG" 1>&2 | ||
exit 1 | ||
;; | ||
: ) | ||
echo "Invalid option: $OPTARG requires an argument" 1>&2 | ||
;; | ||
esac | ||
done | ||
shift $((OPTIND -1)) | ||
|
||
echo "--- install postgresql" | ||
sudo yum install -y postgresql | ||
|
||
cd integration_tests/scripts | ||
|
||
echo "--- case: ${case}, format: ${format}" | ||
|
||
echo "--- Rewrite docker compose for protobuf" | ||
if [ "${format}" == "protobuf" ]; then | ||
python3 gen_pb_compose.py ${case} ${format} | ||
fi | ||
|
||
echo "--- Run Demos" | ||
python3 run_demos.py --case ${case} --format ${format} | ||
|
||
echo "--- Check if the ingestion is successful" | ||
python3 check_data.py ${case} |
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,68 @@ | ||
steps: | ||
- label: "Run Demos {{matrix.testcase}} {{matrix.format}}" | ||
command: "ci/scripts/integration-tests.sh -c {{matrix.testcase}} -f {{matrix.format}}" | ||
timeout_in_minutes: 30 | ||
matrix: | ||
setup: | ||
testcase: | ||
- "ad-click" | ||
- "ad-ctr" | ||
- "cdn-metrics" | ||
- "clickstream" | ||
- "livestream" | ||
- "twitter" | ||
- "prometheus" | ||
- "schema-registry" | ||
- "mysql-cdc" | ||
- "postgres-cdc" | ||
- "mysql-sink" | ||
- "postgres-sink" | ||
- "iceberg-sink" | ||
format: | ||
- "json" | ||
- "protobuf" | ||
adjustments: | ||
- with: | ||
testcase: "ad-click" | ||
format: "protobuf" | ||
skip: true | ||
- with: | ||
testcase: "ad-ctr" | ||
format: "protobuf" | ||
skip: true | ||
- with: | ||
testcase: "cdn-metrics" | ||
format: "protobuf" | ||
skip: true | ||
- with: | ||
testcase: "clickstream" | ||
format: "protobuf" | ||
skip: true | ||
- with: | ||
testcase: "prometheus" | ||
format: "protobuf" | ||
skip: true | ||
- with: | ||
testcase: "schema-registry" | ||
format: "protobuf" | ||
skip: true | ||
- with: | ||
testcase: "mysql-cdc" | ||
format: "protobuf" | ||
skip: true | ||
- with: | ||
testcase: "postgres-cdc" | ||
format: "protobuf" | ||
skip: true | ||
- with: | ||
testcase: "mysql-sink" | ||
format: "protobuf" | ||
skip: true | ||
- with: | ||
testcase: "postgres-sink" | ||
format: "protobuf" | ||
skip: true | ||
- with: | ||
testcase: "iceberg-sink" | ||
format: "protobuf" | ||
skip: true |
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.