fix:修复了mvcc模式下无法正确删除由当前事务插入的记录 (#315) #30
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
name: test | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
env: | |
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.) | |
BUILD_TYPE: Release | |
jobs: | |
basic-test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository and submodules | |
uses: actions/checkout@v2 | |
- name: run basic test | |
shell: bash | |
run: | | |
sudo bash build.sh init | |
echo "begin test..." | |
python3 test/case/miniob_test.py --test-cases=basic | tail -1 | grep "basic is success" | |
# sysbench cannot work property on this platform. | |
# I found that sysbench would send more request before receiving last response | |
# sysbench-test: | |
# runs-on: ubuntu-latest | |
# steps: | |
# - name: Checkout repository and submodules | |
# uses: actions/checkout@v2 | |
# - name: install sysbench and mariadb-client | |
# shell: bash | |
# run: | | |
# curl -s https://packagecloud.io/install/repositories/akopytov/sysbench/script.deb.sh -o script.deb.sh | |
# sudo bash script.deb.sh | |
# sudo apt -y install sysbench mariadb-client | |
# - name: start server | |
# shell: bash | |
# run: | | |
# sudo bash build.sh init | |
# bash build.sh -DCONCURRENCY=ON -DWITH_UNIT_TESTS=OFF | |
# nohup ./build_debug/bin/observer -s /tmp/miniob.sock -f etc/observer.ini -P mysql -t mvcc & | |
# sleep 10 && echo "wake up" | |
# mysql --version | |
# mysql -S /tmp/miniob.sock -e "show tables" | |
# - name: sysbench test | |
# shell: bash | |
# run: | | |
# cd test/sysbench | |
# sysbench --mysql-socket=/tmp/miniob.sock --threads=10 miniob_insert prepare | |
# sysbench --mysql-socket=/tmp/miniob.sock --threads=10 miniob_insert run |