-
Notifications
You must be signed in to change notification settings - Fork 321
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
liuqiyuan
committed
Feb 2, 2024
1 parent
6d6743b
commit 891b610
Showing
5 changed files
with
58 additions
and
8 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# README | ||
|
||
## 参数配置脚本 | ||
|
||
``` | ||
test/format_config.sh {openmldbPath} {jobName} {portFrom} {portTo} {type} {Dependency} | ||
``` | ||
配置生成在 out/openmldb_info.yaml | ||
|
||
Dependency为hadoop时使用hadoop config | ||
|
||
Dependency为ssd时禁止部署在node-1 | ||
|
||
## 一键运行脚本 | ||
``` | ||
test/openmldb-integration-test.sh -c {caseXML} -d {deployMode} -j {jarVersion} -l {caseLevel} -s {tableStorageMode} -m {executeMode} | ||
``` | ||
|
||
### 版本兼容性测试 | ||
openmldb包版本设置: test/format_config.sh {openmldbPath} | ||
|
||
jar版本设置: test/openmldb-integration-test.sh -j {jarVersion} | ||
|
||
### kafka测试 | ||
``` | ||
test/integration-test/openmldb-test-java/kafka_test.sh | ||
``` | ||
环境配置于node-4: kakfa_test(docker) | ||
|
||
## 回归测试workflow | ||
hadoop配置文件位于 /mnt/hdd0/denglong/openmldb_runner_work/hadoop |
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,18 @@ | ||
#! /bin/bash | ||
|
||
apiserver="$(awk -F '"' 'NR==7{print $2}' ../../../out/openmldb_info.yaml)" | ||
zkc="zk=""$(awk -F '"' 'NR==2{print $2}' ../../../out/openmldb_info.yaml)" | ||
zkpath="\&zkPath=""$(awk -F '"' 'NR==3{print $2}' ../../../out/openmldb_info.yaml)" | ||
echo "${zkc}" | ||
echo "${zkpath}" | ||
zk="${zkc}""${zkpath}" | ||
|
||
docker exec -it kafka_test /start.sh "${zk}" | ||
sed -i "s#\"bootstrap.servers\":.*#\"bootstrap.servers\":node-4:9092,#" openmldb-ecosystem/src/test/resources/kafka_test_cases.yml | ||
sed -i "s#\"connect.listeners\":.*#\"connect.listeners\":http://node-4:8083,#" openmldb-ecosystem/src/test/resources/kafka_test_cases.yml | ||
sed -i "s#apiserver.address:.*#apiserver.address: "${apiserver}"#" openmldb-ecosystem/src/test/resources/kafka_test_cases.yml | ||
Check warning on line 13 in test/integration-test/openmldb-test-java/kafka_test.sh GitHub Actions / shellcheck
Check warning on line 13 in test/integration-test/openmldb-test-java/kafka_test.sh GitHub Actions / shellcheck
|
||
sed -i "s#kafka_test?.*#kafka_test?"${zk}"\"#" openmldb-ecosystem/src/test/resources/kafka_test_cases.yml | ||
Check warning on line 14 in test/integration-test/openmldb-test-java/kafka_test.sh GitHub Actions / shellcheck
Check warning on line 14 in test/integration-test/openmldb-test-java/kafka_test.sh GitHub Actions / shellcheck
|
||
|
||
mvn test -pl openmldb-ecosystem | ||
|
||
docker exec -it kafka_test /stop.sh |
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