diff --git a/.github/workflows/production-suite.yml b/.github/workflows/production-suite.yml index 9c7838a19c..9fe81d80fc 100644 --- a/.github/workflows/production-suite.yml +++ b/.github/workflows/production-suite.yml @@ -163,6 +163,7 @@ jobs: # Since actions/download-artifact@v2 loses all the permissions # of the tarball uploaded by the upload artifact fix those. chmod +x /tmp/production-upgrade-pg + chmod +x /tmp/production-pgroonga chmod +x /tmp/production-install chmod +x /tmp/production-verify chmod +x /tmp/send-failure-message @@ -195,6 +196,14 @@ jobs: - name: Verify install run: sudo /tmp/production-verify + - name: Install pgroonga + if: ${{ matrix.is_bionic }} + run: sudo /tmp/production-pgroonga + + - name: Verify install after installing pgroonga + if: ${{ matrix.is_bionic }} + run: sudo /tmp/production-verify + - name: Upgrade postgresql if: ${{ matrix.is_bionic }} run: sudo /tmp/production-upgrade-pg diff --git a/tools/ci/production-build b/tools/ci/production-build index e4b94fde27..7e8b70b826 100755 --- a/tools/ci/production-build +++ b/tools/ci/production-build @@ -37,6 +37,7 @@ cp -a \ tools/ci/production-install \ tools/ci/production-verify \ tools/ci/production-upgrade \ + tools/ci/production-pgroonga \ tools/ci/production-upgrade-pg \ tools/ci/send-failure-message \ package.json yarn.lock \ diff --git a/tools/ci/production-pgroonga b/tools/ci/production-pgroonga new file mode 100644 index 0000000000..2b70e4967a --- /dev/null +++ b/tools/ci/production-pgroonga @@ -0,0 +1,14 @@ +#!/usr/bin/env bash +# This tests installing the pgroonga extension +set -e +set -x + +crudini --set /etc/zulip/zulip.conf machine pgroonga enabled +/home/zulip/deployments/current/scripts/zulip-puppet-apply -f +echo 'USING_PGROONGA = True' >>/etc/zulip/settings.py +su zulip -c '/home/zulip/deployments/current/manage.py migrate pgroonga' + +su zulip -c /home/zulip/deployments/current/scripts/restart-server + +echo 'Installation of pgroonga complete!' +exit 0