Skip to content

Backport to branch(3.10) : Update MySQL and PostgreSQL versions tested on the CI #2314

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

Merged
merged 2 commits into from
Nov 1, 2024
Merged
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
96 changes: 76 additions & 20 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -481,13 +481,13 @@ jobs:
name: mysql_8.0_integration_test_reports
path: core/build/reports/tests/integrationTestJdbc

integration-test-for-jdbc-mysql-8-1:
name: MySQL 8.1 integration test
integration-test-for-jdbc-mysql-8-4:
name: MySQL 8.4 integration test
runs-on: ubuntu-latest

services:
mysql:
image: mysql:8.1
image: mysql:8.4
env:
MYSQL_ROOT_PASSWORD: mysql
ports:
Expand Down Expand Up @@ -533,16 +533,16 @@ jobs:
if: always()
uses: actions/upload-artifact@v4
with:
name: mysql_8.1_integration_test_reports
name: mysql_8.4_integration_test_reports
path: core/build/reports/tests/integrationTestJdbc

integration-test-for-jdbc-postgresql-12:
name: PostgreSQL 12 integration test
integration-test-for-jdbc-postgresql-13:
name: PostgreSQL 13 integration test
runs-on: ubuntu-latest

services:
postgres:
image: postgres:12-alpine
image: postgres:13-alpine
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
Expand Down Expand Up @@ -589,16 +589,16 @@ jobs:
if: always()
uses: actions/upload-artifact@v4
with:
name: postgresql_12_integration_test_reports
name: postgresql_13_integration_test_reports
path: core/build/reports/tests/integrationTestJdbc

integration-test-for-jdbc-postgresql-13:
name: PostgreSQL 13 integration test
integration-test-for-jdbc-postgresql-14:
name: PostgreSQL 14 integration test
runs-on: ubuntu-latest

services:
postgres:
image: postgres:13-alpine
image: postgres:14-alpine
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
Expand Down Expand Up @@ -645,16 +645,16 @@ jobs:
if: always()
uses: actions/upload-artifact@v4
with:
name: postgresql_13_integration_test_reports
name: postgresql_14_integration_test_reports
path: core/build/reports/tests/integrationTestJdbc

integration-test-for-jdbc-postgresql-14:
name: PostgreSQL 14 integration test
integration-test-for-jdbc-postgresql-15:
name: PostgreSQL 15 integration test
runs-on: ubuntu-latest

services:
postgres:
image: postgres:14-alpine
image: postgres:15-alpine
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
Expand Down Expand Up @@ -701,16 +701,16 @@ jobs:
if: always()
uses: actions/upload-artifact@v4
with:
name: postgresql_14_integration_test_reports
name: postgresql_15_integration_test_reports
path: core/build/reports/tests/integrationTestJdbc

integration-test-for-jdbc-postgresql-15:
name: PostgreSQL 15 integration test
integration-test-for-jdbc-postgresql-16:
name: PostgreSQL 16 integration test
runs-on: ubuntu-latest

services:
postgres:
image: postgres:15-alpine
image: postgres:16-alpine
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
Expand Down Expand Up @@ -757,7 +757,63 @@ jobs:
if: always()
uses: actions/upload-artifact@v4
with:
name: postgresql_15_integration_test_reports
name: postgresql_16_integration_test_reports
path: core/build/reports/tests/integrationTestJdbc

integration-test-for-jdbc-postgresql-17:
name: PostgreSQL 17 integration test
runs-on: ubuntu-latest

services:
postgres:
image: postgres:17-alpine
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
ports:
- 5432:5432

steps:
- uses: actions/checkout@v4

- name: Set up JDK ${{ env.JAVA_VERSION }} (${{ env.JAVA_VENDOR }})
uses: actions/setup-java@v4
with:
java-version: ${{ env.JAVA_VERSION }}
distribution: ${{ env.JAVA_VENDOR }}

- name: Set up JDK ${{ env.INT_TEST_JAVA_RUNTIME_VERSION }} (${{ env.INT_TEST_JAVA_RUNTIME_VENDOR }}) to run integration test
uses: actions/setup-java@v4
if: ${{ env.SET_UP_INT_TEST_RUNTIME_NON_ORACLE_JDK == 'true'}}
with:
java-version: ${{ env.INT_TEST_JAVA_RUNTIME_VERSION }}
distribution: ${{ env.INT_TEST_JAVA_RUNTIME_VENDOR }}

- name: Login to Oracle container registry
uses: docker/login-action@v3
if: ${{ env.INT_TEST_JAVA_RUNTIME_VENDOR == 'oracle' }}
with:
registry: container-registry.oracle.com
username: ${{ secrets.OCR_USERNAME }}
password: ${{ secrets.OCR_TOKEN }}

- name: Set up JDK ${{ env.INT_TEST_JAVA_RUNTIME_VERSION }} (oracle) to run the integration test
if: ${{ env.INT_TEST_JAVA_RUNTIME_VENDOR == 'oracle' }}
run: |
container_id=$(docker create "container-registry.oracle.com/java/jdk:${{ env.INT_TEST_JAVA_RUNTIME_VERSION }}")
docker cp -L "$container_id:/usr/java/default" /usr/lib/jvm/oracle-jdk && docker rm "$container_id"

- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4

- name: Execute Gradle 'integrationTestJdbc' task
run: ./gradlew integrationTestJdbc -Dscalardb.jdbc.url=jdbc:postgresql://localhost:5432/ -Dscalardb.jdbc.username=postgres -Dscalardb.jdbc.password=postgres

- name: Upload Gradle test reports
if: always()
uses: actions/upload-artifact@v4
with:
name: postgresql_17_integration_test_reports
path: core/build/reports/tests/integrationTestJdbc

integration-test-for-jdbc-oracle-19:
Expand Down