Skip to content

Commit

Permalink
[ci] Rename maven global env variable because of 3.9+ changes
Browse files Browse the repository at this point in the history
  • Loading branch information
obabec authored and Naros committed Jul 17, 2024
1 parent b52f1dc commit 1ffaf6b
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 23 deletions.
22 changes: 11 additions & 11 deletions .packit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
# Suffix for job name
identifier: "postgres-12-decoderbufs"
targets:
- centos-stream-8-x86_64
- centos-stream-9
skip_build: true
manual_trigger: true
labels:
Expand All @@ -29,7 +29,7 @@ jobs:
# Suffix for job name
identifier: "postgres-12-pgoutput"
targets:
- centos-stream-8-x86_64
- centos-stream-9
skip_build: true
manual_trigger: true
labels:
Expand All @@ -49,7 +49,7 @@ jobs:
# Suffix for job name
identifier: "postgres-15-decoderbufs"
targets:
- centos-stream-8-x86_64
- centos-stream-9
skip_build: true
manual_trigger: true
labels:
Expand All @@ -70,7 +70,7 @@ jobs:
# Suffix for job name
identifier: "postgres-15-pgoutput"
targets:
- centos-stream-8-x86_64
- centos-stream-9
skip_build: true
manual_trigger: true
labels:
Expand All @@ -90,7 +90,7 @@ jobs:
# Suffix for job name
identifier: "mysql-8-none"
targets:
- centos-stream-8-x86_64
- centos-stream-9
skip_build: true
manual_trigger: true
labels:
Expand All @@ -110,7 +110,7 @@ jobs:
# Suffix for job name
identifier: "mysql-8-assembly"
targets:
- centos-stream-8-x86_64
- centos-stream-9
skip_build: true
manual_trigger: true
labels:
Expand All @@ -130,7 +130,7 @@ jobs:
# Suffix for job name
identifier: "sqlserver-2017"
targets:
- centos-stream-8-x86_64
- centos-stream-9
skip_build: true
manual_trigger: true
labels:
Expand All @@ -149,7 +149,7 @@ jobs:
# Suffix for job name
identifier: "sqlserver-2022"
targets:
- centos-stream-8-x86_64
- centos-stream-9
skip_build: true
manual_trigger: true
labels:
Expand All @@ -168,7 +168,7 @@ jobs:
# Suffix for job name
identifier: "mongodb-4"
targets:
- centos-stream-8-x86_64
- centos-stream-9
skip_build: true
manual_trigger: true
labels:
Expand All @@ -188,7 +188,7 @@ jobs:
# Suffix for job name
identifier: "mongodb-5"
targets:
- centos-stream-8-x86_64
- centos-stream-9
skip_build: true
manual_trigger: true
labels:
Expand All @@ -208,7 +208,7 @@ jobs:
# Suffix for job name
identifier: "mongodb-6"
targets:
- centos-stream-8-x86_64
- centos-stream-9
skip_build: true
manual_trigger: true
labels:
Expand Down
21 changes: 14 additions & 7 deletions debezium-testing/tmt/plans/main.fmf
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ prepare:
how: install
package:
- wget
- java-17-openjdk-devel
- xz
- make
- git
Expand All @@ -40,14 +39,22 @@ prepare:
sudo yum install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin
sudo systemctl enable docker --now

- name: Install mvn
- name: Install sdkman and Java
how: shell
script: |
mkdir -p /usr/share/maven /usr/share/maven/ref
curl -fsSL -o /tmp/apache-maven.tar.gz https://apache.osuosl.org/maven/maven-3/3.8.8/binaries/apache-maven-3.8.8-bin.tar.gz
tar -xzf /tmp/apache-maven.tar.gz -C /usr/share/maven --strip-components=1
rm -f /tmp/apache-maven.tar.gz
ln -s /usr/share/maven/bin/mvn /usr/bin/mvn
curl -s "https://get.sdkman.io" | bash
source ${HOME}/.sdkman/bin/sdkman-init.sh && yes | sdk install java 21.0.3-tem || true


- name: Set Java 21 as default
how: shell
script: |
source ${HOME}/.sdkman/bin/sdkman-init.sh && yes | sdk default java 21.0.3-tem || true

- name: Install Maven
how: shell
script: |
source ${HOME}/.sdkman/bin/sdkman-init.sh && yes | sdk install maven 3.9.8 || true

- name: Disable Chronyd service
how: shell
Expand Down
2 changes: 1 addition & 1 deletion debezium-testing/tmt/tests/debezium/main.fmf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ test:
./test.sh
duration: 2h
environment:
MAVEN_ARGS: "-U -am -fae -Papicurio -Dinsecure.repositories=WARN -pl debezium-bom --no-transfer-progress"
CUSTOM_MAVEN_ARGS: "-U -am -fae -Papicurio -Dinsecure.repositories=WARN --no-transfer-progress -pl debezium-bom"

/mysql:
summary: Run mysql connector functional tests
Expand Down
8 changes: 4 additions & 4 deletions debezium-testing/tmt/tests/debezium/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ echo $PWD

if [ "$TEST_PROFILE" = "mysql" ]
then
mvn clean verify ${MAVEN_ARGS},debezium-connector-mysql \
mvn clean verify ${CUSTOM_MAVEN_ARGS},debezium-connector-mysql \
-Dversion.mysql.server=${MYSQL_VERSION} \
${EXECUTION_ARG:-} \
-Dmysql.port=4301 \
Expand All @@ -16,7 +16,7 @@ then
-P${PROFILE}
elif [ "$TEST_PROFILE" = "postgres" ]
then
mvn clean verify ${MAVEN_ARGS},debezium-connector-postgres \
mvn clean verify ${CUSTOM_MAVEN_ARGS},debezium-connector-postgres \
-Dpostgres.port=55432 \
${ORACLE_ARG:-} \
${EXECUTION_ARG:-} \
Expand Down Expand Up @@ -63,11 +63,11 @@ then
else
export DATABASE_IMAGE="mcr.microsoft.com/mssql/server:2022-latest"
fi
mvn clean verify ${MAVEN_ARGS},debezium-connector-sqlserver \
mvn clean verify ${CUSTOM_MAVEN_ARGS},debezium-connector-sqlserver \
${EXECUTION_ARG:-} \
-Ddocker.db="${DATABASE_IMAGE}"
else
mvn clean verify ${MAVEN_ARGS},debezium-connector-mongodb \
mvn clean verify ${CUSTOM_MAVEN_ARGS},debezium-connector-mongodb \
${EXECUTION_ARG:-} \
-Dversion.mongo.server=${MONGODB_VERSION}
fi
Expand Down

0 comments on commit 1ffaf6b

Please sign in to comment.