From 7829869dc713e7abfb23a62e458f1edf2deba99c Mon Sep 17 00:00:00 2001 From: Artem Gavrilov Date: Tue, 9 Apr 2024 14:05:58 +0200 Subject: [PATCH] Fix partition_prune testcase (#440) * Disable workflows * Disable pg_stat_monitor tests * Add no-locale to initdb * Try with enabled compute_query_id * Enable tests * Cleanup * Set compute_query_id parameter to regress mode * Revert "Disable workflows" This reverts commit f0b85b8b4ab5c9fddeaf7e29a45874d88c155017. * Fix pg 14 and 15 build workflows * Fix * Cleanup --- .github/workflows/postgresql-14-build.yml | 10 +++------- .github/workflows/postgresql-15-build.yml | 10 +++------- .github/workflows/postgresql-16-build.yml | 10 +++------- 3 files changed, 9 insertions(+), 21 deletions(-) diff --git a/.github/workflows/postgresql-14-build.yml b/.github/workflows/postgresql-14-build.yml index 2dc78f5b..b5c56ba2 100644 --- a/.github/workflows/postgresql-14-build.yml +++ b/.github/workflows/postgresql-14-build.yml @@ -83,12 +83,13 @@ jobs: sudo make USE_PGXS=1 install working-directory: src/pg_stat_monitor - - name: Load pg_stat_monitor library and Restart Server + - name: Configure and Restart Server run: | export PATH="/usr/lib/postgresql/14/bin:$PATH" pg_ctl -D /opt/pgsql/data -l logfile stop echo "shared_preload_libraries = 'pg_stat_monitor'" >> \ /opt/pgsql/data/postgresql.conf + echo "compute_query_id = regress" >> /opt/pgsql/data/postgresql.conf pg_ctl -D /opt/pgsql/data -l logfile start working-directory: src/pg_stat_monitor @@ -126,12 +127,7 @@ jobs: retention-days: 3 - name: Start Server installcheck-world tests - run: | - export PATH="/usr/lib/postgresql/14/bin:$PATH" - pg_ctl -D /opt/pgsql/data -l logfile stop - echo "compute_query_id = off" >> /opt/pgsql/data/postgresql.conf - pg_ctl -D /opt/pgsql/data -l logfile start - make installcheck-world + run: make installcheck-world - name: Report on installcheck-world test suites fail uses: actions/upload-artifact@v2 diff --git a/.github/workflows/postgresql-15-build.yml b/.github/workflows/postgresql-15-build.yml index 08a7270a..1fd4a93f 100644 --- a/.github/workflows/postgresql-15-build.yml +++ b/.github/workflows/postgresql-15-build.yml @@ -83,12 +83,13 @@ jobs: sudo make USE_PGXS=1 install working-directory: src/pg_stat_monitor - - name: Load pg_stat_monitor library and Restart Server + - name: Configure and Restart Server run: | export PATH="/usr/lib/postgresql/15/bin:$PATH" pg_ctl -D /opt/pgsql/data -l logfile stop echo "shared_preload_libraries = 'pg_stat_monitor'" >> \ /opt/pgsql/data/postgresql.conf + echo "compute_query_id = regress" >> /opt/pgsql/data/postgresql.conf pg_ctl -D /opt/pgsql/data -l logfile start working-directory: src/pg_stat_monitor @@ -126,12 +127,7 @@ jobs: retention-days: 3 - name: Start Server installcheck-world tests - run: | - export PATH="/usr/lib/postgresql/15/bin:$PATH" - pg_ctl -D /opt/pgsql/data -l logfile stop - echo "compute_query_id = off" >> /opt/pgsql/data/postgresql.conf - pg_ctl -D /opt/pgsql/data -l logfile start - make installcheck-world + run: make installcheck-world - name: Report on installcheck-world test suites fail uses: actions/upload-artifact@v2 diff --git a/.github/workflows/postgresql-16-build.yml b/.github/workflows/postgresql-16-build.yml index d94282a6..98fa051e 100644 --- a/.github/workflows/postgresql-16-build.yml +++ b/.github/workflows/postgresql-16-build.yml @@ -83,12 +83,13 @@ jobs: sudo make USE_PGXS=1 install working-directory: src/pg_stat_monitor - - name: Load pg_stat_monitor library and Restart Server + - name: Configure and Restart Server run: | export PATH="/usr/lib/postgresql/16/bin:$PATH" pg_ctl -D /opt/pgsql/data -l logfile stop echo "shared_preload_libraries = 'pg_stat_monitor'" >> \ /opt/pgsql/data/postgresql.conf + echo "compute_query_id = regress" >> /opt/pgsql/data/postgresql.conf pg_ctl -D /opt/pgsql/data -l logfile start working-directory: src/pg_stat_monitor @@ -126,12 +127,7 @@ jobs: retention-days: 3 - name: Start Server installcheck-world tests - run: | - export PATH="/usr/lib/postgresql/16/bin:$PATH" - pg_ctl -D /opt/pgsql/data -l logfile stop - echo "compute_query_id = off" >> /opt/pgsql/data/postgresql.conf - pg_ctl -D /opt/pgsql/data -l logfile start - make installcheck-world + run: make installcheck-world - name: Report on installcheck-world test suites fail uses: actions/upload-artifact@v2