Skip to content

Commit 266d648

Browse files
PS-10014 feature: Add Valgrind testing to the CI
https://perconadev.atlassian.net/browse/PS-10014 Added new "GCC 14 Valgrind" matrix job to GitHub Actions that builds project using "debug_gcc14" CMake preset and run MTR with '--valgrind' option.
1 parent 4d73e97 commit 266d648

1 file changed

Lines changed: 20 additions & 2 deletions

File tree

.github/workflows/cmake.yml

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,14 @@ jobs:
6767
name: "GCC 14 Debug",
6868
label: "debug_gcc14",
6969
run_mtr: true,
70+
mtr_options: "--repeat=2",
7071
run_ctest: true
7172
}
7273
- {
7374
name: "GCC 14 RelWithDebInfo",
7475
label: "release_gcc14",
7576
run_mtr: true,
77+
mtr_options: "--repeat=2",
7678
run_ctest: true
7779
}
7880
- {
@@ -82,6 +84,13 @@ jobs:
8284
mtr_options: "--sanitize",
8385
run_ctest: true
8486
}
87+
- {
88+
name: "GCC 14 Valgrind",
89+
label: "debug_gcc14",
90+
run_mtr: true,
91+
mtr_options: "--valgrind",
92+
run_ctest: true
93+
}
8594
- {
8695
name: "Clang 20 Debug",
8796
label: "debug_clang20",
@@ -136,6 +145,15 @@ jobs:
136145
run: |
137146
sudo apt-get install g++-14
138147
148+
- name: Install Valgrind on ubuntu
149+
if: contains(matrix.config.mtr_options, '--valgrind')
150+
# installing Valgrind 3.25 here from Ubuntu 25.10 that has support for syscall 333
151+
run: |
152+
sudo apt-get install libc6-dbg
153+
wget -q http://mirrors.kernel.org/ubuntu/pool/main/v/valgrind/valgrind_3.25.1-0ubuntu1_amd64.deb
154+
sudo dpkg -i valgrind_3.25.1-0ubuntu1_amd64.deb
155+
rm -f valgrind_3.25.1-0ubuntu1_amd64.deb
156+
139157
- name: Fixing libaio1 for MySQL Server tarball
140158
if: matrix.config.run_mtr
141159
run: |
@@ -300,7 +318,7 @@ jobs:
300318
run: |
301319
BINSRV=${{github.workspace}}/src-build-${{matrix.config.label}}/binlog_server ./mtr \
302320
--vardir=${{runner.temp}}/mtrvardir80 \
303-
--force --max-test-fail=0 --retry=0 --nounit-tests --big-test --repeat=2 --parallel=${{steps.cpu-cores.outputs.count}} \
321+
--force --max-test-fail=0 --retry=0 --nounit-tests --big-test --parallel=${{steps.cpu-cores.outputs.count}} \
304322
--suite=binlog_streaming ${{matrix.config.mtr_options}}
305323
306324
- name: MTR 8.4 tests
@@ -309,7 +327,7 @@ jobs:
309327
run: |
310328
BINSRV=${{github.workspace}}/src-build-${{matrix.config.label}}/binlog_server ./mtr \
311329
--vardir=${{runner.temp}}/mtrvardir84 \
312-
--force --max-test-fail=0 --retry=0 --nounit-tests --big-test --repeat=2 --parallel=${{steps.cpu-cores.outputs.count}} \
330+
--force --max-test-fail=0 --retry=0 --nounit-tests --big-test --parallel=${{steps.cpu-cores.outputs.count}} \
313331
--suite=binlog_streaming ${{matrix.config.mtr_options}}
314332
315333
- name: CTest

0 commit comments

Comments
 (0)