Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DAT-14344. added initial setup for percona-mysql-8.4 #947

Merged
merged 3 commits into from
Dec 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ on:
"mysql-8",
"percona-xtradb-cluster-5.7",
"percona-xtradb-cluster-8.0",
"percona-xtradb-cluster-8.4",
"postgres-12",
"postgres-13",
"postgres-14",
Expand Down Expand Up @@ -116,7 +117,7 @@ jobs:
liquibaseBranch: ${{ steps.configure-build.outputs.liquibaseBranch }}
liquibaseRepo: ${{ steps.configure-build.outputs.liquibaseRepo }}
liquibaseSha: ${{ steps.configure-build.outputs.liquibaseSha }}
databases: ${{ github.event.inputs.databases || '["mysql-5.6","mysql-5.7","mysql-8","percona-xtradb-cluster-5.7","percona-xtradb-cluster-8.0",
databases: ${{ github.event.inputs.databases || '["mysql-5.6","mysql-5.7","mysql-8","percona-xtradb-cluster-5.7","percona-xtradb-cluster-8.0","percona-xtradb-cluster-8.4",
"postgres-12","postgres-13","postgres-14","postgres-15","postgres-16","mariadb-10.2","mariadb-10.3","mariadb-10.4","mariadb-10.5","mariadb-10.6",
"mariadb-10.7","mssql-2017","H2Database-2.2","crdb-23.1","crdb-23.2","crdb-24.1",
"edb-postgres-12","edb-postgres-13","edb-postgres-14","edb-postgres-15","edb-postgres-16",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="UTF-8"?>
<databaseChangeLog
xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:pro="http://www.liquibase.org/xml/ns/pro"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-latest.xsd">
<changeSet author="as" id="1">
<sql>SET GLOBAL log_bin_trust_function_creators = 1;</sql>
<rollback/>
</changeSet>
<changeSet author="as" id="2">
<pro:createFunction
encoding="UTF-8"
replaceIfExists="true"
functionName="test_function">CREATE FUNCTION test_function()
RETURNS VARCHAR(20)
BEGIN
RETURN 'Hello';
END
</pro:createFunction>
<rollback>
<pro:dropFunction functionName="test_function"/>
</rollback>
</changeSet>
</databaseChangeLog>
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
<databaseChangeLog
xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:pro="http://www.liquibase.org/xml/ns/pro"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-latest.xsd">
<changeSet author="as" id="1">
<sql>SET GLOBAL log_bin_trust_function_creators = 1;</sql>
<rollback/>
</changeSet>
<changeSet author="as" id="2">
<pro:createFunction
encoding="UTF-8"
replaceIfExists="true"
functionName="test_function">CREATE FUNCTION test_function()
RETURNS VARCHAR(20)
BEGIN
RETURN 'Hello';
END
</pro:createFunction>
<rollback/>
</changeSet>
<changeSet author="as" id="3">
<pro:dropFunction functionName="test_function"/>
<rollback/>
</changeSet>
</databaseChangeLog>
3 changes: 3 additions & 0 deletions src/test/resources/automation-runner.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ case $db in
"percona-xtradb-cluster-8.0" )
test_command mvn -ntp -Dtest=$tc -DdbName=percona-xtradb-cluster -DdbVersion=8.0 test
;;
"percona-xtradb-cluster-8.4" )
test_command mvn -ntp -Dtest=$tc -DdbName=percona-xtradb-cluster -DdbVersion=8.4 test
;;
"postgres-12" )
test_command mvn -ntp -Dtest=$tc -DdbName=postgresql -DdbVersion=12 test
;;
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/docker/create-infra.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ db=$1
case $db in

# percona xtradb cluster needs a bit more time to start
"percona-xtradb-cluster-5.7"|"percona-xtradb-cluster-8.0" )
"percona-xtradb-cluster-5.7"|"percona-xtradb-cluster-8.0"|"percona-xtradb-cluster-8.4" )
docker compose up -d $db
sleep 180
;;
Expand Down
16 changes: 16 additions & 0 deletions src/test/resources/docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,22 @@ services:
volumes:
- "./percona-xtradb-cluster-init.sql:/docker-entrypoint-initdb.d/percona-xtradb-cluster-init.sql"

percona-xtradb-cluster-8.4:
image: percona/percona-xtradb-cluster:8.4
ports:
- "33072:3306"
networks:
- cluster1_net
restart: always
environment:
MYSQL_ROOT_PASSWORD: LbRootPass1
MYSQL_DATABASE: lbcat
MYSQL_USER: lbuser
MYSQL_PASSWORD: LiquibasePass1
CLUSTER_NAME: cluster1
volumes:
- "./percona-xtradb-cluster-init.sql:/docker-entrypoint-initdb.d/percona-xtradb-cluster-init.sql"

postgres-12:
image: postgres:12
ports:
Expand Down
6 changes: 6 additions & 0 deletions src/test/resources/harness-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,12 @@ databasesUnderTest:
username: lbuser
password: LiquibasePass1

- name: percona-xtradb-cluster
version: 8.4
url: jdbc:mysql://localhost:33072/lbcat
username: lbuser
password: LiquibasePass1

- name: mariadb
prefix: docker
version: 10.2
Expand Down
Loading