-
Notifications
You must be signed in to change notification settings - Fork 12
73 lines (60 loc) · 1.87 KB
/
wescale_wesql_performance_docker.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
name: "Ubuntu Docker Cluster"
on:
pull_request:
types: [opened, synchronize, reopened]
jobs:
setup:
name: "Ubuntu Docker Cluster"
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.20.1
- name: Compile source
timeout-minutes: 30
run: |
# install etcd
BUILD_CHROME=0 BUILD_JAVA=0 BUILD_CONSUL=0 BUILD_K3S=0 BUILD_ETCD=1 ./bootstrap.sh
make failpoint-enable
make build
make failpoint-disable
- name: Start MySQL-Server & WeScale
run: |
export PATH=$PATH:$(pwd)/bin
cd ./examples/wesql-server
./start_mysql_server.sh
./init_single_node_cluster.sh 2>&1 | tee init_script_logs.txt &
- name: Checkout mysql-tester code
uses: actions/checkout@v3
with:
repository: apecloud/mysql-tester
path: './mysql-tester'
- name: Build mysql-tester
run: |
cd ./mysql-tester && \
mkdir bin && \
make build
- name: Run MTR Tests
run: |
cd ./mysql-tester && \
eatmydata -- ./bin/mysql-tester -user root -port 15306 -path testcase/wesql-scale 2>&1 | tee -a output.txt
- name: Print WeScale Logs
run: |
docker logs mysql-server
cat ./examples/wesql-server/init_script_logs.txt
- name: Print test output
run: |
# print test output
cat ./mysql-tester/output.txt
- name: Check test results
run: |
# check if any test failed
if grep -q -- 'level=error' ./mysql-tester/output.txt; then
echo "Testcase is failed"
exit 1
else
echo "Testcase is successful"
fi