@@ -66,38 +66,39 @@ jobs:
6666 - {
6767 name : " GCC 14 Debug" ,
6868 label : " debug_gcc14" ,
69- run_mtr : true,
69+ # run_mtr: true,
70+ run_valgrind_mtr : true,
7071 run_ctest : true
7172 }
7273 - {
7374 name : " GCC 14 RelWithDebInfo" ,
7475 label : " release_gcc14" ,
75- run_mtr : true,
76+ # run_mtr: true,
7677 run_ctest : true
7778 }
7879 - {
7980 name : " GCC 14 ASan" ,
8081 label : " asan_gcc14" ,
81- run_mtr : true,
82+ # run_mtr: true,
8283 mtr_options : " --sanitize" ,
8384 run_ctest : true
8485 }
8586 - {
8687 name : " Clang 20 Debug" ,
8788 label : " debug_clang20" ,
88- run_clang_tidy : true,
89+ # run_clang_tidy: true,
8990 run_ctest : true
9091 }
9192 - {
9293 name : " Clang 20 RelWithDebInfo" ,
9394 label : " release_clang20" ,
94- run_clang_tidy : true,
95+ # run_clang_tidy: true,
9596 run_ctest : true
9697 }
9798 - {
9899 name : " Clang 20 ASan" ,
99100 label : " asan_clang20" ,
100- run_mtr : true,
101+ # run_mtr: true,
101102 mtr_options : " --sanitize" ,
102103 run_ctest : true
103104 }
@@ -136,8 +137,16 @@ jobs:
136137 run : |
137138 sudo apt-get install g++-14
138139
140+ - name : Install Valgrind on ubuntu
141+ if : matrix.config.run_valgrind_mtr
142+ run : |
143+ sudo apt install libc6-dbg
144+ wget -q http://mirrors.kernel.org/ubuntu/pool/main/v/valgrind/valgrind_3.24.0-0ubuntu2_amd64.deb
145+ sudo dpkg -i valgrind_3.24.0-0ubuntu2_amd64.deb
146+ rm -f valgrind_3.24.0-0ubuntu2_amd64.deb
147+
139148 - name : Fixing libaio1 for MySQL Server tarball
140- if : matrix.config.run_mtr
149+ if : matrix.config.run_mtr || matrix.config.run_valgrind_mtr
141150 run : |
142151 sudo apt-get install libaio-dev
143152 sudo ln -s libaio.so /lib/x86_64-linux-gnu/libaio.so.1
@@ -253,11 +262,11 @@ jobs:
253262 run : ./binlog_server version
254263
255264 - name : Creating DIST directory for MySQL Server tarballs
256- if : matrix.config.run_mtr
265+ if : matrix.config.run_mtr || matrix.config.run_valgrind_mtr
257266 run : mkdir -p ${{github.workspace}}/dist
258267
259268 - name : Unpacking MySQL Server 8.0 tarballs
260- if : matrix.config.run_mtr
269+ if : matrix.config.run_mtr || matrix.config.run_valgrind_mtr
261270 working-directory : ${{github.workspace}}/dist
262271 run : |
263272 # https://dev.mysql.com/get/Downloads/MySQL-8.0/mysql-8.0.45-linux-glibc2.28-x86_64.tar.xz
@@ -276,7 +285,7 @@ jobs:
276285 ./${DIST_BASE_NAME}/bin/mysqld --version
277286
278287 - name : Unpacking MySQL Server 8.4 tarballs
279- if : matrix.config.run_mtr
288+ if : matrix.config.run_mtr || matrix.config.run_valgrind_mtr
280289 working-directory : ${{github.workspace}}/dist
281290 run : |
282291 # https://dev.mysql.com/get/Downloads/MySQL-8.4/mysql-8.4.8-linux-glibc2.28-x86_64-minimal.tar.xz
@@ -303,6 +312,15 @@ jobs:
303312 --force --max-test-fail=0 --retry=0 --nounit-tests --big-test --repeat=2 --parallel=${{steps.cpu-cores.outputs.count}} \
304313 --suite=binlog_streaming ${{matrix.config.mtr_options}}
305314
315+ - name : MTR 8.0 tests (Valgrind)
316+ if : matrix.config.run_valgrind_mtr
317+ working-directory : ${{github.workspace}}/dist/${{format('mysql-{0}-{1}', env.MYSQL_80_VERSION, env.MYSQL_GLIBC_SUFFIX)}}/mysql-test
318+ run : |
319+ BINSRV=${{github.workspace}}/src-build-${{matrix.config.label}}/binlog_server ./mtr \
320+ --vardir=${{runner.temp}}/mtrvardir80 \
321+ --force --max-test-fail=0 --retry=0 --nounit-tests --big-test --parallel=${{steps.cpu-cores.outputs.count}} \
322+ --suite=binlog_streaming --valgrind
323+
306324 - name : MTR 8.4 tests
307325 if : matrix.config.run_mtr
308326 working-directory : ${{github.workspace}}/dist/${{format('mysql-{0}-{1}-minimal', env.MYSQL_84_VERSION, env.MYSQL_GLIBC_SUFFIX)}}/mysql-test
@@ -312,6 +330,15 @@ jobs:
312330 --force --max-test-fail=0 --retry=0 --nounit-tests --big-test --repeat=2 --parallel=${{steps.cpu-cores.outputs.count}} \
313331 --suite=binlog_streaming ${{matrix.config.mtr_options}}
314332
333+ - name : MTR 8.4 tests (Valgrind)
334+ if : matrix.config.run_valgrind_mtr
335+ working-directory : ${{github.workspace}}/dist/${{format('mysql-{0}-{1}-minimal', env.MYSQL_84_VERSION, env.MYSQL_GLIBC_SUFFIX)}}/mysql-test
336+ run : |
337+ BINSRV=${{github.workspace}}/src-build-${{matrix.config.label}}/binlog_server ./mtr \
338+ --vardir=${{runner.temp}}/mtrvardir84 \
339+ --force --max-test-fail=0 --retry=0 --nounit-tests --big-test --parallel=${{steps.cpu-cores.outputs.count}} \
340+ --suite=binlog_streaming --valgrind
341+
315342 - name : CTest
316343 if : matrix.config.run_ctest
317344 working-directory : ${{github.workspace}}/src-build-${{matrix.config.label}}
0 commit comments