Skip to content

Commit

Permalink
Fix partition_prune testcase (#440)
Browse files Browse the repository at this point in the history
* 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 f0b85b8.

* Fix pg 14 and 15 build workflows

* Fix

* Cleanup
  • Loading branch information
artemgavrilov authored Apr 9, 2024
1 parent 684e648 commit 7829869
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 21 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/postgresql-14-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down
10 changes: 3 additions & 7 deletions .github/workflows/postgresql-15-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down
10 changes: 3 additions & 7 deletions .github/workflows/postgresql-16-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 7829869

Please sign in to comment.