forked from redis/redis
-
Notifications
You must be signed in to change notification settings - Fork 36
/
.gitlab-ci.yml
90 lines (85 loc) · 2.56 KB
/
.gitlab-ci.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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
variables:
host: 127.0.0.1
port: 56379
base_dir: /var/lib/k8s/test/ror_ci_perf
base_conf: ${CI_PROJECT_DIR}/utils/perf/base.conf
bench2: /var/lib/k8s/test/ror_ci_perf/bin/bench2
redis_server: ${CI_PROJECT_DIR}/src/redis-server
diskname: dm-2
workflow:
rules:
- if: $CI_PIPELINE_SOURCE == 'merge_request_event'
build-job:
stage: build
script:
- sed -i 's@https://github.com/facebook/rocksdb@../../sr_zhao/rocksdb.git@' .gitmodules
- sed -i 's@https://github.com/ctripcorp/xredis-gtid.git@../../framework/xredis-gtid.git@' .gitmodules
- git submodule update --init
- make clean & make distclean
- make -j64
cache:
key: rocksdb
paths:
- deps/rocksdb
perf-trocks1:
stage: test
variables:
runner: ${CI_RUNNER_DESCRIPTION}
script:
- sed -i 's@https://github.com/facebook/rocksdb@../../sr_zhao/rocksdb.git@' .gitmodules
- sed -i 's@https://github.com/ctripcorp/xredis-gtid.git@../../framework/xredis-gtid.git@' .gitmodules
- git submodule update --init
- make clean & make distclean
- make -j64
- sudo -E
suite=10G_string
setup=cold
cases=set-100thd,get-100thd,get-1wqps
${CI_PROJECT_DIR}/utils/perf/perf-ror.sh
- sudo -E
suite=10G_string
setup=warm
cases=set-100thd,get-100thd,get-1wqps
${CI_PROJECT_DIR}/utils/perf/perf-ror.sh
- sudo -E
suite=10G_string
setup=hot
cases=set-100thd,get-100thd,get-1wqps
${CI_PROJECT_DIR}/utils/perf/perf-ror.sh
artifacts:
paths:
- ${base_dir}/${runner}/artifacts/*
expire_in: 1 year
tags:
- trocks1
perf-trocks2:
stage: test
variables:
runner: ${CI_RUNNER_DESCRIPTION}
script:
- sed -i 's@https://github.com/facebook/rocksdb@../../sr_zhao/rocksdb.git@' .gitmodules
- sed -i 's@https://github.com/ctripcorp/xredis-gtid.git@../../framework/xredis-gtid.git@' .gitmodules
- git submodule update --init
- make clean & make distclean
- make -j64
- sudo -E
suite=10G_hash
setup=cold
cases=hgetall-100thd,hgetall-1wqps,hget-100thd,hget-1wqps
${CI_PROJECT_DIR}/utils/perf/perf-ror.sh
- sudo -E
suite=10G_hash
setup=warm
cases=hgetall-100thd,hgetall-1wqps,hget-100thd,hget-1wqps
${CI_PROJECT_DIR}/utils/perf/perf-ror.sh
- sudo -E
suite=10G_hash
setup=hot
cases=hgetall-100thd,hgetall-1wqps,hget-100thd,hget-1wqps
${CI_PROJECT_DIR}/utils/perf/perf-ror.sh
artifacts:
paths:
- ${base_dir}/${runner}/artifacts/*
expire_in: 1 year
tags:
- trocks2