Skip to content

Commit fd901ae

Browse files
PS-10065 feature: Integrate 8.4 testing into the CI (WIP)
https://perconadev.atlassian.net/browse/PS-10065
1 parent d4ce512 commit fd901ae

1 file changed

Lines changed: 58 additions & 20 deletions

File tree

.github/workflows/cmake.yml

Lines changed: 58 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ env:
1313
BOOST_MAJOR: 1
1414
BOOST_MINOR: 88
1515
BOOST_PATCH: 0
16+
MYSQL_DOWNLOADS_URL: https://dev.mysql.com/get/Downloads
17+
MYSQL_80_VERSION: 8.0.44
18+
MYSQL_84_VERSION: 8.4.7
19+
MYSQL_GLIBC_SUFFIX: linux-glibc2.28-x86_64
1620

1721
jobs:
1822
formatting-check:
@@ -76,12 +80,12 @@ jobs:
7680
- {
7781
name: "Clang 19 Debug",
7882
label: "debug_clang19",
79-
run_clang_tidy: true
83+
#run_clang_tidy: true
8084
}
8185
- {
8286
name: "Clang 19 RelWithDebInfo",
8387
label: "release_clang19",
84-
run_clang_tidy: true
88+
#run_clang_tidy: true
8589
}
8690
- {
8791
name: "Clang 19 ASan",
@@ -115,14 +119,8 @@ jobs:
115119
116120
- name: Install MySQL client libraries and CURL Development libraries
117121
run: |
118-
sudo apt-get update
119122
sudo apt-get install libmysqlclient-dev libcurl4-openssl-dev
120123
121-
- name: Install MySQL server and MTR
122-
if: matrix.config.run_mtr
123-
run: |
124-
sudo apt-get install mysql-client mysql-server mysql-testsuite apparmor-utils
125-
126124
- name: Install Clang dependencies on ubuntu
127125
if: startsWith(matrix.config.name, 'Clang')
128126
run: |
@@ -245,21 +243,61 @@ jobs:
245243
working-directory: ${{github.workspace}}/src-build-${{matrix.config.label}}
246244
run: ./binlog_server version
247245

248-
- name: MTR tests
246+
- name: Creating DIST directory for MySQL Server tarballs
247+
if: matrix.config.run_mtr
248+
run: mkdir -p ${{github.workspace}}/dist
249+
250+
- name: Unpacking MySQL Server 8.0 tarballs
251+
if: matrix.config.run_mtr
252+
working-directory: ${{github.workspace}}/dist
253+
run: |
254+
# https://dev.mysql.com/get/Downloads/MySQL-8.0/mysql-8.0.44-linux-glibc2.28-x86_64.tar.xz
255+
DIST_BASE_NAME=${{format('mysql-{0}-{1}', env.MYSQL_80_VERSION, env.MYSQL_GLIBC_SUFFIX)}}
256+
DIST_TARBALL_FILE_NAME=${DIST_BASE_NAME}.tar.xz
257+
wget -q ${{env.MYSQL_DOWNLOADS_URL}}/MySQL-8.0/${DIST_TARBALL_FILE_NAME}
258+
tar xf ${DIST_TARBALL_FILE_NAME}
259+
rm -f ${DIST_TARBALL_FILE_NAME}
260+
# https://dev.mysql.com/get/Downloads/MySQL-8.0/mysql-test-8.0.44-linux-glibc2.28-x86_64.tar.xz
261+
TEST_TARBALL_FILE_NAME=${{format('mysql-test-{0}-{1}.tar.xz', env.MYSQL_80_VERSION, env.MYSQL_GLIBC_SUFFIX)}}
262+
wget -q ${{env.MYSQL_DOWNLOADS_URL}}/MySQL-8.0/${TEST_TARBALL_FILE_NAME}
263+
tar xf ${TEST_TARBALL_FILE_NAME}
264+
rm -f ${TEST_TARBALL_FILE_NAME}
265+
# Linking the "binlog_streaming" from the source tree into the MTR suits directory
266+
sudo ln -s ${{github.workspace}}/src/mtr/binlog_streaming ${{github.workspace}}/dist/${DIST_BASE_NAME}/mysql-test/suite/binlog_streaming
267+
268+
- name: Unpacking MySQL Server 8.4 tarballs
269+
if: matrix.config.run_mtr
270+
working-directory: ${{github.workspace}}/dist
271+
run: |
272+
# https://dev.mysql.com/get/Downloads/MySQL-8.4/mysql-8.4.7-linux-glibc2.28-x86_64-minimal.tar.xz
273+
DIST_BASE_NAME=${{format('mysql-{0}-{1}-minimal', env.MYSQL_84_VERSION, env.MYSQL_GLIBC_SUFFIX)}}
274+
DIST_TARBALL_FILE_NAME=${DIST_BASE_NAME}.tar.xz
275+
wget -q ${{env.MYSQL_DOWNLOADS_URL}}/MySQL-8.4/${DIST_TARBALL_FILE_NAME}
276+
tar xf ${DIST_TARBALL_FILE_NAME}
277+
rm -f ${DIST_TARBALL_FILE_NAME}
278+
# https://dev.mysql.com/get/Downloads/MySQL-8.4/mysql-test-8.4.7-linux-glibc2.28-x86_64-minimal.tar.xz
279+
TEST_TARBALL_FILE_NAME=${{format('mysql-test-{0}-{1}-minimal.tar.xz', env.MYSQL_84_VERSION, env.MYSQL_GLIBC_SUFFIX)}}
280+
wget -q ${{env.MYSQL_DOWNLOADS_URL}}/MySQL-8.4/${TEST_TARBALL_FILE_NAME}
281+
tar xf ${TEST_TARBALL_FILE_NAME}
282+
rm -f ${TEST_TARBALL_FILE_NAME}
283+
# Linking the "binlog_streaming" from the source tree into the MTR suits directory
284+
sudo ln -s ${{github.workspace}}/src/mtr/binlog_streaming ${{github.workspace}}/dist/${DIST_BASE_NAME}/mysql-test/suite/binlog_streaming
285+
286+
- name: MTR 8.0 tests
287+
if: matrix.config.run_mtr
288+
working-directory: ${{github.workspace}}/${{format('mysql-{0}-{1}', env.MYSQL_80_VERSION, env.MYSQL_GLIBC_SUFFIX)}}/mysql-test
289+
run: |
290+
BINSRV=${{github.workspace}}/src-build-${{matrix.config.label}}/binlog_server ./mtr \
291+
--vardir=${{runner.temp}}/mtrvardir80 \
292+
--force --max-test-fail=0 --retry=0 --nounit-tests --big-test --repeat=2 --parallel=${{steps.cpu-cores.outputs.count}} \
293+
--suite=binlog_streaming ${{matrix.config.mtr_options}}
294+
295+
- name: MTR 8.4 tests
249296
if: matrix.config.run_mtr
250-
working-directory: /usr/lib/mysql-test
297+
working-directory: ${{github.workspace}}/${{format('mysql-{0}-{1}', env.MYSQL_84_VERSION, env.MYSQL_GLIBC_SUFFIX)}}/mysql-test
251298
run: |
252-
# TODO: consider adding ${{runner.temp}}/mtrvardir into the list of
253-
# writable directories in '/etc/apparmor.d/usr.sbin.mysqld' AppArmor
254-
# profile instead of disabling it completely.
255-
# Disabling MySQL Server Apparmor profile as we are creating a custom data directory
256-
sudo ln -s /etc/apparmor.d/usr.sbin.mysqld /etc/apparmor.d/disable
257-
sudo apparmor_parser -R /etc/apparmor.d/usr.sbin.mysqld
258-
# Linking the "binlog_streaming" from the source tree into the MTR suits directory on the system
259-
sudo ln -s ${{github.workspace}}/src/mtr/binlog_streaming /usr/lib/mysql-test/suite/binlog_streaming
260-
# Running MTR from the system package
261299
BINSRV=${{github.workspace}}/src-build-${{matrix.config.label}}/binlog_server ./mtr \
262-
--client-bindir=/usr/lib/mysql-test/bin --vardir=${{runner.temp}}/mtrvardir \
300+
--vardir=${{runner.temp}}/mtrvardir84 \
263301
--force --max-test-fail=0 --retry=0 --nounit-tests --big-test --repeat=2 --parallel=${{steps.cpu-cores.outputs.count}} \
264302
--suite=binlog_streaming ${{matrix.config.mtr_options}}
265303

0 commit comments

Comments
 (0)