7 Star 24 Fork 2

诺司时空/cnosdb

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.gitlab-ci.yml 1.96 KB
一键复制 编辑 原始数据 按行查看 历史
卢腾达 提交于 2024-09-10 15:10 . ci: change tsbs test data
stages:
- bench
bench-job:
stage: bench
tags:
- shell
script:
# update benchmark-result
- cd /home/gitlab-runner/benchmark-result
- git pull
- cd -
# delete cnosdb data
- set +e
- killall cnosdb
- set -e
- sudo rm -rf /home/gitlab-runner/cnosdb
# complie cnosdb
- echo "compile code"
- source ~/.cargo/env
- make build_release
# modify config and start cnosdb
- sleep 10
- ulimit -n 65535
- ulimit -a
- echo "modify default config"
- sed -i "s/tmp/home\/gitlab-runner/g" config/config_8902.toml
- echo "starting cnosdb"
- nohup ./target/release/cnosdb run --config ./config/config_8902.toml -M singleton > ./target/cnosdb_output.log 2>&1 &
- echo "cnosdb is running"
# hits test and update benchmark-result
- echo "hits test"
- commit_id=${commit_id:-$(git log -1 --pretty=%h)}
- cd benchmark
- export HITS_DATA_URL="/home/cnosdb_dev/hits.parquet"
- export TSBS_DATA_URL="/home/cnosdb_dev/cnosdb_iot_123_500000.gz"
- export TSBS_QUERY_DIR="/home/cnosdb_dev/queries"
- sudo mv ../target/release/cnosdb-cli /bin/
- ./benchmark.sh hits
- ./update-results.sh hits
- cp ./results/hits.html /home/gitlab-runner/benchmark-result/benchmark-hits/hits_${commit_id}.html
# tsbs test and update benchmark-result
- echo "tsbs test"
- ./benchmark.sh tsbs
- ./update-results.sh tsbs
- cp ./results/tsbs.html /home/gitlab-runner/benchmark-result/benchmark-tsbs/tsbs_${commit_id}.html
# push benchmark-result
- cd /home/gitlab-runner/benchmark-result
- git add .
- git commit -m "Add file hits_${commit_id}.html and tsbs_${commit_id}.html"
- git push
# save logs and clean env
- cd -
- cd ..
- set +e
- killall cnosdb
- set -e
- cp /home/gitlab-runner/cnosdb/1001/log/* /home/gitlab-runner/benchmark_results/logs/${commit_id}.log
- sudo rm -rf /home/gitlab-runner/cnosdb
- echo "bench job Done"
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Rust
1
https://gitee.com/cnosdb/cnosdb.git
git@gitee.com:cnosdb/cnosdb.git
cnosdb
cnosdb
cnosdb
main

搜索帮助

0d507c66 1850385 C8b1a773 1850385