From 6f8fb6f49dd42638a3cc802b4383978c1f95ee17 Mon Sep 17 00:00:00 2001 From: Akshay Joshi Date: Wed, 11 Dec 2024 18:56:24 +0530 Subject: [PATCH] pgAgent for EPAS is no more supported from v17, so changing the github actions accordingly. --- .github/workflows/run-feature-tests-epas.yml | 7 ++++++- .github/workflows/run-python-tests-epas.yml | 9 +++++++-- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/.github/workflows/run-feature-tests-epas.yml b/.github/workflows/run-feature-tests-epas.yml index be9a158d403..20f50160b3e 100644 --- a/.github/workflows/run-feature-tests-epas.yml +++ b/.github/workflows/run-feature-tests-epas.yml @@ -35,7 +35,12 @@ jobs: - name: Install platform dependencies run: | sudo apt update - sudo apt install -y libpq-dev libffi-dev libssl-dev libkrb5-dev zlib1g-dev edb-as${{ matrix.pgver }}-server edb-as${{ matrix.pgver }}-server-pldebugger edb-as${{ matrix.pgver }}-pgagent + sudo apt install -y libpq-dev libffi-dev libssl-dev libkrb5-dev zlib1g-dev edb-as${{ matrix.pgver }}-server edb-as${{ matrix.pgver }}-server-pldebugger + + - name: Install pgagent on Linux + if: ${{ matrix.os == 'ubuntu-22.04' && matrix.pgver <= 16 }} + run: | + sudo apt install -y edb-as${{ matrix.pgver }}-pgagent - name: Create the tablespace directory run: | diff --git a/.github/workflows/run-python-tests-epas.yml b/.github/workflows/run-python-tests-epas.yml index edbc139a863..93a4a5cae23 100644 --- a/.github/workflows/run-python-tests-epas.yml +++ b/.github/workflows/run-python-tests-epas.yml @@ -48,7 +48,12 @@ jobs: if: ${{ matrix.os == 'ubuntu-22.04' }} run: | sudo apt update - sudo apt install -y libpq-dev libffi-dev libssl-dev libkrb5-dev zlib1g-dev edb-as${{ matrix.pgver }}-server edb-as${{ matrix.pgver }}-server-pldebugger edb-as${{ matrix.pgver }}-pgagent + sudo apt install -y libpq-dev libffi-dev libssl-dev libkrb5-dev zlib1g-dev edb-as${{ matrix.pgver }}-server edb-as${{ matrix.pgver }}-server-pldebugger + + - name: Install pgagent on Linux + if: ${{ matrix.os == 'ubuntu-22.04' && matrix.pgver <= 16 }} + run: | + sudo apt install -y edb-as${{ matrix.pgver }}-pgagent - name: Install platform dependencies on Windows if: ${{ matrix.os == 'windows-latest' }} @@ -77,7 +82,7 @@ jobs: shell: cmd - name: Add edb_job_scheduler into config file. - if: ${{ matrix.os == 'ubuntu-22.04' && matrix.pgver == 16 }} + if: ${{ matrix.os == 'ubuntu-22.04' && matrix.pgver >= 16 }} run: | sudo sed -i "s/shared_preload_libraries = '/shared_preload_libraries = '\$libdir\/edb_job_scheduler,/g" /etc/edb-as/${{ matrix.pgver }}/main/postgresql.conf sudo su -c "echo \"edb_job_scheduler.database_list = 'test_dbms_job_scheduler'\" >> /etc/edb-as/${{ matrix.pgver }}/main/postgresql.conf"