-
Notifications
You must be signed in to change notification settings - Fork 594
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/yiming/remove-java-iceberg-delta…
…lake' into yiming/remove-java-iceberg-deltalake
- Loading branch information
Showing
76 changed files
with
1,655 additions
and
213 deletions.
There are no files selected for viewing
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
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,51 @@ | ||
import subprocess | ||
import sys | ||
from time import sleep | ||
|
||
|
||
def check_go(): | ||
print("--- go client test") | ||
subprocess.run(["docker", "compose", "exec", "go-lang", "bash", "-c", "cd /go-client && ./run.sh"], check=True) | ||
|
||
|
||
def check_python(): | ||
print("--- python client test") | ||
subprocess.run(["docker", "compose", "exec", "python", "bash", "-c", | ||
"cd /python-client && pip3 install -r requirements.txt && pytest"], check=True) | ||
|
||
|
||
def check_java(): | ||
print("--- java client test") | ||
subprocess.run(["docker", "compose", "exec", "java", "bash", "-c", "apt-get update && apt-get install -y maven"], | ||
check=True) | ||
subprocess.run(["docker", "compose", "exec", "java", "bash", "-c", "cd /java-client && mvn clean test"], check=True) | ||
|
||
|
||
subprocess.run(["docker", "compose", "up", "-d"], check=True) | ||
sleep(10) | ||
|
||
failed_cases = [] | ||
|
||
try: | ||
check_go() | ||
except Exception as e: | ||
print(e) | ||
failed_cases.append("go client failed") | ||
|
||
try: | ||
check_python() | ||
except Exception as e: | ||
print(e) | ||
failed_cases.append("python client failed") | ||
|
||
try: | ||
check_java() | ||
except Exception as e: | ||
print(e) | ||
failed_cases.append("java client failed") | ||
|
||
if len(failed_cases) != 0: | ||
print(f"--- client check failed for case\n{failed_cases}") | ||
sys.exit(1) | ||
|
||
subprocess.run(["docker", "compose", "down", "--remove-orphans", "-v"], check=True) |
Oops, something went wrong.