-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generate binary datasets in CI instead of storing them in the repo
- Loading branch information
1 parent
52f99f5
commit 08ced36
Showing
31 changed files
with
138 additions
and
20 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
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
Empty file.
Empty file.
Empty file.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Empty file.
Empty file.
Empty file.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file was deleted.
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 |
---|---|---|
@@ -1,5 +1,30 @@ | ||
import os | ||
import shutil | ||
import subprocess | ||
import sys | ||
|
||
KUZU_ROOT = os.path.dirname(os.path.dirname(os.path.realpath(__file__))) | ||
# Datasets can only be copied from the root since copy.schema contains relative paths | ||
os.chdir(KUZU_ROOT) | ||
|
||
# Change the current working directory | ||
os.chdir(f'{os.getcwd()}/../dataset') | ||
if os.path.exists(f"{KUZU_ROOT}/dataset/databases/tinysnb"): | ||
shutil.rmtree(f"{KUZU_ROOT}/dataset/databases/tinysnb") | ||
if sys.platform == "win32": | ||
kuzu_shell_path = f"{KUZU_ROOT}/build/relwithdebinfo/tools/shell/kuzu_shell" | ||
else: | ||
kuzu_shell_path = f"{KUZU_ROOT}/build/relwithdebinfo/tools/shell/kuzu" | ||
subprocess.check_call( | ||
[ | ||
"python3", | ||
f"{KUZU_ROOT}/benchmark/serializer.py", | ||
"TinySNB", | ||
f"{KUZU_ROOT}/dataset/tinysnb", | ||
f"{KUZU_ROOT}/dataset/databases/tinysnb", | ||
"--single-thread", | ||
"--kuzu-shell", | ||
kuzu_shell_path, | ||
] | ||
) | ||
os.chdir(f"{KUZU_ROOT}/dataset") | ||
os.system("python3 -m RangeHTTPServer 80") |