Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
ci: Test upgrade-postgresql on Ubuntu 20.04.
Anders Kaseorgd035efd4675b
diff --git a/.github/workflows/production-suite.yml b/.github/workflows/production-suite.ymlindex caec1aefee2..de3e0fa0ffa 100644--- a/.github/workflows/production-suite.yml+++ b/.github/workflows/production-suite.yml@@ -197,19 +197,19 @@ jobs:run: sudo /tmp/production-verify ${{ matrix.extra-args }}- name: Install pgroonga- if: ${{ matrix.is_bionic }}+ if: ${{ matrix.os == 'focal' }}run: sudo /tmp/production-pgroonga- name: Verify install after installing pgroonga- if: ${{ matrix.is_bionic }}+ if: ${{ matrix.os == 'focal' }}run: sudo /tmp/production-verify ${{ matrix.extra-args }}- name: Upgrade postgresql- if: ${{ matrix.is_bionic }}+ if: ${{ matrix.os == 'focal' }}run: sudo /tmp/production-upgrade-pg- name: Verify install after upgrading postgresql- if: ${{ matrix.is_bionic }}+ if: ${{ matrix.os == 'focal' }}run: sudo /tmp/production-verify ${{ matrix.extra-args }}- name: Report statusdiff --git a/tools/ci/production-install b/tools/ci/production-installindex 13947bec1a9..7dbf4e36e32 100755--- a/tools/ci/production-install+++ b/tools/ci/production-install@@ -61,8 +61,8 @@ os_info="$(read -r os_version_id} <<<"$os_info"-# Pin to PostgreSQL 10 on Bionic, so we can test upgrading it-if [ "$os_id $os_version_id" = 'ubuntu 18.04' ]; then+# Pin to PostgreSQL 10 on Ubuntu 20.04, so we can test upgrading it+if [ "$os_id $os_version_id" = 'ubuntu 20.04' ]; thenexport POSTGRESQL_VERSION=10fi@@ -75,7 +75,7 @@ else"$ZULIP_PATH"/scripts/setup/install --self-signed-cert --hostname 127.0.0.1 --email [email protected] --postgresql-database-user zulipcustomuser --postgresql-database-name zulipcustomdbfi-if [ "$os_id $os_version_id" = 'ubuntu 18.04' ]; then+if [ "$os_id $os_version_id" = 'ubuntu 20.04' ]; thenif [ "$(crudini --get /etc/zulip/zulip.conf postgresql version)" != "10" ]; thenecho "Installer did not install the PostgreSQL 10 that we asked for!"exit 1