Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding Apache Kylin into the openctest framework #29

Open
wants to merge 70 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
70 commits
Select commit Hold shift + click to select a range
91fdc2d
add project kylin
ConstaT99 Nov 30, 2022
04d8cb8
update gitignore
ConstaT99 Nov 30, 2022
de1b9cb
Update default and environmental path variables
CarolSSS Nov 30, 2022
6fb4410
update inject file
ConstaT99 Nov 30, 2022
99b2934
update injection and main in generate ctest
ConstaT99 Nov 30, 2022
a039c39
Update value generation
CarolSSS Nov 30, 2022
09688bd
Merge branch 'main' of https://github.com/ConstaT99/openctest
CarolSSS Nov 30, 2022
7c4e7fd
update identify_param and add_project
ConstaT99 Nov 30, 2022
cead0a4
Update const param
CarolSSS Nov 30, 2022
5ec8058
Update const param
CarolSSS Dec 1, 2022
fbb6c46
Update const param
CarolSSS Dec 1, 2022
38ae8a5
change last part
CarolSSS Dec 1, 2022
f9809b7
Finish all first step changing
CarolSSS Dec 1, 2022
d3faa6b
Finish generate value
CarolSSS Dec 2, 2022
9481940
fixed surefire and push
ConstaT99 Dec 2, 2022
eb76861
new repo
ConstaT99 Dec 5, 2022
5f9b37d
add_project
ConstaT99 Dec 5, 2022
63b80b3
Update generate value and getter/setter result
CarolSSS Dec 6, 2022
23de7b8
update result specific for kylin
CarolSSS Dec 6, 2022
d2d628d
add generated values to ctest
CarolSSS Dec 6, 2022
e366e49
adding test_result/kylin-common
CarolSSS Dec 6, 2022
6c29013
update map
CarolSSS Dec 6, 2022
d133526
update generate ctest with fixed data file
CarolSSS Dec 6, 2022
36355b9
fixed the bug
ConstaT99 Dec 6, 2022
fad6287
fix bugs
ConstaT99 Dec 6, 2022
77bbc0e
update ctest const value
ConstaT99 Dec 6, 2022
9980400
some updates
ConstaT99 Dec 6, 2022
9c884a0
clean repo
ConstaT99 Dec 6, 2022
b7e0afd
clean repo
ConstaT99 Dec 6, 2022
c4af888
clean
ConstaT99 Dec 6, 2022
89fe040
clean
ConstaT99 Dec 6, 2022
90156af
clean
ConstaT99 Dec 6, 2022
8cf0e86
clean
ConstaT99 Dec 6, 2022
9bc3f87
clean
ConstaT99 Dec 6, 2022
511832b
clean in progress
ConstaT99 Dec 6, 2022
387ea76
update some change
ConstaT99 Dec 6, 2022
d40e854
clean
ConstaT99 Dec 6, 2022
b947e96
clean
ConstaT99 Dec 6, 2022
406562f
update git ignore
ConstaT99 Dec 6, 2022
6e6dad7
adding functions for tool
CarolSSS Dec 6, 2022
91ab7ea
update result
CarolSSS Dec 6, 2022
063be4d
update ctest
CarolSSS Dec 6, 2022
ab67280
update ctest
CarolSSS Dec 6, 2022
00d4cb6
common version
ConstaT99 Dec 6, 2022
62488ab
fix bug
ConstaT99 Dec 8, 2022
e670de5
update ignore
ConstaT99 Dec 8, 2022
9d8b4bd
Update-cube storage
CarolSSS Dec 8, 2022
c8574c4
Merge branch 'main' of https://github.com/ConstaT99/openctest
CarolSSS Dec 8, 2022
138aa77
updare git ignore
ConstaT99 Dec 8, 2022
013a716
update gitignore
ConstaT99 Dec 9, 2022
692a8c6
Upate identify_param
CarolSSS Dec 9, 2022
69a7bbd
update git ignore
ConstaT99 Dec 9, 2022
951b650
fix storage not found
CarolSSS Dec 9, 2022
59cb74b
update gitignore
ConstaT99 Dec 9, 2022
5179b52
Delete log
CarolSSS Dec 9, 2022
b7f18f6
Delete log
CarolSSS Dec 9, 2022
e8fff4b
update error of fogetting adding in const
CarolSSS Dec 9, 2022
51f7280
Merge branch 'main' of https://github.com/ConstaT99/openctest
ConstaT99 Dec 9, 2022
14acea0
Merge branch 'xlab-uiuc:main' into main
ConstaT99 Dec 9, 2022
5c62bf0
Merge branch 'main' of https://github.com/ConstaT99/openctest
ConstaT99 Dec 9, 2022
3ebfd22
add patch
ConstaT99 Dec 9, 2022
5130fd0
update getctest storage
CarolSSS Dec 9, 2022
039c1d6
update getctest storage
CarolSSS Dec 9, 2022
fb06a15
Update generate ctest
CarolSSS Dec 9, 2022
88467b7
push cube
CarolSSS Dec 9, 2022
01da495
Update hardcoded value
CarolSSS Dec 9, 2022
311127a
update map
ConstaT99 Dec 9, 2022
6cab976
clean repo
ConstaT99 Dec 9, 2022
589cb42
cube done
ConstaT99 Dec 9, 2022
2af7f3c
clean program input file
ConstaT99 Dec 9, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ share/python-wheels/
.installed.cfg
*.egg
MANIFEST
.idea/
.DS_Store
.vscode/

# PyInstaller
# Usually these files are written by a python script from a template
Expand Down Expand Up @@ -127,3 +130,40 @@ dmypy.json

# Pyre type checker
.pyre/
#generationfile
app/
core/run_ctest/run_ctest_result

core/identify_param/results/kylin-common/logs
core/identify_param/results/kylin-common/param_getter_map.json
core/identify_param/results/kylin-common/param_setter_map.json
core/identify_param/results/kylin-common/param_unset_getter_map.json


core/identify_param/results/kylin-tool/logs
core/identify_param/results/kylin-tool/param_getter_map.json
core/identify_param/results/kylin-tool/param_setter_map.json
core/identify_param/results/kylin-tool/param_unset_getter_map.json

core/identify_param/results/kylin-cube/logs
core/identify_param/results/kylin-cube/param_getter_map.json
core/identify_param/results/kylin-cube/param_setter_map.json
core/identify_param/results/kylin-cube/param_unset_getter_map.json

core/identify_param/results/kylin-storage/logs
core/identify_param/results/kylin-storage/param_getter_map.json
core/identify_param/results/kylin-storage/param_setter_map.json
core/identify_param/results/kylin-storage/param_unset_getter_map.json




core/generate_ctest/test_result
core/run_ctest/sample-kylin-common
core/run_ctest/sample-kylin-tool

core/generate_value/kylin-common-generated-values.tsv
core/generate_value/kylin-tool-generated-values.tsv
core/generate_ctest/sample-kylin-common.tsv
core/generate_ctest/sample-kylin-tool.tsv

10 changes: 9 additions & 1 deletion core/add_project.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,13 @@ function setup_alluxio() {
mvn clean install -DskipTests -Dcheckstyle.skip -Dlicense.skip -Dfindbugs.skip -Dmaven.javadoc.skip=true
}

function setup_kylin(){
[ ! -d "app/ctest-kylin" ] && git clone https://github.com/rtao6/kylin.git app/ctest-kylin
cd app/ctest-kylin
git fetch && git checkout ctest-injection
mvn clean install -DskipTests -Dcheckstyle.skip -Dlicense.skip -Dfindbugs.skip -Dmaven.javadoc.skip=true
}

function usage() {
echo "Usage: add_project.sh <main project>"
exit 1
Expand All @@ -64,7 +71,8 @@ function main() {
hbase) setup_hbase ;;
zookeeper) setup_zookeeper ;;
alluxio) setup_alluxio ;;
*) echo "Unexpected project: $project - only support hadoop, hbase, zookeeper and alluxio." ;;
kylin) setup_kylin ;;
*) echo "Unexpected project: $project - only support hadoop, hbase, zookeeper, alluxio, and kylin." ;;
esac
fi
}
Expand Down
41 changes: 39 additions & 2 deletions core/ctest_const.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,27 @@
HBASE = "hbase-server"
ZOOKEEPER = "zookeeper-server"
ALLUXIO = "alluxio-core"
KCOMMON = "kylin-common"
KTOOL = "kylin-tool"
KSTORAGE = "kylin-storage"
KCUBE = "kylin-cube"

CTEST_HADOOP_DIR = os.path.join(APP_DIR, "ctest-hadoop")
CTEST_HBASE_DIR = os.path.join(APP_DIR, "ctest-hbase")
CTEST_ZK_DIR = os.path.join(APP_DIR, "ctest-zookeeper")
CTEST_ALLUXIO_DIR = os.path.join(APP_DIR, "ctest-alluxio")
CTEST_KYLIN_DIR = os.path.join(APP_DIR, "ctest-kylin")

PROJECT_DIR = {
HCOMMON: CTEST_HADOOP_DIR,
HDFS: CTEST_HADOOP_DIR,
HBASE: CTEST_HBASE_DIR,
ZOOKEEPER: CTEST_ZK_DIR,
ALLUXIO: CTEST_ALLUXIO_DIR,
KCOMMON: CTEST_KYLIN_DIR,
KTOOL: CTEST_KYLIN_DIR,
KSTORAGE: CTEST_KYLIN_DIR,
KCUBE: CTEST_KYLIN_DIR,
}


Expand All @@ -34,11 +43,15 @@
HBASE: "hbase-server",
ZOOKEEPER: "zookeeper-server",
ALLUXIO: "core",
KCOMMON: "core-common",
KTOOL: "tool",
KSTORAGE: "core-storage",
KCUBE: "core-cube",
}


# surefire report
SUREFIRE_SUBDIR = "target/surefire-reports/"
SUREFIRE_SUBDIR = "../target/surefire-reports/"
SUREFIRE_XML = "TEST-{}.xml" # slot is the classname
SUREFIRE_TXT = "{}.txt" # testclass
SUREFIRE_OUTTXT = "{}-output.txt" #testclass
Expand All @@ -58,6 +71,10 @@
os.path.join(CTEST_ALLUXIO_DIR, MODULE_SUBDIR[ALLUXIO], "server/worker", SUREFIRE_SUBDIR),
os.path.join(CTEST_ALLUXIO_DIR, MODULE_SUBDIR[ALLUXIO], "server/master", SUREFIRE_SUBDIR),
],
KCOMMON: [os.path.join(CTEST_KYLIN_DIR, MODULE_SUBDIR[KCOMMON], SUREFIRE_SUBDIR)],
KTOOL: [os.path.join(CTEST_KYLIN_DIR, MODULE_SUBDIR[KTOOL], SUREFIRE_SUBDIR)],
KSTORAGE: [os.path.join(CTEST_KYLIN_DIR, MODULE_SUBDIR[KSTORAGE], SUREFIRE_SUBDIR)],
KCUBE: [os.path.join(CTEST_KYLIN_DIR, MODULE_SUBDIR[KCUBE], SUREFIRE_SUBDIR)],
}

# default or deprecate conf path
Expand All @@ -74,7 +91,11 @@
HDFS: os.path.join(DEFAULT_CONF_DIR, HDFS + "-default.tsv"),
HBASE: os.path.join(DEFAULT_CONF_DIR, HBASE + "-default.tsv"),
ALLUXIO: os.path.join(DEFAULT_CONF_DIR, ALLUXIO + "-default.tsv"),
ZOOKEEPER: os.path.join(DEFAULT_CONF_DIR, ZOOKEEPER + "-default.tsv")
ZOOKEEPER: os.path.join(DEFAULT_CONF_DIR, ZOOKEEPER + "-default.tsv"),
KCOMMON: os.path.join(DEFAULT_CONF_DIR, KCOMMON + "-default.tsv"),
KTOOL: os.path.join(DEFAULT_CONF_DIR, KTOOL + "-default.tsv"),
KSTORAGE: os.path.join(DEFAULT_CONF_DIR, KCOMMON + "-default.tsv"), # Same as KCOMMON
KCUBE: os.path.join(DEFAULT_CONF_DIR, KCOMMON + "-default.tsv"), # Same as KCOMMON
}


Expand All @@ -96,6 +117,22 @@
],
ALLUXIO: [
os.path.join(CTEST_ALLUXIO_DIR, "core/alluxio-ctest.properties")
],
KCOMMON: [
os.path.join(CTEST_KYLIN_DIR, "core-common/src/main/resources/ctest.properties")
# os.path.join(CTEST_KYLIN_DIR, "core-common/target/ctest.properties")
],
KTOOL: [
os.path.join(CTEST_KYLIN_DIR, "core-common/src/main/resources/ctest.properties")
# os.path.join(CTEST_KYLIN_DIR, "core-common/target/classes/ctest.properties")
],
KSTORAGE: [
os.path.join(CTEST_KYLIN_DIR, "core-common/src/main/resources/ctest.properties")
# os.path.join(CTEST_KYLIN_DIR, "core-common/target/classes/ctest.properties")
],
KCUBE: [
os.path.join(CTEST_KYLIN_DIR, "core-common/src/main/resources/ctest.properties")
# os.path.join(CTEST_KYLIN_DIR, "core-common/target/classes/ctest.properties")
]
}

Expand Down
Loading