From d34af2af4befbe163d4d4534119d57a4911872fc Mon Sep 17 00:00:00 2001 From: Sven Klemm Date: Sat, 17 Apr 2021 02:43:39 +0200 Subject: [PATCH] Fix windows CI PG13 failure Installing the postgres13 windows package pulled in an install of vcredist140 which requires a reboot making chocolatey return with a non-zero exit code to signal the required reboot. This patch changes chocolatey to no longer give individual packages control over chocolatey exit code. This patch also changes chocolatey to longer show package download progress information to make the CI log less spammy. --- .github/workflows/windows-build-and-test.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/windows-build-and-test.yaml b/.github/workflows/windows-build-and-test.yaml index dd337f9c395..23d5b06ef73 100644 --- a/.github/workflows/windows-build-and-test.yaml +++ b/.github/workflows/windows-build-and-test.yaml @@ -44,7 +44,10 @@ jobs: key: ${{ runner.os }}-build-pg${{ matrix.pkg_version }} - name: Install PostgreSQL ${{ matrix.pg }} if: steps.cache-postgresql.outputs.cache-hit != 'true' - run: choco install postgresql${{ matrix.pg }} --version ${{ matrix.pkg_version }} --force -y --install-args="'--prefix $HOME\PostgreSQL\${{ matrix.pg }} --extract-only yes'" + run: | + choco feature disable --name=usePackageExitCodes + choco feature disable --name=showDownloadProgress + choco install postgresql${{ matrix.pg }} --version ${{ matrix.pkg_version }} --force -y --install-args="'--prefix $HOME\PostgreSQL\${{ matrix.pg }} --extract-only yes'" - name: Configure [${{ matrix.build_type }}] run: cmake -B ${{ matrix.build_type }} -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} -DREGRESS_CHECKS=OFF -DPG_PATH="$HOME/PostgreSQL/${{ matrix.pg }}" -DOPENSSL_ROOT_DIR="$HOME/PostgreSQL/${{ matrix.pg }}" # Build step: could potentially speed things up with --parallel