Skip to content

Commit 00dd5ef

Browse files
authored
Merge branch 'dev' into more_galera
2 parents 99b6f2b + af88ea7 commit 00dd5ef

File tree

97 files changed

+560
-2997
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

97 files changed

+560
-2997
lines changed

.github/workflows/bbm_build_container.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ on:
1414

1515
jobs:
1616
build:
17-
runs-on: ubuntu-latest
17+
runs-on: ubuntu-22.04
1818
name: build
1919
services:
2020
registry:

.github/workflows/bbm_deploy.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
name: bbm-deploy
33

44
on:
5+
workflow_dispatch:
56
push:
67
paths:
78
- ".github/workflows/bbm_deploy.yml"
@@ -10,6 +11,7 @@ on:
1011
- "common_factories.py"
1112
- "constants.py"
1213
- "docker-compose/**"
14+
- "dockerfiles/**"
1315
- "locks.py"
1416
- "master-**"
1517
- "master.cfg"
@@ -25,6 +27,7 @@ on:
2527
- "common_factories.py"
2628
- "constants.py"
2729
- "docker-compose/**"
30+
- "dockerfiles/**"
2831
- "locks.py"
2932
- "master-**"
3033
- "master.cfg"
@@ -35,7 +38,7 @@ on:
3538

3639
jobs:
3740
check:
38-
runs-on: ubuntu-latest
41+
runs-on: ubuntu-22.04
3942
steps:
4043
- uses: actions/checkout@v4
4144
- name: Check master.cfg files
@@ -46,7 +49,7 @@ jobs:
4649
python get_ssh_cnx_num.py
4750
4851
deploy:
49-
runs-on: ubuntu-latest
52+
runs-on: ubuntu-22.04
5053
needs: check
5154
if: >
5255
github.ref == 'refs/heads/dev' &&

.github/workflows/bbw_build_container.yml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ on:
1313

1414
jobs:
1515
build:
16-
runs-on: ubuntu-latest
16+
runs-on: ${{ matrix.runner || 'ubuntu-22.04' }}
1717
services:
1818
registry:
1919
image: registry:2
@@ -95,22 +95,27 @@ jobs:
9595
- dockerfile: fedora.Dockerfile
9696
image: fedora:40
9797
platforms: linux/amd64, linux/arm64/v8
98+
- dockerfile: fedora.Dockerfile
99+
image: fedora:40
100+
tag: fedora40-valgrind
101+
platforms: linux/amd64
102+
install_valigrind: "true"
98103
- dockerfile: centos7.Dockerfile pip.Dockerfile
99104
image: centos:7
100105
platforms: linux/amd64
101106
- dockerfile: centos.Dockerfile pip.Dockerfile
102107
image: quay.io/centos/centos:stream9
103108
tag: centosstream9
109+
runner: ubuntu-24.04
104110
platforms: linux/amd64, linux/arm64/v8, linux/ppc64le
105-
# //TEMP Error: Unable to find a match: ccache python3-scons (on
106-
# s390x)
107-
# platforms: linux/amd64, linux/arm64/v8, linux/ppc64le, linux/s390x
111+
# //TEMP chicken/egg problem - could add s390x
112+
# but that would need a galera-4 build from on this image
108113
- dockerfile: opensuse.Dockerfile pip.Dockerfile
109-
image: opensuse/leap:15.5
114+
image: opensuse/leap:15.6
110115
tag: opensuse15
111116
platforms: linux/amd64
112117
- dockerfile: sles.Dockerfile pip.Dockerfile
113-
image: registry.suse.com/bci/bci-base:15.5
118+
image: registry.suse.com/bci/bci-base:15.6
114119
tag: sles15
115120
platforms: linux/amd64, linux/s390x
116121
- dockerfile: centos.Dockerfile
@@ -119,11 +124,11 @@ jobs:
119124
- dockerfile: centos.Dockerfile pip.Dockerfile
120125
image: rockylinux:9
121126
platforms: linux/amd64, linux/arm64/v8
122-
- dockerfile: debian.Dockerfile jepsen-mysql.Dockerfile
127+
- dockerfile: debian.Dockerfile jepsen-mariadb.Dockerfile
123128
image: ubuntu:22.04
124129
branch: 10.11
125130
platforms: linux/amd64
126-
tag: ubuntu22.04-jepsen-mysql
131+
tag: ubuntu22.04-jepsen-mariadb
127132
env:
128133
BUILD_RHEL: false
129134
DEPLOY_IMAGES: false
@@ -151,7 +156,7 @@ jobs:
151156
cat ${{ matrix.dockerfile }} qpress.Dockerfile buildbot-worker.Dockerfile >$GITHUB_WORKSPACE/Dockerfile
152157
cp -r qpress $GITHUB_WORKSPACE
153158
- name: opensuse extra
154-
if: matrix.tag == 'opensuse15'
159+
if: contains(matrix.tag, 'opensuse') || contains(matrix.tag, 'sles')
155160
run: |
156161
cp ${{ env.WORKDIR }}/mariadb_zypper_expect $GITHUB_WORKSPACE
157162
- name: No wsrep on 32 bit platforms
@@ -166,12 +171,6 @@ jobs:
166171
run: |
167172
sudo apt-get update
168173
sudo apt-get install -y qemu-user-static
169-
- name: Make sure that time is in sync
170-
run: |
171-
# RHEL subscription needs that time and date
172-
# is correct and is syncing with an NTP-server
173-
# https://access.redhat.com/discussions/672313#comment-2360508
174-
sudo chronyc -a makestep
175174
- name: Build image
176175
run: |
177176
podman manifest create ${{ env.REPO }}:${{ env.IMG }}
@@ -185,7 +184,8 @@ jobs:
185184
-f $GITHUB_WORKSPACE/Dockerfile \
186185
--build-arg BASE_IMAGE=${{ matrix.image }} \
187186
--build-arg CLANG_VERSION=${{ matrix.clang_version }} \
188-
--build-arg MARIADB_BRANCH=${{ matrix.branch }}
187+
--build-arg MARIADB_BRANCH=${{ matrix.branch }} \
188+
--build-arg INSTALL_VALGRIND="${{ matrix.install_valigrind }}"
189189
done
190190
podman images
191191
- name: Push images to local registry

.github/workflows/bbw_build_container_release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ on:
1313

1414
jobs:
1515
build:
16-
runs-on: ubuntu-latest
16+
runs-on: ubuntu-22.04
1717
services:
1818
registry:
1919
image: registry:2

.github/workflows/bbw_build_container_rhel.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ on:
1313

1414
jobs:
1515
build:
16-
runs-on: ubuntu-latest
16+
runs-on: ubuntu-22.04
1717
services:
1818
registry:
1919
image: registry:2

.github/workflows/eco_containers.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ on:
1515

1616
jobs:
1717
build:
18-
runs-on: ubuntu-latest
18+
runs-on: ubuntu-22.04
1919
name: ${{ matrix.tag }}
2020
strategy:
2121
fail-fast: false

.github/workflows/pre-commit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77

88
jobs:
99
pre-commit:
10-
runs-on: ubuntu-latest
10+
runs-on: ubuntu-24.04
1111
steps:
1212
- uses: actions/checkout@v4
1313
#//TEMP we need to check only modified files WRT main

Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ venv: ## Create python3 venv if it does not exists
2727

2828
install-pip-packages: ## Install python3 requirements
2929
$(info --> Install requirements via `pip`)
30-
uv pip install wheel
3130
uv pip install -r requirements.txt
3231

3332
install-vlad-bb-fork: ## Install vlad bb fork

ci_build_images/centos.Dockerfile

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ LABEL maintainer="MariaDB Buildbot maintainers"
1111
# hadolint ignore=SC2086
1212
RUN dnf -y install 'dnf-command(config-manager)' \
1313
&& source /etc/os-release \
14+
&& ARCH=$(rpm --query --queryformat='%{ARCH}' rpm) \
1415
&& case "$PLATFORM_ID" in \
1516
"platform:el9") \
1617
# centosstream9/almalinux9/rockylinux9 \
@@ -25,6 +26,23 @@ RUN dnf -y install 'dnf-command(config-manager)' \
2526
extra="buildbot-worker"; \
2627
;; \
2728
esac \
29+
&& case "$ID" in \
30+
"centos") \
31+
ID=centos-stream; \
32+
;; \
33+
"rocky") \
34+
ID=rockylinux; \
35+
;& \
36+
"almalinux") \
37+
if [ "$ARCH" == "aarch64" ]; then ID=rhel; fi ; \
38+
;& \
39+
*) \
40+
# VERSION_ID has leading -, except on centos-stream
41+
VERSION_ID=-${VERSION_ID}; \
42+
esac \
43+
&& VERSION_ID=${VERSION_ID%%.*} \
44+
&& if [ $ARCH = x86_64 ]; then ARCH=amd64 ; fi \
45+
&& dnf config-manager --add-repo https://ci.mariadb.org/galera/mariadb-4.x-latest-gal-${ARCH}-${ID}${VERSION_ID}.repo \
2846
&& dnf -y upgrade \
2947
&& dnf -y groupinstall "Development Tools" \
3048
&& dnf -y builddep mariadb-server \
@@ -40,7 +58,7 @@ RUN dnf -y install 'dnf-command(config-manager)' \
4058
createrepo \
4159
curl-devel \
4260
flex \
43-
galera \
61+
galera-4 \
4462
java-1.8.0-openjdk-devel \
4563
java-1.8.0-openjdk \
4664
jemalloc-devel \
@@ -52,7 +70,6 @@ RUN dnf -y install 'dnf-command(config-manager)' \
5270
perl-autodie \
5371
perl-Net-SSLeay \
5472
python3-devel \
55-
python3-scons \
5673
readline-devel \
5774
rpmlint \
5875
ruby \
@@ -70,4 +87,4 @@ RUN dnf -y install 'dnf-command(config-manager)' \
7087
&& curl -sL "https://github.com/Yelp/dumb-init/releases/download/v1.2.5/dumb-init_1.2.5_$(uname -m)" >/usr/local/bin/dumb-init \
7188
&& chmod +x /usr/local/bin/dumb-init
7289

73-
ENV WSREP_PROVIDER=/usr/lib64/galera/libgalera_smm.so
90+
ENV WSREP_PROVIDER=/usr/lib64/galera-4/libgalera_smm.so

ci_build_images/centos7.Dockerfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ RUN yum -y --enablerepo=extras install epel-release \
4343
python3-pip \
4444
rpmlint \
4545
ruby \
46-
scons \
4746
snappy-devel \
4847
systemd-devel \
4948
unixODBC \

0 commit comments

Comments
 (0)