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 f0b85b8b4a.

* Fix pg 14 and 15 build workflows

* Fix

* Cleanup
pull/449/head
Artem Gavrilov 2024-04-09 14:05:58 +02:00 committed by GitHub
parent 684e6483b5
commit 7829869dc7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 9 additions and 21 deletions

View File

@ -83,12 +83,13 @@ jobs:
sudo make USE_PGXS=1 install sudo make USE_PGXS=1 install
working-directory: src/pg_stat_monitor working-directory: src/pg_stat_monitor
- name: Load pg_stat_monitor library and Restart Server - name: Configure and Restart Server
run: | run: |
export PATH="/usr/lib/postgresql/14/bin:$PATH" export PATH="/usr/lib/postgresql/14/bin:$PATH"
pg_ctl -D /opt/pgsql/data -l logfile stop pg_ctl -D /opt/pgsql/data -l logfile stop
echo "shared_preload_libraries = 'pg_stat_monitor'" >> \ echo "shared_preload_libraries = 'pg_stat_monitor'" >> \
/opt/pgsql/data/postgresql.conf /opt/pgsql/data/postgresql.conf
echo "compute_query_id = regress" >> /opt/pgsql/data/postgresql.conf
pg_ctl -D /opt/pgsql/data -l logfile start pg_ctl -D /opt/pgsql/data -l logfile start
working-directory: src/pg_stat_monitor working-directory: src/pg_stat_monitor
@ -126,12 +127,7 @@ jobs:
retention-days: 3 retention-days: 3
- name: Start Server installcheck-world tests - name: Start Server installcheck-world tests
run: | run: make installcheck-world
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
- name: Report on installcheck-world test suites fail - name: Report on installcheck-world test suites fail
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2

View File

@ -83,12 +83,13 @@ jobs:
sudo make USE_PGXS=1 install sudo make USE_PGXS=1 install
working-directory: src/pg_stat_monitor working-directory: src/pg_stat_monitor
- name: Load pg_stat_monitor library and Restart Server - name: Configure and Restart Server
run: | run: |
export PATH="/usr/lib/postgresql/15/bin:$PATH" export PATH="/usr/lib/postgresql/15/bin:$PATH"
pg_ctl -D /opt/pgsql/data -l logfile stop pg_ctl -D /opt/pgsql/data -l logfile stop
echo "shared_preload_libraries = 'pg_stat_monitor'" >> \ echo "shared_preload_libraries = 'pg_stat_monitor'" >> \
/opt/pgsql/data/postgresql.conf /opt/pgsql/data/postgresql.conf
echo "compute_query_id = regress" >> /opt/pgsql/data/postgresql.conf
pg_ctl -D /opt/pgsql/data -l logfile start pg_ctl -D /opt/pgsql/data -l logfile start
working-directory: src/pg_stat_monitor working-directory: src/pg_stat_monitor
@ -126,12 +127,7 @@ jobs:
retention-days: 3 retention-days: 3
- name: Start Server installcheck-world tests - name: Start Server installcheck-world tests
run: | run: make installcheck-world
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
- name: Report on installcheck-world test suites fail - name: Report on installcheck-world test suites fail
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2

View File

@ -83,12 +83,13 @@ jobs:
sudo make USE_PGXS=1 install sudo make USE_PGXS=1 install
working-directory: src/pg_stat_monitor working-directory: src/pg_stat_monitor
- name: Load pg_stat_monitor library and Restart Server - name: Configure and Restart Server
run: | run: |
export PATH="/usr/lib/postgresql/16/bin:$PATH" export PATH="/usr/lib/postgresql/16/bin:$PATH"
pg_ctl -D /opt/pgsql/data -l logfile stop pg_ctl -D /opt/pgsql/data -l logfile stop
echo "shared_preload_libraries = 'pg_stat_monitor'" >> \ echo "shared_preload_libraries = 'pg_stat_monitor'" >> \
/opt/pgsql/data/postgresql.conf /opt/pgsql/data/postgresql.conf
echo "compute_query_id = regress" >> /opt/pgsql/data/postgresql.conf
pg_ctl -D /opt/pgsql/data -l logfile start pg_ctl -D /opt/pgsql/data -l logfile start
working-directory: src/pg_stat_monitor working-directory: src/pg_stat_monitor
@ -126,12 +127,7 @@ jobs:
retention-days: 3 retention-days: 3
- name: Start Server installcheck-world tests - name: Start Server installcheck-world tests
run: | run: make installcheck-world
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
- name: Report on installcheck-world test suites fail - name: Report on installcheck-world test suites fail
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2