-
Notifications
You must be signed in to change notification settings - Fork 213
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update and restore engine versions and tests
Restore the coverage tests and update the versions tested for all the database engines. * Test Exasol 7.0, 7.1, and 8 with its v24 clients and update the error-checking regular expression to support it. * Update the Exasol test to detect apparent connection failures and try again for up to 30 seconds before failing. This lets the Exasol tests run consistently. Technique borrowed from the Vertica tests (fcd7fe1). * Use `SSLCERTIFICATE` instead of `SSLCertificate` to be consistent with the the Exasol ODBC docs. * Upgrade Instant Client to v23.6.24.10 and install libaio1t64 for Oracle and create a symnlink so that Instant Client can find it. * Upgrade SnowSQL to 1.2.21 and Snowflake ODBC to 3.5.0. * Upgrade the Vertica client to v24.2.0 and test on Vertica vefsions 7.2 - 24.1. * Switch to a new Docker image for Firebird and use it to test versions 3-5. Continue using the old one to test v2.5. * Update the coverage tests to clear more disk space, improving the chances that the tests will finish. * Test MySQL v5.5-9.1 and MariaDB v10.0-11.6 * Add Perl 5.40 testing * Add Postgres 17 testing * Add SQLite testing for v3.43-3.47 * Add Vertica v23-24 testing * Add Yugabyte v2.20, 2.21, 2.22, 2.23, 2024.1, and 2024.2 testing * Teach the IPC methios in Sqitch.pm to raise App::Sqitch::X exceptions instead of strings for more consistent error handling (esp. in tests). * Add `DBIEngine->_error_handler` and always pass it to `DBI->connect`, replacing redundant and inconsistenlty-applied `HandleError` functions. * Change `DBIEngineTest->run` to always expect error objects, now that the IPC methods raise them and tests use ``DBIEngine->_error_handler` to get connection failure exception objects. * Add some hijinks to `t/lib/TestConfig.pm` to suppress warnings from Locale::Messages on newer Perls (workaround for gflohr/libintl-perl#14). * Fix a bunch of shellcheck warnings.
- Loading branch information
Showing
44 changed files
with
250 additions
and
201 deletions.
There are no files selected for viewing
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
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
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
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,10 +18,10 @@ jobs: | |
ports: [ 8563 ] | ||
options: --privileged | ||
firebird: | ||
image: jacobalberty/firebird:latest | ||
image: ghcr.io/fdcastel/firebird:latest | ||
ports: [ 3050 ] | ||
env: | ||
ISC_PASSWORD: nix | ||
FIREBIRD_ROOT_PASSWORD: nix | ||
FIREBIRD_DATABASE: sqitchtest.db | ||
mysql: | ||
image: mysql:latest | ||
|
@@ -44,9 +44,9 @@ jobs: | |
image: vertica/vertica-ce:latest | ||
ports: [ 5433 ] | ||
steps: | ||
# https://github.com/orgs/community/discussions/25678#discussioncomment-5242449 | ||
# https://github.com/orgs/community/discussions/25678#discussioncomment-9017167 | ||
- name: Free Disk Space | ||
run: rm -rf /opt/hostedtoolcache | ||
run: find /opt -maxdepth 1 -mindepth 1 '!' -path ./containerd '!' -path ./actionarchivecache '!' -path ./runner '!' -path ./runner-cache -exec rm -rf '{}' ';' | ||
- name: Start CockroachDB | ||
run: docker run -d -p 26257:26257 cockroachdb/cockroach:latest start-single-node --insecure | ||
- uses: actions/checkout@v4 | ||
|
@@ -81,9 +81,9 @@ jobs: | |
PERL5LIB: "${{ github.workspace }}/local/lib/perl5" | ||
HARNESS_PERL_SWITCHES: -MDevel::Cover=-ignore,^(?:x?t|inc|bin|local)/ | ||
LIVE_EXASOL_REQUIRED: true | ||
SQITCH_TEST_EXASOL_URI: db:exasol://sys:[email protected]:${{ job.services.exasol.ports[8563] }}/?Driver=Exasol;SSLCertificate=SSL_VERIFY_NONE | ||
SQITCH_TEST_EXASOL_URI: db:exasol://sys:[email protected]:${{ job.services.exasol.ports[8563] }}/?Driver=Exasol;SSLCERTIFICATE=SSL_VERIFY_NONE | ||
LIVE_FIREBIRD_REQUIRED: true | ||
SQITCH_TEST_FIREBIRD_URI: db:firebird://sysdba:[email protected]:${{ job.services.firebird.ports[3050] }}//firebird/data/sqitchtest.db | ||
SQITCH_TEST_FIREBIRD_URI: db:firebird://sysdba:[email protected]:${{ job.services.firebird.ports[3050] }}//var/lib/firebird/data/sqitchtest.db | ||
LIVE_MYSQL_REQUIRED: true | ||
SQITCH_TEST_MYSQL_URI: "db:mysql://[email protected]:${{ job.services.mysql.ports[3306] }}/information_schema" | ||
LIVE_ORACLE_REQUIRED: true | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,7 @@ jobs: | |
Exasol: | ||
strategy: | ||
matrix: | ||
exasol: ['7.1', '7.0'] | ||
exasol: ['8', '7.1', '7.0'] | ||
name: ☀️ Exasol ${{ matrix.exasol }} | ||
runs-on: ubuntu-latest | ||
services: | ||
|
@@ -38,5 +38,5 @@ jobs: | |
env: | ||
PERL5LIB: "${{ github.workspace }}/local/lib/perl5" | ||
LIVE_EXASOL_REQUIRED: true | ||
SQITCH_TEST_EXASOL_URI: db:exasol://sys:[email protected]:${{ job.services.exasol.ports[8563] }}/?Driver=Exasol;SSLCertificate=SSL_VERIFY_NONE | ||
SQITCH_TEST_EXASOL_URI: db:exasol://sys:[email protected]:${{ job.services.exasol.ports[8563] }}/?Driver=Exasol;SSLCERTIFICATE=SSL_VERIFY_NONE | ||
run: prove -lvr t/exasol.t |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,21 +12,23 @@ jobs: | |
strategy: | ||
matrix: | ||
include: | ||
- { version: '4.0' } | ||
- { version: '3.0' } | ||
- { version: '2.5-ss' } | ||
- { version: '2.5-sc' } | ||
- { version: '5', image: ghcr.io/fdcastel/firebird, dir: /var/lib/firebird/data } | ||
- { version: '4', image: ghcr.io/fdcastel/firebird, dir: /var/lib/firebird/data } | ||
- { version: '3', image: ghcr.io/fdcastel/firebird, dir: /var/lib/firebird/data } | ||
- { version: '2.5-ss', image: jacobalberty/firebird, dir: /firebird/data } # deprecated | ||
- { version: '2.5-sc', image: jacobalberty/firebird, dir: /firebird/data } # deprecated | ||
name: 🔥 Firebird ${{ matrix.version }} | ||
runs-on: ubuntu-latest | ||
services: | ||
# Run the Firebird service in a container we can connect to. Means that the | ||
# CLI and libraries DBD::firebird use are static to the version on the runner | ||
# machine. | ||
firebird: | ||
image: jacobalberty/firebird:${{ matrix.version }} | ||
image: ${{ matrix.image }}:${{ matrix.version }} | ||
ports: [ 3050 ] | ||
env: | ||
ISC_PASSWORD: nix | ||
ISC_PASSWORD: nix # for jacobalberty/firebird only | ||
FIREBIRD_ROOT_PASSWORD: nix | ||
FIREBIRD_DATABASE: sqitchtest.db | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
@@ -47,5 +49,5 @@ jobs: | |
env: | ||
PERL5LIB: "${{ github.workspace }}/local/lib/perl5" | ||
LIVE_FIREBIRD_REQUIRED: true | ||
SQITCH_TEST_FIREBIRD_URI: db:firebird://sysdba:[email protected]:${{ job.services.firebird.ports[3050] }}//firebird/data/sqitchtest.db | ||
SQITCH_TEST_FIREBIRD_URI: db:firebird://sysdba:[email protected]:${{ job.services.firebird.ports[3050] }}/${{ matrix.dir }}/sqitchtest.db | ||
run: prove -lvr t/firebird.t |
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
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
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
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
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
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
Oops, something went wrong.