Skip to content

Commit

Permalink
Merge develop for v1.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
theory committed Aug 1, 2023
2 parents ff9aede + 44727b7 commit 30e29f5
Show file tree
Hide file tree
Showing 123 changed files with 2,203 additions and 1,224 deletions.
8 changes: 4 additions & 4 deletions .github/ubuntu/exasol.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ mkdir -p /opt/exasol

# Download and unpack Exasol ODBC Driver & EXAplus.
# https://www.exasol.com/portal/display/DOWNLOAD/
curl -sSLO https://www.exasol.com/support/secure/attachment/186326/EXASOL_ODBC-7.1.5.tar.gz
curl -sSLO https://www.exasol.com/support/secure/attachment/179176/EXAplus-7.1.4.tar.gz
sudo tar -xzf EXASOL_ODBC-7.1.5.tar.gz -C /opt/exasol --strip-components 1
sudo tar -xzf EXAplus-7.1.4.tar.gz -C /opt/exasol --strip-components 1
curl -sSLO https://x-up.s3.amazonaws.com/7.x/7.1.17/EXASOL_ODBC-7.1.17.tar.gz
curl -sSLO https://x-up.s3.amazonaws.com/7.x/7.1.17/EXAplus-7.1.17.tar.gz
sudo tar -xzf EXASOL_ODBC-7.1.17.tar.gz -C /opt/exasol --strip-components 1
sudo tar -xzf EXAplus-7.1.17.tar.gz -C /opt/exasol --strip-components 1

# Add to the path.
if [[ ! -z "$GITHUB_PATH" ]]; then
Expand Down
4 changes: 2 additions & 2 deletions .github/ubuntu/oracle.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

set -e

version=21.3.0.0.0
icdr=213000
version=21.9.0.0.0dbru
icdr=219000

# Install bsdtar, required to get --strip-components for a zip file.
if [ -z "$SKIP_DEPENDS" ]; then
Expand Down
2 changes: 1 addition & 1 deletion .github/ubuntu/pg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ PGVERSION=${PGVERSION:=${1:-14}}
[[ $PGVERSION =~ ^[0-9]$ ]] && PGVERSION+=.0

curl -O https://salsa.debian.org/postgresql/postgresql-common/-/raw/master/pgdg/apt.postgresql.org.sh
sudo sh apt.postgresql.org.sh -i -v $PGVERSION
sudo sh apt.postgresql.org.sh -i -t -v $PGVERSION
sudo pg_createcluster --start $PGVERSION test -p 5432 --locale=C -- -A trust -E UTF8

if [[ ! -z "$GITHUB_PATH" ]]; then
Expand Down
7 changes: 5 additions & 2 deletions .github/ubuntu/sqlite.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

set -e

SQLITE=${SQLITE:=${1:-3.36.0}}
SQLITE=${SQLITE:=${1:-3.40.1}}
echo "Instaling SQLite $SQLITE"

# Convert to the SQLITE_VERSION_NUMBER format https://sqlite.org/c3ref/c_source_id.html
SQLITE=$(perl -e 'my @v = split /[.]/, shift; printf "%d%02d%02d%02d\n", @v[0..3]' $SQLITE)
Expand All @@ -11,7 +12,9 @@ SQLITE=$(perl -e 'my @v = split /[.]/, shift; printf "%d%02d%02d%02d\n", @v[0..3
# 3.18.2, 3.18.1, 3.9.3, and 3.7.11 missing.
# https://sqlite.org/chronology.html
# https://stackoverflow.com/a/37712117/79202
if (( $SQLITE >= 3340100 )); then YEAR=2021
if (( $SQLITE >= 3400200 )); then YEAR=2023
elif (( $SQLITE >= 3370200 )); then YEAR=2022
elif (( $SQLITE >= 3340100 )); then YEAR=2021
elif (( $SQLITE >= 3310000 )); then YEAR=2020
elif (( $SQLITE >= 3270000 )); then YEAR=2019
elif (( $SQLITE >= 3220000 )); then YEAR=2018
Expand Down
4 changes: 2 additions & 2 deletions .github/ubuntu/vertica.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ fi
cat t/odbc/vertica.ini | sudo tee -a /etc/vertica.ini

# https://www.vertica.com/download/vertica/client-drivers/
curl -sSLO https://www.vertica.com/client_drivers/11.0.x/11.0.1-0/vertica-client-11.0.1-0.x86_64.tar.gz
sudo tar -xzf vertica-client-11.0.1-0.x86_64.tar.gz -C /
curl -sSLO https://www.vertica.com/client_drivers/12.0.x/12.0.3-0/vertica-client-12.0.3-0.x86_64.tar.gz
sudo tar -xzf vertica-client-12.0.3-0.x86_64.tar.gz -C /

if [[ ! -z "$GITHUB_PATH" ]]; then
echo "/opt/vertica/bin" >> $GITHUB_PATH
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/cockroach.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,20 @@ jobs:
Cockroach:
strategy:
matrix:
version: ['22.1', '21.2']
# curl https://registry.hub.docker.com/v2/repositories/cockroachdb/cockroach/tags\?page_size\=10000 | jq '.results[].name
version: ['23.1', '22.2', '21.2']
name: 🪳 Cockroach ${{ matrix.version }}
runs-on: ubuntu-latest
steps:
- name: Start CockroachDB
run: docker run -d -p 26257:26257 cockroachdb/cockroach:latest-v${{ matrix.version }} start-single-node --insecure
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Setup Perl
id: perl
uses: shogo82148/actions-setup-perl@v1
with: { perl-version: latest }
- name: Cache CPAN Modules
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: local
key: perl-${{ steps.perl.outputs.perl-hash }}
Expand Down
29 changes: 16 additions & 13 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,24 @@ jobs:
image: vertica/vertica-ce:latest
ports: [ 5433 ]
steps:
# https://github.com/orgs/community/discussions/25678#discussioncomment-5242449
- name: Free Disk Space
run: rm -rf /opt/hostedtoolcache
- name: Start CockroachDB
run: docker run -d -p 26257:26257 cockroachdb/cockroach:latest start-single-node --insecure
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Setup Perl
id: perl
uses: shogo82148/actions-setup-perl@v1
with: { perl-version: latest }
- name: Cache CPAN Modules
uses: actions/cache@v3
with:
path: local
key: perl-${{ steps.perl.outputs.perl-hash }}
- name: Install SQLite
env: { PERL5LIB: "${{ github.workspace }}/local/lib/perl5" }
run: .github/ubuntu/sqlite.sh
- name: Setup Clients
env:
SKIP_DEPENDS: true
Expand All @@ -59,20 +74,8 @@ jobs:
.github/ubuntu/pg.sh
.github/ubuntu/snowflake.sh
.github/ubuntu/vertica.sh
- name: Setup Perl
id: perl
uses: shogo82148/actions-setup-perl@v1
with: { perl-version: latest }
- name: Cache CPAN Modules
uses: actions/cache@v2
with:
path: local
key: perl-${{ steps.perl.outputs.perl-hash }}
- run: cpm install --verbose --show-build-log-on-failure --no-test --with-recommends --cpanfile dist/cpanfile
- run: cpm install --verbose --show-build-log-on-failure --no-test --with-recommends DBI DBD::ODBC DBD::Firebird DBD::Oracle DBD::mysql DBD::Pg Devel::Cover Devel::Cover::Report::Coveralls
- name: Install SQLite
env: { PERL5LIB: "${{ github.workspace }}/local/lib/perl5" }
run: .github/ubuntu/sqlite.sh
- name: Run Tests
env:
PERL5LIB: "${{ github.workspace }}/local/lib/perl5"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/exasol.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@ jobs:
ports: [ 8563 ]
options: --privileged
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Setup Clients
run: .github/ubuntu/exasol.sh
- name: Setup Perl
id: perl
uses: shogo82148/actions-setup-perl@v1
with: { perl-version: latest }
- name: Cache CPAN Modules
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: local
key: perl-${{ steps.perl.outputs.perl-hash }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/firebird.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,15 @@ jobs:
ISC_PASSWORD: nix
FIREBIRD_DATABASE: sqitchtest.db
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Setup Clients
run: .github/ubuntu/firebird.sh
- name: Setup Perl
id: perl
uses: shogo82148/actions-setup-perl@v1
with: { perl-version: latest }
- name: Cache CPAN Modules
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: local
key: perl-${{ steps.perl.outputs.perl-hash }}
Expand Down
10 changes: 7 additions & 3 deletions .github/workflows/mysql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,14 @@ jobs:
strategy:
matrix:
include:
# curl https://registry.hub.docker.com/v2/repositories/library/mysql/tags\?page_size\=10000 | jq '.results[].name
- { version: '8.0', icon: 🐬, name: MySQL, image: mysql }
- { version: '5.7', icon: 🐬, name: MySQL, image: mysql }
- { version: '5.6', icon: 🐬, name: MySQL, image: mysql }
- { version: '5.5', icon: 🐬, name: MySQL, image: mysql }
# https://registry.hub.docker.com/v2/repositories/library/mariadb/tags\?page_size\=10000 | jq '.results[].name'
- { version: '11.0', icon: 🦭, name: MariaDB, image: mariadb }
- { version: '10.9', icon: 🦭, name: MariaDB, image: mariadb }
- { version: '10.6', icon: 🦭, name: MariaDB, image: mariadb }
- { version: '10.5', icon: 🦭, name: MariaDB, image: mariadb }
- { version: '10.4', icon: 🦭, name: MariaDB, image: mariadb }
Expand All @@ -33,17 +37,17 @@ jobs:
image: "${{ matrix.image }}:${{ matrix.version }}"
env: { MYSQL_ALLOW_EMPTY_PASSWORD: yes }
ports: [ 3306 ]
options: --health-cmd="mysqladmin ping" --health-interval=5s --health-timeout=2s --health-retries=3
options: --health-cmd="healthcheck.sh --innodb_initialized || mysqladmin ping --protocol=tcp" --health-interval=5s --health-timeout=2s --health-retries=3
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Setup Clients
run: .github/ubuntu/mysql.sh
- name: Setup Perl
id: perl
uses: shogo82148/actions-setup-perl@v1
with: { perl-version: latest }
- name: Cache CPAN Modules
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: local
key: perl-${{ steps.perl.outputs.perl-hash }}
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/oracle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ jobs:
# * Image Source: https://github.com/gvenzl/oci-oracle-xe/
# * Image Issue: https://github.com/gvenzl/oci-oracle-xe/issues/46
# * DBD::Oracle Issue: https://github.com/perl5-dbi/DBD-Oracle/issues/131
# https://registry.hub.docker.com/v2/repositories/gvenzl/oracle-xe/tags\?page_size\=10000 | jq '.results[].name
- { version: 21c, tag: 21, service: XE, altUser: dbsnmp }
- { version: 18c, tag: 18-slim, service: XE, altUser: gsmuser }
- { version: 11g, tag: 11-slim, service: XE, altuser: sqitchtest }
Expand All @@ -39,15 +40,15 @@ jobs:
--health-timeout 10s
--health-retries 10
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Setup Clients
run: .github/ubuntu/oracle.sh
- name: Setup Perl
id: perl
uses: shogo82148/actions-setup-perl@v1
with: { perl-version: latest }
- name: Cache CPAN Modules
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: local
key: perl-${{ steps.perl.outputs.perl-hash }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/os.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ jobs:
name: ${{ matrix.icon }} ${{ matrix.name }}
runs-on: ${{ matrix.os }}-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Setup Perl
id: perl
uses: shogo82148/actions-setup-perl@v1
with: { perl-version: latest }
- run: perl -V
- name: Cache CPAN Modules
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: local
key: perl-${{ steps.perl.outputs.perl-hash }}
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/perl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,29 +4,29 @@
name: 🧅 Perl
on:
push:
branches: [main, develop]
branches: [main, develop, "**perl**"]
pull_request:
branches: [main, develop]
branches: [main, develop, "**perl**"]
jobs:
Perl:
strategy:
matrix:
os: [[🐧, ubuntu], [🍎, macos], [🪟, windows]]
perl: [ '5.36', '5.34', '5.32', '5.30', '5.28', '5.26', '5.24', '5.22', '5.20', '5.18', '5.16', '5.14', '5.12' ]
perl: [ '5.38', '5.36', '5.34', '5.32', '5.30', '5.28', '5.26', '5.24', '5.22', '5.20', '5.18', '5.16', '5.14', '5.12' ]
exclude:
- { os: [🪟, windows], perl: '5.12' } # https://github.com/shogo82148/actions-setup-perl/issues/876
- { os: [🪟, windows], perl: '5.14' } # https://github.com/shogo82148/actions-setup-perl/issues/881
name: 🧅 Perl ${{ matrix.perl }} on ${{ matrix.os[0] }} ${{ matrix.os[1] }}
runs-on: ${{ matrix.os[1] }}-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Setup Perl
id: perl
uses: shogo82148/actions-setup-perl@v1
with: { perl-version: "${{ matrix.perl }}" }
- run: perl -V
- name: Cache CPAN Modules
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: local
key: perl-${{ steps.perl.outputs.perl-hash }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/pg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,17 @@ jobs:
Postgres:
strategy:
matrix:
pg: [14, 13, 12, 11, 10, 9.6, 9.5, 9.4, 9.3] #, 9.2, 9.1, 9.0, 8.4] https://github.com/bucardo/dbdpg/issues/84
pg: [16, 15, 14, 13, 12, 11, 10, 9.6, 9.5, 9.4, 9.3, 9.2, 9.1, '9.0', 8.4]
name: 🐘 Postgres ${{ matrix.pg }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Setup Perl
id: perl
uses: shogo82148/actions-setup-perl@v1
with: { perl-version: latest }
- name: Cache CPAN Modules
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: local
key: perl-${{ steps.perl.outputs.perl-hash }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Check out the repo
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Setup Perl
id: perl
uses: shogo82148/actions-setup-perl@v1
with: { perl-version: latest }
- name: Cache CPAN Modules
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: local
key: perl-${{ steps.perl.outputs.perl-hash }}
Expand Down Expand Up @@ -47,7 +47,7 @@ jobs:
DZIL_CONFIRMRELEASE_DEFAULT: "yes"
run: |
local/bin/dzil release
echo "::set-output name=tarball::$( ls App-Sqitch-*.tar.gz )"
echo "tarball=$( ls App-Sqitch-*.tar.gz )" >> $GITHUB_OUTPUT
- name: Generate Release Changes
run: xt/gen_release_changes
- name: Create GitHub Release
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/snowflake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ jobs:
name: ❄️ Snowflake
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Setup Clients
run: .github/ubuntu/snowflake.sh
- name: Setup Perl
id: perl
uses: shogo82148/actions-setup-perl@v1
with: { perl-version: latest }
- name: Cache CPAN Modules
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: local
key: perl-${{ steps.perl.outputs.perl-hash }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/sqlite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,17 @@ jobs:
strategy:
matrix:
# https://sqlite.org/chronology.html
sqlite: [3.36.0, 3.35.5, 3.34.1, 3.33.0, 3.32.3, 3.31.1, 3.30.1, 3.29.0, 3.28.0, 3.27.2, 3.26.0, 3.25.3, 3.24.0, 3.23.1, 3.22.0, 3.21.0, 3.20.1, 3.19.3, 3.18.0, 3.17.0, 3.16.2, 3.15.2, 3.14.2, 3.13.0, 3.12.2, 3.11.1, 3.10.2, 3.9.2, 3.8.11.1, 3.7.17]
sqlite: [3.42.0, 3.41.2, 3.40.1, 3.39.4, 3.38.5, 3.37.2, 3.36.0, 3.35.5, 3.34.1, 3.33.0, 3.32.3, 3.31.1, 3.30.1, 3.29.0, 3.28.0, 3.27.2, 3.26.0, 3.25.3, 3.24.0, 3.23.1, 3.22.0, 3.21.0, 3.20.1, 3.19.3, 3.18.0, 3.17.0, 3.16.2, 3.15.2, 3.14.2, 3.13.0, 3.12.2, 3.11.1, 3.10.2, 3.9.2, 3.8.11.1, 3.8.6]
name: 💡 SQLite ${{ matrix.sqlite }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Setup Perl
id: perl
uses: shogo82148/actions-setup-perl@v1
with: { perl-version: latest }
- name: Cache CPAN Modules
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: local
key: perl-${{ steps.perl.outputs.perl-hash }}
Expand Down
Loading

0 comments on commit 30e29f5

Please sign in to comment.