Skip to content

Commit f8e7692

Browse files
authored
Run pginstallcheck in parallel with main installcheck (#10214)
Use the newly added "parallel" GitHub Actions annotations for steps. This can save about 40 seconds.
1 parent 5442ea9 commit f8e7692

2 files changed

Lines changed: 9 additions & 4 deletions

File tree

.github/workflows/linux-build-and-test.yaml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -204,8 +204,14 @@ jobs:
204204
build/compile_commands.json
205205
206206
- name: Check exported symbols
207+
background: true
207208
run: ./build/scripts/export_prefix_check.sh
208209

210+
- name: pginstallcheck
211+
background: true
212+
if: matrix.pginstallcheck
213+
run: make -C build pginstallcheck
214+
209215
- name: make installcheck
210216
if: matrix.installcheck
211217
run: |
@@ -214,9 +220,8 @@ jobs:
214220
SKIPS="${{ join(matrix.skipped_tests, ' ') }}" ${{ matrix.installcheck_args }} \
215221
| tee installcheck.log
216222
217-
- name: pginstallcheck
218-
if: matrix.pginstallcheck
219-
run: make -C build pginstallcheck
223+
- name: Wait for checks to finish
224+
wait-all:
220225

221226
- name: coverage
222227
if: matrix.coverage

test/test-defs.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ set(PG_REGRESS_OPTS_TEMP_INSTANCE
105105
--temp-config=${TEST_OUTPUT_DIR}/postgresql.conf)
106106

107107
set(PG_REGRESS_OPTS_TEMP_INSTANCE_PGTEST
108-
--temp-instance=${TEST_CLUSTER}
108+
--temp-instance=${TEST_CLUSTER}-pg
109109
--temp-config=${TEST_OUTPUT_DIR}/pgtest.conf)
110110

111111
set(PG_REGRESS_OPTS_LOCAL_INSTANCE --host=${TEST_PGHOST}

0 commit comments

Comments
 (0)