update env vars (#50963) #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Driver Tests | |
on: | |
push: | |
branches: | |
- 'master' | |
- 'release-**' | |
pull_request: | |
types: [opened, synchronize, reopened, ready_for_review] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref && github.ref || github.run_id }} | |
cancel-in-progress: true | |
jobs: | |
files-changed: | |
name: Check which files changed | |
runs-on: ubuntu-22.04 | |
timeout-minutes: 3 | |
outputs: | |
backend_all: ${{ steps.changes.outputs.backend_all }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Test which files changed | |
uses: dorny/paths-filter@v3.0.0 | |
id: changes | |
with: | |
token: ${{ github.token }} | |
filters: .github/file-paths.yaml | |
be-tests-athena-ee: | |
needs: files-changed | |
if: github.event.pull_request.draft == false && needs.files-changed.outputs.backend_all == 'true' | |
runs-on: ubuntu-22.04 | |
timeout-minutes: 90 | |
env: | |
CI: 'true' | |
DRIVERS: athena | |
MB_ATHENA_TEST_REGION: us-east-1 | |
MB_ATHENA_TEST_ACCESS_KEY: ${{ secrets.MB_ATHENA_TEST_ACCESS_KEY }} | |
MB_ATHENA_TEST_SECRET_KEY: ${{ secrets.MB_ATHENA_TEST_SECRET_KEY }} | |
MB_ATHENA_TEST_S3_STAGING_DIR: ${{ secrets.MB_ATHENA_TEST_S3_STAGING_DIR }} | |
# These credentials are used to test the driver when the user does not have the athena:GetTableMetadata permission | |
MB_ATHENA_TEST_WITHOUT_GET_TABLE_METADATA_ACCESS_KEY: ${{ secrets.MB_ATHENA_TEST_WITHOUT_GET_TABLE_METADATA_ACCESS_KEY }} | |
MB_ATHENA_TEST_WITHOUT_GET_TABLE_METADATA_SECRET_KEY: ${{ secrets.MB_ATHENA_TEST_WITHOUT_GET_TABLE_METADATA_SECRET_KEY }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Test Athena driver | |
uses: ./.github/actions/test-driver | |
with: | |
junit-name: 'be-tests-athena-ee' | |
test-args: >- | |
:only-tags [:mb/driver-tests] | |
- name: Upload Test Results | |
uses: ./.github/actions/upload-test-results | |
if: always() | |
with: | |
input-path: ./target/junit/ | |
output-name: ${{ github.job }} | |
bucket: ${{ vars.AWS_S3_TEST_RESULTS_BUCKET }} | |
aws-access-key-id: ${{ secrets.AWS_TEST_RESULTS_ACCESS_KEY_ID }} | |
aws-secret-access-key: ${{ secrets.AWS_TEST_RESULTS_SECRET_ACCESS_KEY }} | |
aws-region: ${{ vars.AWS_REGION }} | |
trunk-api-token: ${{ secrets.TRUNK_API_TOKEN }} | |
be-tests-bigquery-cloud-sdk-ee: | |
needs: files-changed | |
if: github.event.pull_request.draft == false && needs.files-changed.outputs.backend_all == 'true' | |
runs-on: ubuntu-22.04 | |
timeout-minutes: 90 | |
env: | |
CI: 'true' | |
DRIVERS: bigquery-cloud-sdk | |
MB_BIGQUERY_TEST_PROJECT_ID: ${{ secrets.BIGQUERY_TEST_PROJECT_ID }} | |
MB_BIGQUERY_TEST_CLIENT_ID: ${{ secrets.MB_BIGQUERY_TEST_CLIENT_ID }} | |
MB_BIGQUERY_TEST_CLIENT_SECRET: ${{ secrets.MB_BIGQUERY_TEST_CLIENT_SECRET }} | |
MB_BIGQUERY_TEST_ACCESS_TOKEN: ${{ secrets.MB_BIGQUERY_TEST_ACCESS_TOKEN }} | |
MB_BIGQUERY_TEST_REFRESH_TOKEN: ${{ secrets.MB_BIGQUERY_TEST_REFRESH_TOKEN }} | |
MB_BIGQUERY_CLOUD_SDK_TEST_SERVICE_ACCOUNT_JSON: ${{ secrets.MB_BIGQUERY_CLOUD_SDK_TEST_SERVICE_ACCOUNT_JSON }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Test BigQuery Cloud SDK driver | |
uses: ./.github/actions/test-driver | |
with: | |
junit-name: 'be-tests-bigquery-cloud-sdk-ee' | |
test-args: >- | |
:only-tags [:mb/driver-tests] | |
- name: Upload Test Results | |
uses: ./.github/actions/upload-test-results | |
if: always() | |
with: | |
input-path: ./target/junit/ | |
output-name: ${{ github.job }} | |
bucket: ${{ vars.AWS_S3_TEST_RESULTS_BUCKET }} | |
aws-access-key-id: ${{ secrets.AWS_TEST_RESULTS_ACCESS_KEY_ID }} | |
aws-secret-access-key: ${{ secrets.AWS_TEST_RESULTS_SECRET_ACCESS_KEY }} | |
aws-region: ${{ vars.AWS_REGION }} | |
trunk-api-token: ${{ secrets.TRUNK_API_TOKEN }} | |
be-tests-druid-ee: | |
needs: files-changed | |
if: github.event.pull_request.draft == false && needs.files-changed.outputs.backend_all == 'true' | |
runs-on: ubuntu-22.04 | |
timeout-minutes: 90 | |
env: | |
CI: 'true' | |
DRIVERS: druid | |
services: | |
druid: | |
image: metabase/druid:0.20.2 | |
ports: | |
- "8082:8082" | |
env: | |
CLUSTER_SIZE: nano-quickstart | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Test Druid driver | |
uses: ./.github/actions/test-driver | |
with: | |
junit-name: 'be-tests-druid-ee' | |
test-args: >- | |
:only-tags [:mb/driver-tests] | |
- name: Upload Test Results | |
uses: ./.github/actions/upload-test-results | |
if: always() | |
with: | |
input-path: ./target/junit/ | |
output-name: ${{ github.job }} | |
bucket: ${{ vars.AWS_S3_TEST_RESULTS_BUCKET }} | |
aws-access-key-id: ${{ secrets.AWS_TEST_RESULTS_ACCESS_KEY_ID }} | |
aws-secret-access-key: ${{ secrets.AWS_TEST_RESULTS_SECRET_ACCESS_KEY }} | |
aws-region: ${{ vars.AWS_REGION }} | |
trunk-api-token: ${{ secrets.TRUNK_API_TOKEN }} | |
be-tests-databricks-ee: | |
needs: files-changed | |
if: github.event.pull_request.draft == false && needs.files-changed.outputs.backend_all == 'true' | |
runs-on: ubuntu-22.04 | |
timeout-minutes: 90 | |
env: | |
CI: 'true' | |
DRIVERS: databricks | |
MB_DATABRICKS_TEST_HOST: ${{ secrets.MB_DATABRICKS_JDBC_TEST_HOST }} | |
MB_DATABRICKS_TEST_HTTP_PATH: ${{ secrets.MB_DATABRICKS_JDBC_TEST_HTTP_PATH }} | |
MB_DATABRICKS_TEST_TOKEN: ${{ secrets.MB_DATABRICKS_JDBC_TEST_TOKEN }} | |
MB_DATABRICKS_TEST_CATALOG: 'metabase_ci' | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Test Databricks driver | |
uses: ./.github/actions/test-driver | |
with: | |
junit-name: 'be-tests-databricks-ee' | |
test-args: ":exclude-tags '[:mb/once]'" | |
- name: Upload Test Results | |
uses: ./.github/actions/upload-test-results | |
if: always() | |
with: | |
input-path: ./target/junit/ | |
output-name: ${{ github.job }} | |
bucket: ${{ vars.AWS_S3_TEST_RESULTS_BUCKET }} | |
aws-access-key-id: ${{ secrets.AWS_TEST_RESULTS_ACCESS_KEY_ID }} | |
aws-secret-access-key: ${{ secrets.AWS_TEST_RESULTS_SECRET_ACCESS_KEY }} | |
aws-region: ${{ vars.AWS_REGION }} | |
trunk-api-token: ${{ secrets.TRUNK_API_TOKEN }} | |
be-tests-druid-jdbc-ee: | |
needs: files-changed | |
if: github.event.pull_request.draft == false && needs.files-changed.outputs.backend_all == 'true' | |
runs-on: ubuntu-22.04 | |
timeout-minutes: 90 | |
env: | |
CI: 'true' | |
DRIVERS: druid-jdbc | |
services: | |
druid: | |
image: metabase/druid:29.0.1-json-no-ingestion | |
ports: | |
- "8888:8888" | |
env: | |
CLUSTER_SIZE: nano-quickstart | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Test Druid JDBC driver | |
uses: ./.github/actions/test-driver | |
with: | |
junit-name: 'be-tests-druid-jdbc-ee' | |
test-args: >- | |
:only-tags [:mb/driver-tests] | |
- name: Upload Test Results | |
uses: ./.github/actions/upload-test-results | |
if: always() | |
with: | |
input-path: ./target/junit/ | |
output-name: ${{ github.job }} | |
bucket: ${{ vars.AWS_S3_TEST_RESULTS_BUCKET }} | |
aws-access-key-id: ${{ secrets.AWS_TEST_RESULTS_ACCESS_KEY_ID }} | |
aws-secret-access-key: ${{ secrets.AWS_TEST_RESULTS_SECRET_ACCESS_KEY }} | |
aws-region: ${{ vars.AWS_REGION }} | |
trunk-api-token: ${{ secrets.TRUNK_API_TOKEN }} | |
be-tests-mariadb-10-2-ee: | |
needs: files-changed | |
if: github.event.pull_request.draft == false && needs.files-changed.outputs.backend_all == 'true' | |
runs-on: ubuntu-22.04 | |
timeout-minutes: 90 | |
strategy: | |
fail-fast: false | |
matrix: | |
partition-index: [0, 1, 2, 3] | |
env: | |
CI: 'true' | |
DRIVERS: mysql | |
MB_DB_TYPE: mysql | |
MB_DB_HOST: localhost | |
MB_DB_PORT: 3306 | |
MB_DB_DBNAME: circle_test | |
MB_DB_USER: root | |
MB_MYSQL_TEST_USER: root | |
services: | |
mariadb: | |
image: circleci/mariadb:10.2.23 | |
ports: | |
- "3306:3306" | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Test MariaDB driver (10.2) | |
uses: ./.github/actions/test-driver | |
with: | |
junit-name: 'be-tests-mariadb-10-2-ee' | |
test-args: >- | |
:partition/total 4 | |
:partition/index ${{ matrix.partition-index }} | |
- name: Upload Test Results | |
uses: ./.github/actions/upload-test-results | |
if: always() | |
with: | |
input-path: ./target/junit/ | |
output-name: ${{ github.job }} | |
bucket: ${{ vars.AWS_S3_TEST_RESULTS_BUCKET }} | |
aws-access-key-id: ${{ secrets.AWS_TEST_RESULTS_ACCESS_KEY_ID }} | |
aws-secret-access-key: ${{ secrets.AWS_TEST_RESULTS_SECRET_ACCESS_KEY }} | |
aws-region: ${{ vars.AWS_REGION }} | |
trunk-api-token: ${{ secrets.TRUNK_API_TOKEN }} | |
be-tests-mariadb-latest-ee: | |
needs: files-changed | |
if: github.event.pull_request.draft == false && needs.files-changed.outputs.backend_all == 'true' | |
runs-on: ubuntu-22.04 | |
timeout-minutes: 90 | |
strategy: | |
fail-fast: false | |
matrix: | |
partition-index: [0, 1, 2, 3] | |
env: | |
CI: 'true' | |
DRIVERS: mysql | |
MB_DB_TYPE: mysql | |
MB_DB_HOST: localhost | |
MB_DB_PORT: 3306 | |
MB_DB_DBNAME: circle_test | |
MB_DB_USER: root | |
MB_MYSQL_TEST_USER: root | |
services: | |
mariadb: | |
image: circleci/mariadb:latest | |
ports: | |
- "3306:3306" | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Test MariaDB driver (latest) | |
uses: ./.github/actions/test-driver | |
with: | |
junit-name: 'be-tests-mariadb-latest-ee' | |
test-args: >- | |
:partition/total 4 | |
:partition/index ${{ matrix.partition-index }} | |
- name: Upload Test Results | |
uses: ./.github/actions/upload-test-results | |
if: always() | |
with: | |
input-path: ./target/junit/ | |
output-name: ${{ github.job }} | |
bucket: ${{ vars.AWS_S3_TEST_RESULTS_BUCKET }} | |
aws-access-key-id: ${{ secrets.AWS_TEST_RESULTS_ACCESS_KEY_ID }} | |
aws-secret-access-key: ${{ secrets.AWS_TEST_RESULTS_SECRET_ACCESS_KEY }} | |
aws-region: ${{ vars.AWS_REGION }} | |
trunk-api-token: ${{ secrets.TRUNK_API_TOKEN }} | |
be-tests-mongo-4-4-ee: | |
needs: files-changed | |
if: github.event.pull_request.draft == false && needs.files-changed.outputs.backend_all == 'true' | |
runs-on: ubuntu-22.04 | |
timeout-minutes: 90 | |
env: | |
CI: 'true' | |
DRIVERS: mongo | |
MB_MONGO_TEST_USER: metabase | |
MB_MONGO_TEST_PASSWORD: metasample123 | |
services: | |
mongodb: | |
image: metabase/qa-databases:mongo-sample-4.4 | |
ports: | |
- "27017:27017" | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Test MongoDB driver (4.4) | |
uses: ./.github/actions/test-driver | |
with: | |
junit-name: 'be-tests-mongo-4-4-ee' | |
test-args: >- | |
:exclude-tags [:mongo-sharded-cluster-tests] | |
:only-tags [:mb/driver-tests] | |
- name: Upload Test Results | |
uses: ./.github/actions/upload-test-results | |
if: always() | |
with: | |
input-path: ./target/junit/ | |
output-name: ${{ github.job }} | |
bucket: ${{ vars.AWS_S3_TEST_RESULTS_BUCKET }} | |
aws-access-key-id: ${{ secrets.AWS_TEST_RESULTS_ACCESS_KEY_ID }} | |
aws-secret-access-key: ${{ secrets.AWS_TEST_RESULTS_SECRET_ACCESS_KEY }} | |
aws-region: ${{ vars.AWS_REGION }} | |
trunk-api-token: ${{ secrets.TRUNK_API_TOKEN }} | |
be-tests-mongo-4-4-ssl-ee: | |
needs: files-changed | |
if: github.event.pull_request.draft == false && needs.files-changed.outputs.backend_all == 'true' | |
runs-on: ubuntu-22.04 | |
timeout-minutes: 90 | |
env: | |
CI: 'true' | |
DRIVERS: mongo | |
MB_MONGO_TEST_USER: metabase | |
MB_MONGO_TEST_PASSWORD: metasample123 | |
MB_TEST_MONGO_REQUIRES_SSL: true | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Spin up Mongo docker container | |
run: >- | |
docker run -d | |
-p 27017:27017 | |
--name metamongo | |
metabase/qa-databases:mongo-sample-4.4 | |
mongod | |
--dbpath /data/db2/ | |
--tlsMode requireTLS | |
--tlsCertificateKeyFile /etc/mongo/metamongo.pem | |
--tlsCAFile /etc/mongo/metaca.crt | |
- uses: ./.github/actions/await-port | |
with: | |
port: 27017 | |
timeout-minutes: 5 | |
- name: Make SSL certificates for Mongo available | |
run: | | |
curl https://raw.githubusercontent.com/metabase/metabase-qa/master/dbs/mongo/certificates/metabase.crt \ | |
-o ./test_resources/ssl/mongo/metabase.crt | |
curl https://raw.githubusercontent.com/metabase/metabase-qa/master/dbs/mongo/certificates/metabase.key \ | |
-o ./test_resources/ssl/mongo/metabase.key | |
curl https://raw.githubusercontent.com/metabase/metabase-qa/master/dbs/mongo/certificates/metaca.crt \ | |
-o ./test_resources/ssl/mongo/metaca.crt | |
- name: Test MongoDB SSL driver (4.4) | |
uses: ./.github/actions/test-driver | |
with: | |
junit-name: 'be-tests-mongo-4-4-ee' | |
test-args: >- | |
:exclude-tags [:mongo-sharded-cluster-tests] | |
:only-tags [:mb/driver-tests] | |
- name: Upload Test Results | |
uses: ./.github/actions/upload-test-results | |
if: always() | |
with: | |
input-path: ./target/junit/ | |
output-name: ${{ github.job }} | |
bucket: ${{ vars.AWS_S3_TEST_RESULTS_BUCKET }} | |
aws-access-key-id: ${{ secrets.AWS_TEST_RESULTS_ACCESS_KEY_ID }} | |
aws-secret-access-key: ${{ secrets.AWS_TEST_RESULTS_SECRET_ACCESS_KEY }} | |
aws-region: ${{ vars.AWS_REGION }} | |
trunk-api-token: ${{ secrets.TRUNK_API_TOKEN }} | |
be-tests-mongo-5-0-ee: | |
needs: files-changed | |
if: github.event.pull_request.draft == false && needs.files-changed.outputs.backend_all == 'true' | |
runs-on: ubuntu-22.04 | |
timeout-minutes: 90 | |
env: | |
CI: 'true' | |
DRIVERS: mongo | |
MB_MONGO_TEST_USER: metabase | |
MB_MONGO_TEST_PASSWORD: metasample123 | |
services: | |
mongodb: | |
image: metabase/qa-databases:mongo-sample-5.0 | |
ports: | |
- "27017:27017" | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Test MongoDB driver (5.0) | |
uses: ./.github/actions/test-driver | |
with: | |
junit-name: 'be-tests-mongo-5-0-ee' | |
test-args: >- | |
:exclude-tags [:mongo-sharded-cluster-tests] | |
:only-tags [:mb/driver-tests] | |
- name: Upload Test Results | |
uses: ./.github/actions/upload-test-results | |
if: always() | |
with: | |
input-path: ./target/junit/ | |
output-name: ${{ github.job }} | |
bucket: ${{ vars.AWS_S3_TEST_RESULTS_BUCKET }} | |
aws-access-key-id: ${{ secrets.AWS_TEST_RESULTS_ACCESS_KEY_ID }} | |
aws-secret-access-key: ${{ secrets.AWS_TEST_RESULTS_SECRET_ACCESS_KEY }} | |
aws-region: ${{ vars.AWS_REGION }} | |
trunk-api-token: ${{ secrets.TRUNK_API_TOKEN }} | |
be-tests-mongo-5-0-ssl-ee: | |
needs: files-changed | |
if: github.event.pull_request.draft == false && needs.files-changed.outputs.backend_all == 'true' | |
runs-on: ubuntu-22.04 | |
timeout-minutes: 90 | |
env: | |
CI: 'true' | |
DRIVERS: mongo | |
MB_MONGO_TEST_USER: metabase | |
MB_MONGO_TEST_PASSWORD: metasample123 | |
MB_TEST_MONGO_REQUIRES_SSL: true | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Spin up Mongo docker container | |
run: >- | |
docker run -d | |
-p 27017:27017 | |
--name metamongo | |
metabase/qa-databases:mongo-sample-5.0 | |
mongod | |
--dbpath /data/db2/ | |
--tlsMode requireTLS | |
--tlsCertificateKeyFile /etc/mongo/metamongo.pem | |
--tlsCAFile /etc/mongo/metaca.crt | |
- uses: ./.github/actions/await-port | |
with: | |
port: 27017 | |
timeout-minutes: 5 | |
- name: Make SSL certificates for Mongo available | |
run: | | |
curl https://raw.githubusercontent.com/metabase/metabase-qa/master/dbs/mongo/certificates/metabase.crt \ | |
-o ./test_resources/ssl/mongo/metabase.crt | |
curl https://raw.githubusercontent.com/metabase/metabase-qa/master/dbs/mongo/certificates/metabase.key \ | |
-o ./test_resources/ssl/mongo/metabase.key | |
curl https://raw.githubusercontent.com/metabase/metabase-qa/master/dbs/mongo/certificates/metaca.crt \ | |
-o ./test_resources/ssl/mongo/metaca.crt | |
- name: Test MongoDB SSL driver (5.0) | |
uses: ./.github/actions/test-driver | |
with: | |
junit-name: 'be-tests-mongo-5-0-ee' | |
test-args: >- | |
:exclude-tags [:mongo-sharded-cluster-tests] | |
:only-tags [:mb/driver-tests] | |
- name: Upload Test Results | |
uses: ./.github/actions/upload-test-results | |
if: always() | |
with: | |
input-path: ./target/junit/ | |
output-name: ${{ github.job }} | |
bucket: ${{ vars.AWS_S3_TEST_RESULTS_BUCKET }} | |
aws-access-key-id: ${{ secrets.AWS_TEST_RESULTS_ACCESS_KEY_ID }} | |
aws-secret-access-key: ${{ secrets.AWS_TEST_RESULTS_SECRET_ACCESS_KEY }} | |
aws-region: ${{ vars.AWS_REGION }} | |
trunk-api-token: ${{ secrets.TRUNK_API_TOKEN }} | |
be-tests-mongo-latest-ee: | |
needs: files-changed | |
if: github.event.pull_request.draft == false && needs.files-changed.outputs.backend_all == 'true' | |
runs-on: ubuntu-22.04 | |
timeout-minutes: 90 | |
env: | |
CI: 'true' | |
DRIVERS: mongo | |
MB_MONGO_TEST_USER: metabase | |
MB_MONGO_TEST_PASSWORD: metasample123 | |
services: | |
mongodb: | |
image: circleci/mongo:latest | |
ports: | |
- "27017:27017" | |
env: | |
MONGO_INITDB_ROOT_USERNAME: metabase | |
MONGO_INITDB_ROOT_PASSWORD: metasample123 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Test MongoDB driver (latest) | |
uses: ./.github/actions/test-driver | |
with: | |
junit-name: 'be-tests-mongo-latest-ee' | |
test-args: >- | |
:exclude-tags [:mongo-sharded-cluster-tests] | |
:only-tags [:mb/driver-tests] | |
- name: Upload Test Results | |
uses: ./.github/actions/upload-test-results | |
if: always() | |
with: | |
input-path: ./target/junit/ | |
output-name: ${{ github.job }} | |
bucket: ${{ vars.AWS_S3_TEST_RESULTS_BUCKET }} | |
aws-access-key-id: ${{ secrets.AWS_TEST_RESULTS_ACCESS_KEY_ID }} | |
aws-secret-access-key: ${{ secrets.AWS_TEST_RESULTS_SECRET_ACCESS_KEY }} | |
aws-region: ${{ vars.AWS_REGION }} | |
trunk-api-token: ${{ secrets.TRUNK_API_TOKEN }} | |
be-tests-mongo-sharded-cluster-ee: | |
needs: files-changed | |
if: github.event.pull_request.draft == false && needs.files-changed.outputs.backend_all == 'true' | |
runs-on: ubuntu-22.04 | |
timeout-minutes: 90 | |
env: | |
CI: 'true' | |
DRIVERS: mongo | |
services: | |
mongodb: | |
image: metabase/mongo-sharded-cluster:6 | |
ports: | |
- "27017:17017" | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Test MongoDB driver (Sharded cluster) | |
uses: ./.github/actions/test-driver | |
with: | |
junit-name: 'be-tests-mongo-sharded-cluster-ee' | |
test-args: ':only "[metabase.driver.mongo.sharded-cluster-test]"' | |
- name: Upload Test Results | |
uses: ./.github/actions/upload-test-results | |
if: always() | |
with: | |
input-path: ./target/junit/ | |
output-name: ${{ github.job }} | |
bucket: ${{ vars.AWS_S3_TEST_RESULTS_BUCKET }} | |
aws-access-key-id: ${{ secrets.AWS_TEST_RESULTS_ACCESS_KEY_ID }} | |
aws-secret-access-key: ${{ secrets.AWS_TEST_RESULTS_SECRET_ACCESS_KEY }} | |
aws-region: ${{ vars.AWS_REGION }} | |
trunk-api-token: ${{ secrets.TRUNK_API_TOKEN }} | |
be-tests-mysql-8-0-ee: | |
needs: files-changed | |
if: github.event.pull_request.draft == false && needs.files-changed.outputs.backend_all == 'true' | |
runs-on: ubuntu-22.04 | |
timeout-minutes: 90 | |
strategy: | |
fail-fast: false | |
matrix: | |
partition-index: [0, 1, 2, 3] | |
env: | |
CI: 'true' | |
DRIVERS: mysql | |
MB_DB_TYPE: mysql | |
MB_DB_HOST: localhost | |
MB_DB_PORT: 3306 | |
MB_DB_DBNAME: circle_test | |
MB_DB_USER: root | |
MB_MYSQL_TEST_USER: root | |
services: | |
mysql: | |
image: cimg/mysql:8.0 | |
ports: | |
- "3306:3306" | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Test MySQL driver (8.0) | |
uses: ./.github/actions/test-driver | |
with: | |
junit-name: 'be-tests-mysql-8-0-ee' | |
test-args: >- | |
:partition/total 4 | |
:partition/index ${{ matrix.partition-index }} | |
- name: Upload Test Results | |
uses: ./.github/actions/upload-test-results | |
if: always() | |
with: | |
input-path: ./target/junit/ | |
output-name: ${{ github.job }} | |
bucket: ${{ vars.AWS_S3_TEST_RESULTS_BUCKET }} | |
aws-access-key-id: ${{ secrets.AWS_TEST_RESULTS_ACCESS_KEY_ID }} | |
aws-secret-access-key: ${{ secrets.AWS_TEST_RESULTS_SECRET_ACCESS_KEY }} | |
aws-region: ${{ vars.AWS_REGION }} | |
trunk-api-token: ${{ secrets.TRUNK_API_TOKEN }} | |
be-tests-mysql-latest-ee: | |
needs: files-changed | |
if: github.event.pull_request.draft == false && needs.files-changed.outputs.backend_all == 'true' | |
runs-on: ubuntu-22.04 | |
timeout-minutes: 90 | |
strategy: | |
fail-fast: false | |
matrix: | |
partition-index: [0, 1, 2, 3] | |
env: | |
CI: 'true' | |
DRIVERS: mysql | |
MB_DB_TYPE: mysql | |
MB_DB_HOST: localhost | |
MB_DB_PORT: 3306 | |
MB_DB_DBNAME: circle_test | |
MB_DB_USER: root | |
MB_MYSQL_TEST_USER: root | |
# set up env vars for something named "MYSQL_SSL" to run MySQL SSL tests verifying connectivity with PEM cert | |
# they are deliberately given a different name to prevent them from affecting the regular test run against | |
# the configured MySQL instance, but there is one particular test (mysql-connect-with-ssl-and-pem-cert-test) | |
# that overrides the MB_MYSQL_TEST_* values with them | |
# the MYSQL_RDS_SSL_INSTANCE vars are defined as secrets and can be altered | |
MB_MYSQL_SSL_TEST_HOST: ${{ secrets.MYSQL_RDS_SSL_INSTANCE_HOST }} | |
MB_MYSQL_SSL_TEST_SSL: true | |
MB_MYSQL_SSL_TEST_ADDITIONAL_OPTIONS: 'verifyServerCertificate=true' | |
# the contents of the ./resources/certificates/rds-combined-ca-bundle.pem file | |
MB_MYSQL_SSL_TEST_SSL_CERT: ${{ secrets.MB_MYSQL_SSL_TEST_SSL_CERT }} | |
MB_MYSQL_SSL_TEST_USER: metabase | |
MB_MYSQL_SSL_TEST_PASSWORD: ${{ secrets.MYSQL_RDS_SSL_INSTANCE_PASSWORD }} | |
services: | |
mysql: | |
image: mysql:latest | |
env: | |
MYSQL_ALLOW_EMPTY_PASSWORD: true | |
MYSQL_DATABASE: circle_test | |
ports: | |
- "3306:3306" | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Test MySQL driver (latest) | |
uses: ./.github/actions/test-driver | |
with: | |
junit-name: 'be-tests-mysql-latest-ee' | |
test-args: >- | |
:partition/total 4 | |
:partition/index ${{ matrix.partition-index }} | |
- name: Upload Test Results | |
uses: ./.github/actions/upload-test-results | |
if: always() | |
with: | |
input-path: ./target/junit/ | |
output-name: ${{ github.job }} | |
bucket: ${{ vars.AWS_S3_TEST_RESULTS_BUCKET }} | |
aws-access-key-id: ${{ secrets.AWS_TEST_RESULTS_ACCESS_KEY_ID }} | |
aws-secret-access-key: ${{ secrets.AWS_TEST_RESULTS_SECRET_ACCESS_KEY }} | |
aws-region: ${{ vars.AWS_REGION }} | |
trunk-api-token: ${{ secrets.TRUNK_API_TOKEN }} | |
be-tests-oracle-18-4-ee: | |
needs: files-changed | |
if: github.event.pull_request.draft == false && needs.files-changed.outputs.backend_all == 'true' | |
runs-on: ubuntu-22.04 | |
timeout-minutes: 90 | |
env: | |
CI: 'true' | |
DRIVERS: oracle | |
MB_ORACLE_TEST_HOST: localhost | |
MB_ORACLE_TEST_USER: system | |
MB_ORACLE_TEST_PASSWORD: password | |
MB_ORACLE_TEST_SERVICE_NAME: XEPDB1 | |
services: | |
oracle: | |
image: gvenzl/oracle-xe:18.4.0-slim | |
env: | |
ORACLE_PASSWORD: password | |
ports: | |
- "1521:1521" | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Test Oracle driver (18.4) | |
uses: ./.github/actions/test-driver | |
with: | |
junit-name: 'be-tests-oracle-18-4-ee' | |
test-args: >- | |
:only-tags [:mb/driver-tests] | |
- name: Upload Test Results | |
uses: ./.github/actions/upload-test-results | |
if: always() | |
with: | |
input-path: ./target/junit/ | |
output-name: ${{ github.job }} | |
bucket: ${{ vars.AWS_S3_TEST_RESULTS_BUCKET }} | |
aws-access-key-id: ${{ secrets.AWS_TEST_RESULTS_ACCESS_KEY_ID }} | |
aws-secret-access-key: ${{ secrets.AWS_TEST_RESULTS_SECRET_ACCESS_KEY }} | |
aws-region: ${{ vars.AWS_REGION }} | |
trunk-api-token: ${{ secrets.TRUNK_API_TOKEN }} | |
be-tests-oracle-21-3-ee: | |
needs: files-changed | |
if: github.event.pull_request.draft == false && needs.files-changed.outputs.backend_all == 'true' | |
runs-on: ubuntu-22.04 | |
timeout-minutes: 90 | |
env: | |
CI: 'true' | |
DRIVERS: oracle | |
MB_ORACLE_TEST_HOST: localhost | |
MB_ORACLE_TEST_PORT: 2484 | |
MB_ORACLE_TEST_SERVICE_NAME: XEPDB1 | |
MB_ORACLE_TEST_SSL: true | |
MB_ORACLE_TEST_SSL_USE_TRUSTSTORE: true | |
MB_ORACLE_TEST_SSL_TRUSTSTORE_PATH: './test_resources/ssl/oracle/truststore.p12' | |
MB_ORACLE_TEST_SSL_TRUSTSTORE_OPTIONS: local | |
MB_ORACLE_TEST_SSL_TRUSTSTORE_PASSWORD_VALUE: 'PassworD_#1234' | |
MB_ORACLE_TEST_SSL_USE_KEYSTORE: true | |
MB_ORACLE_TEST_SSL_KEYSTORE_PATH: './test_resources/ssl/oracle/keystore.p12' | |
MB_ORACLE_TEST_SSL_KEYSTORE_OPTIONS: local | |
MB_ORACLE_TEST_SSL_KEYSTORE_PASSWORD_VALUE: 'PassworD_#1234' | |
MB_ORACLE_SSL_TEST_SSL: true | |
services: | |
oracle: | |
image: metabase/qa-databases:oracle-xe-21.3 | |
env: | |
ORACLE_PASSWORD: password | |
ports: | |
- "2484:2484" | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Test Oracle driver (21.3) | |
uses: ./.github/actions/test-driver | |
with: | |
junit-name: 'be-tests-oracle-21-3-ee' | |
test-args: >- | |
:only-tags [:mb/driver-tests] | |
- name: Upload Test Results | |
uses: ./.github/actions/upload-test-results | |
if: always() | |
with: | |
input-path: ./target/junit/ | |
output-name: ${{ github.job }} | |
bucket: ${{ vars.AWS_S3_TEST_RESULTS_BUCKET }} | |
aws-access-key-id: ${{ secrets.AWS_TEST_RESULTS_ACCESS_KEY_ID }} | |
aws-secret-access-key: ${{ secrets.AWS_TEST_RESULTS_SECRET_ACCESS_KEY }} | |
aws-region: ${{ vars.AWS_REGION }} | |
trunk-api-token: ${{ secrets.TRUNK_API_TOKEN }} | |
be-tests-postgres-ee: | |
needs: files-changed | |
if: github.event.pull_request.draft == false && needs.files-changed.outputs.backend_all == 'true' | |
runs-on: ubuntu-22.04 | |
timeout-minutes: 90 | |
strategy: | |
fail-fast: false | |
matrix: | |
version: | |
- name: Postgres 12.x | |
junit-name: postgres-ee | |
docker-image: postgres:12-alpine | |
env: | |
enable-ssl-tests: 'false' | |
- name: Postgres Latest | |
junit-name: postgres-latest-ee | |
docker-image: postgres:latest | |
env: | |
enable-ssl-tests: 'true' | |
job: | |
- name: Driver Tests | |
test-args: >- | |
:only-tags [:mb/driver-tests] | |
- name: App DB Tests | |
test-args: >- | |
:exclude-tags [:mb/driver-tests] | |
name: Test ${{ matrix.version.name }} (${{ matrix.job.name }}) | |
env: | |
CI: 'true' | |
DRIVERS: postgres | |
MB_DB_TYPE: postgres | |
MB_DB_PORT: 5432 | |
MB_DB_HOST: localhost | |
MB_DB_DBNAME: mb_test | |
MB_DB_USER: mb_test | |
MB_POSTGRESQL_TEST_USER: mb_test | |
# SSL tests are only enabled for the postgres-latest job. | |
MB_POSTGRES_SSL_TEST_SSL: ${{ matrix.version.env.enable-ssl-tests }} | |
MB_POSTGRES_SSL_TEST_SSL_MODE: verify-full | |
MB_POSTGRES_SSL_TEST_SSL_ROOT_CERT_PATH: 'test-resources/certificates/us-east-2-bundle.pem' | |
services: | |
postgres: | |
image: ${{ matrix.version.docker-image }} | |
ports: | |
- "5432:5432" | |
env: | |
POSTGRES_USER: mb_test | |
POSTGRES_DB: mb_test | |
POSTGRES_HOST_AUTH_METHOD: trust | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Test ${{ matrix.version.name }} (${{ matrix.job.name }}) | |
uses: ./.github/actions/test-driver | |
with: | |
junit-name: 'be-tests-${{ matrix.version.junit-name }}' | |
test-args: >- | |
${{ matrix.job.test-args }} | |
- name: Upload Test Results | |
uses: ./.github/actions/upload-test-results | |
if: always() | |
with: | |
input-path: ./target/junit/ | |
output-name: ${{ github.job }} | |
bucket: ${{ vars.AWS_S3_TEST_RESULTS_BUCKET }} | |
aws-access-key-id: ${{ secrets.AWS_TEST_RESULTS_ACCESS_KEY_ID }} | |
aws-secret-access-key: ${{ secrets.AWS_TEST_RESULTS_SECRET_ACCESS_KEY }} | |
aws-region: ${{ vars.AWS_REGION }} | |
trunk-api-token: ${{ secrets.TRUNK_API_TOKEN }} | |
be-tests-presto-jdbc-ee: | |
needs: files-changed | |
if: github.event.pull_request.draft == false && needs.files-changed.outputs.backend_all == 'true' | |
runs-on: ubuntu-22.04 | |
timeout-minutes: 90 | |
env: | |
CI: 'true' | |
DRIVERS: presto-jdbc | |
MB_PRESTO_JDBC_TEST_CATALOG: test_data | |
MB_PRESTO_JDBC_TEST_HOST: localhost | |
MB_PRESTO_JDBC_TEST_PORT: 8443 | |
MB_PRESTO_JDBC_TEST_SSL: true | |
MB_PRESTO_JDBC_TEST_USER: metabase | |
MB_PRESTO_JDBC_TEST_PASSWORD: metabase | |
MB_ENABLE_PRESTO_JDBC_DRIVER: true | |
MB_PRESTO_JDBC_TEST_ADDITIONAL_OPTIONS: 'SSLTrustStorePath=/tmp/cacerts-with-presto-ssl.jks&SSLTrustStorePassword=changeit' | |
services: | |
presto: | |
image: metabase/presto-mb-ci:latest # version 0.254 | |
ports: | |
- "8443:8443" | |
env: | |
JAVA_TOOL_OPTIONS: "-Xmx2g" | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ./.github/actions/await-port | |
with: | |
port: ${{ env.MB_PRESTO_JDBC_TEST_PORT }} | |
timeout-minutes: 5 | |
- name: Create temp cacerts file based on bundled JDK one | |
run: cp $JAVA_HOME/lib/security/cacerts /tmp/cacerts-with-presto-ssl.jks | |
- name: Capture Presto server self signed CA | |
run: | | |
while [[ ! -s /tmp/presto-ssl-ca.pem ]]; do | |
echo "Waiting to capture SSL CA" \ | |
&& openssl s_client -connect localhost:8443 2>/dev/null </dev/null | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' > /tmp/presto-ssl-ca.pem \ | |
&& sleep 1; | |
done | |
- name: Convert Presto CA from PEM to DER | |
run: openssl x509 -outform der -in /tmp/presto-ssl-ca.pem -out /tmp/presto-ssl-ca.der | |
- name: Add write permission on cacerts file | |
run: chmod u+w /tmp/cacerts-with-presto-ssl.jks | |
- name: Import Presto CA into temp cacerts file | |
run: >- | |
keytool -noprompt -import | |
-alias presto | |
-keystore /tmp/cacerts-with-presto-ssl.jks | |
-storepass changeit | |
-file /tmp/presto-ssl-ca.der | |
-trustcacerts | |
- name: Test Presto JDBC driver | |
uses: ./.github/actions/test-driver | |
with: | |
junit-name: 'be-tests-presto-jdbc-ee' | |
test-args: >- | |
:only-tags [:mb/driver-tests] | |
- name: Upload Test Results | |
uses: ./.github/actions/upload-test-results | |
if: always() | |
with: | |
input-path: ./target/junit/ | |
output-name: ${{ github.job }} | |
bucket: ${{ vars.AWS_S3_TEST_RESULTS_BUCKET }} | |
aws-access-key-id: ${{ secrets.AWS_TEST_RESULTS_ACCESS_KEY_ID }} | |
aws-secret-access-key: ${{ secrets.AWS_TEST_RESULTS_SECRET_ACCESS_KEY }} | |
aws-region: ${{ vars.AWS_REGION }} | |
trunk-api-token: ${{ secrets.TRUNK_API_TOKEN }} | |
be-tests-redshift-ee: | |
needs: files-changed | |
if: github.event.pull_request.draft == false && needs.files-changed.outputs.backend_all == 'true' | |
runs-on: ubuntu-22.04 | |
timeout-minutes: 90 | |
env: | |
CI: 'true' | |
DRIVERS: redshift | |
MB_REDSHIFT_TEST_USER: metabase_ci | |
MB_REDSHIFT_TEST_DB: testdb | |
MB_REDSHIFT_TEST_HOST: ${{ secrets.MB_REDSHIFT_TEST_HOST }} | |
MB_REDSHIFT_TEST_PASSWORD: ${{ secrets.MB_REDSHIFT_TEST_PASSWORD }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Test Redshift driver | |
uses: ./.github/actions/test-driver | |
with: | |
junit-name: 'be-tests-redshift-ee' | |
test-args: >- | |
:only-tags [:mb/driver-tests] | |
- name: Upload Test Results | |
uses: ./.github/actions/upload-test-results | |
if: always() | |
with: | |
input-path: ./target/junit/ | |
output-name: ${{ github.job }} | |
bucket: ${{ vars.AWS_S3_TEST_RESULTS_BUCKET }} | |
aws-access-key-id: ${{ secrets.AWS_TEST_RESULTS_ACCESS_KEY_ID }} | |
aws-secret-access-key: ${{ secrets.AWS_TEST_RESULTS_SECRET_ACCESS_KEY }} | |
aws-region: ${{ vars.AWS_REGION }} | |
trunk-api-token: ${{ secrets.TRUNK_API_TOKEN }} | |
be-tests-snowflake-ee: | |
needs: files-changed | |
if: github.event.pull_request.draft == false && needs.files-changed.outputs.backend_all == 'true' | |
runs-on: ubuntu-22.04 | |
timeout-minutes: 90 | |
env: | |
CI: 'true' | |
DRIVERS: snowflake | |
MB_SNOWFLAKE_TEST_USER: METABASE CI | |
MB_SNOWFLAKE_TEST_ACCOUNT: ${{ secrets.MB_SNOWFLAKE_TEST_ACCOUNT }} | |
MB_SNOWFLAKE_TEST_PASSWORD: ${{ secrets.MB_SNOWFLAKE_TEST_PASSWORD }} | |
MB_SNOWFLAKE_TEST_WAREHOUSE: ${{ secrets.MB_SNOWFLAKE_TEST_WAREHOUSE }} | |
MB_SNOWFLAKE_TEST_PK_USER: METABASE PK | |
MB_SNOWFLAKE_TEST_PK_PRIVATE_KEY: ${{ secrets.MB_SNOWFLAKE_TEST_PK_PRIVATE_KEY }} | |
# RSA Role testing: | |
MB_SNOWFLAKE_TEST_RSA_ROLE_TEST_DEFAULT_USER: RSA_ROLE_TEST_DEFAULT_USER | |
MB_SNOWFLAKE_TEST_RSA_ROLE_TEST_CUSTOM_USER: RSA_ROLE_TEST_CUSTOM_USER | |
MB_SNOWFLAKE_TEST_RSA_ROLE_TEST_ROLE: RSA_ROLE_TEST_ROLE | |
MB_SNOWFLAKE_TEST_RSA_ROLE_TEST_DB: RSA_ROLE_TEST_DB | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Test Snowflake driver | |
uses: ./.github/actions/test-driver | |
with: | |
junit-name: 'be-tests-snowflake-ee' | |
test-args: >- | |
:only-tags [:mb/driver-tests] | |
- name: Upload Test Results | |
uses: ./.github/actions/upload-test-results | |
if: always() | |
with: | |
input-path: ./target/junit/ | |
output-name: ${{ github.job }} | |
bucket: ${{ vars.AWS_S3_TEST_RESULTS_BUCKET }} | |
aws-access-key-id: ${{ secrets.AWS_TEST_RESULTS_ACCESS_KEY_ID }} | |
aws-secret-access-key: ${{ secrets.AWS_TEST_RESULTS_SECRET_ACCESS_KEY }} | |
aws-region: ${{ vars.AWS_REGION }} | |
trunk-api-token: ${{ secrets.TRUNK_API_TOKEN }} | |
be-tests-sparksql-ee: | |
needs: files-changed | |
if: github.event.pull_request.draft == false && needs.files-changed.outputs.backend_all == 'true' | |
runs-on: ubuntu-22.04 | |
timeout-minutes: 90 | |
env: | |
CI: 'true' | |
DRIVERS: sparksql | |
services: | |
sparksql: | |
image: metabase/spark:3.2.1 | |
ports: | |
- "10000:10000" | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Test Spark driver | |
uses: ./.github/actions/test-driver | |
with: | |
junit-name: 'be-tests-sparksql-ee' | |
test-args: >- | |
:only-tags [:mb/driver-tests] | |
- name: Upload Test Results | |
uses: ./.github/actions/upload-test-results | |
if: always() | |
with: | |
input-path: ./target/junit/ | |
output-name: ${{ github.job }} | |
bucket: ${{ vars.AWS_S3_TEST_RESULTS_BUCKET }} | |
aws-access-key-id: ${{ secrets.AWS_TEST_RESULTS_ACCESS_KEY_ID }} | |
aws-secret-access-key: ${{ secrets.AWS_TEST_RESULTS_SECRET_ACCESS_KEY }} | |
aws-region: ${{ vars.AWS_REGION }} | |
trunk-api-token: ${{ secrets.TRUNK_API_TOKEN }} | |
be-tests-sqlite-ee: | |
needs: files-changed | |
if: github.event.pull_request.draft == false && needs.files-changed.outputs.backend_all == 'true' | |
runs-on: ubuntu-22.04 | |
timeout-minutes: 90 | |
env: | |
CI: 'true' | |
DRIVERS: sqlite | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Test SQLite driver | |
uses: ./.github/actions/test-driver | |
with: | |
junit-name: 'be-tests-sqlite-ee' | |
test-args: >- | |
:only-tags [:mb/driver-tests] | |
- name: Upload Test Results | |
uses: ./.github/actions/upload-test-results | |
if: always() | |
with: | |
input-path: ./target/junit/ | |
output-name: ${{ github.job }} | |
bucket: ${{ vars.AWS_S3_TEST_RESULTS_BUCKET }} | |
aws-access-key-id: ${{ secrets.AWS_TEST_RESULTS_ACCESS_KEY_ID }} | |
aws-secret-access-key: ${{ secrets.AWS_TEST_RESULTS_SECRET_ACCESS_KEY }} | |
aws-region: ${{ vars.AWS_REGION }} | |
trunk-api-token: ${{ secrets.TRUNK_API_TOKEN }} | |
be-tests-sqlserver-2017-ee: | |
needs: files-changed | |
if: github.event.pull_request.draft == false && needs.files-changed.outputs.backend_all == 'true' | |
runs-on: ubuntu-20.04 | |
timeout-minutes: 90 | |
env: | |
CI: 'true' | |
DRIVERS: sqlserver | |
MB_SQLSERVER_TEST_HOST: localhost | |
MB_SQLSERVER_TEST_PASSWORD: 'P@ssw0rd' | |
MB_SQLSERVER_TEST_USER: SA | |
services: | |
sqlserver: | |
image: mcr.microsoft.com/mssql/server:2017-latest | |
ports: | |
- "1433:1433" | |
env: | |
ACCEPT_EULA: Y | |
SA_PASSWORD: 'P@ssw0rd' | |
MSSQL_MEMORY_LIMIT_MB: 1024 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Test MS SQL Server 2017 driver | |
uses: ./.github/actions/test-driver | |
with: | |
junit-name: 'be-tests-sqlserver-ee' | |
test-args: >- | |
:only-tags [:mb/driver-tests] | |
- name: Upload Test Results | |
uses: ./.github/actions/upload-test-results | |
if: always() | |
with: | |
input-path: ./target/junit/ | |
output-name: ${{ github.job }} | |
bucket: ${{ vars.AWS_S3_TEST_RESULTS_BUCKET }} | |
aws-access-key-id: ${{ secrets.AWS_TEST_RESULTS_ACCESS_KEY_ID }} | |
aws-secret-access-key: ${{ secrets.AWS_TEST_RESULTS_SECRET_ACCESS_KEY }} | |
aws-region: ${{ vars.AWS_REGION }} | |
trunk-api-token: ${{ secrets.TRUNK_API_TOKEN }} | |
be-tests-sqlserver-2022-ee: | |
needs: files-changed | |
if: github.event.pull_request.draft == false && needs.files-changed.outputs.backend_all == 'true' | |
runs-on: ubuntu-22.04 | |
timeout-minutes: 90 | |
env: | |
CI: 'true' | |
DRIVERS: sqlserver | |
MB_SQLSERVER_TEST_HOST: localhost | |
MB_SQLSERVER_TEST_PASSWORD: 'P@ssw0rd' | |
MB_SQLSERVER_TEST_USER: SA | |
services: | |
sqlserver: | |
image: mcr.microsoft.com/mssql/server:2022-latest | |
ports: | |
- "1433:1433" | |
env: | |
ACCEPT_EULA: Y | |
SA_PASSWORD: 'P@ssw0rd' | |
MSSQL_MEMORY_LIMIT_MB: 1024 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Test MS SQL Server 2022 driver | |
uses: ./.github/actions/test-driver | |
with: | |
junit-name: 'be-tests-sqlserver-2022-ee' | |
test-args: >- | |
:only-tags [:mb/driver-tests] | |
- name: Upload Test Results | |
uses: ./.github/actions/upload-test-results | |
if: always() | |
with: | |
input-path: ./target/junit/ | |
output-name: ${{ github.job }} | |
bucket: ${{ vars.AWS_S3_TEST_RESULTS_BUCKET }} | |
aws-access-key-id: ${{ secrets.AWS_TEST_RESULTS_ACCESS_KEY_ID }} | |
aws-secret-access-key: ${{ secrets.AWS_TEST_RESULTS_SECRET_ACCESS_KEY }} | |
aws-region: ${{ vars.AWS_REGION }} | |
trunk-api-token: ${{ secrets.TRUNK_API_TOKEN }} | |
be-tests-vertica-ee: | |
needs: files-changed | |
if: github.event.pull_request.draft == false && needs.files-changed.outputs.backend_all == 'true' | |
runs-on: ubuntu-22.04 | |
timeout-minutes: 90 | |
env: | |
CI: 'true' | |
DRIVERS: vertica | |
services: | |
vertica: | |
image: vertica/vertica-ce:12.0.2-0 | |
ports: | |
- "5433:5433" | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Make plugins directory | |
run: mkdir plugins | |
- name: Test Vertica driver | |
uses: ./.github/actions/test-driver | |
with: | |
junit-name: 'be-tests-vertica-ee' | |
test-args: >- | |
:only-tags [:mb/driver-tests] | |
- name: Upload Test Results | |
uses: ./.github/actions/upload-test-results | |
if: always() | |
with: | |
input-path: ./target/junit/ | |
output-name: ${{ github.job }} | |
bucket: ${{ vars.AWS_S3_TEST_RESULTS_BUCKET }} | |
aws-access-key-id: ${{ secrets.AWS_TEST_RESULTS_ACCESS_KEY_ID }} | |
aws-secret-access-key: ${{ secrets.AWS_TEST_RESULTS_SECRET_ACCESS_KEY }} | |
aws-region: ${{ vars.AWS_REGION }} | |
trunk-api-token: ${{ secrets.TRUNK_API_TOKEN }} | |
# Dummy job generator to spit out fake runs for matrix jobs we skipped. See | |
# https://github.com/orgs/community/discussions/9141 and | |
# https://metaboat.slack.com/archives/C0669P4AF9N/p1732315370301059 | |
be-driver-tests-skipped-stub: | |
needs: files-changed | |
if: | | |
!cancelled() && | |
(github.event.pull_request.draft == true || | |
needs.files-changed.outputs.backend_all == 'false') | |
strategy: | |
matrix: | |
job: | |
- "Test Postgres 12.x (App DB Tests)" | |
- "Test Postgres 12.x (Driver Tests)" | |
- "Test Postgres Latest (App DB Tests)" | |
- "Test Postgres Latest (Driver Tests)" | |
- "be-tests-mariadb-10-2-ee (0)" | |
- "be-tests-mariadb-10-2-ee (1)" | |
- "be-tests-mariadb-10-2-ee (2)" | |
- "be-tests-mariadb-10-2-ee (3)" | |
- "be-tests-mariadb-latest-ee (0)" | |
- "be-tests-mariadb-latest-ee (1)" | |
- "be-tests-mariadb-latest-ee (2)" | |
- "be-tests-mariadb-latest-ee (3)" | |
- "be-tests-mysql-8-0-ee (0)" | |
- "be-tests-mysql-8-0-ee (1)" | |
- "be-tests-mysql-8-0-ee (2)" | |
- "be-tests-mysql-8-0-ee (3)" | |
- "be-tests-mysql-latest-ee (0)" | |
- "be-tests-mysql-latest-ee (1)" | |
- "be-tests-mysql-latest-ee (2)" | |
- "be-tests-mysql-latest-ee (3)" | |
name: ${{ matrix.job }} | |
runs-on: ubuntu-22.04 | |
steps: | |
- run: >- | |
echo 'Skipping job due to conditional filtering' |