Skip to content

Commit e711b41

Browse files
committed
Run singlestep update test as a matrix job
The singlestep update test ran as a serial step after the direct update test. Make it a separate matrix dimension so direct and singlestep run in parallel. The downgrade test only runs in the direct mode job.
1 parent dbf0f04 commit e711b41

1 file changed

Lines changed: 7 additions & 12 deletions

File tree

.github/workflows/update-test.yaml

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,12 @@ jobs:
2626
update_test:
2727
needs: check_paths
2828
if: needs.check_paths.outputs.run_ci == 'true'
29-
name: Update test PG${{ matrix.pg }}
29+
name: Update test PG${{ matrix.pg }} ${{ matrix.mode }}
3030
runs-on: 'ubuntu-latest'
3131
strategy:
3232
matrix:
3333
pg: [16, 17, 18]
34+
mode: [direct, singlestep]
3435
fail-fast: false
3536
env:
3637
PG_VERSION: ${{ matrix.pg }}
@@ -57,19 +58,13 @@ jobs:
5758
sudo apt-get install -y --no-install-recommends -o Dpkg::Options::="--force-overwrite" ${ts_packages}
5859
git fetch --tags
5960
60-
- name: Update tests PG${{ matrix.pg }}
61+
- name: Update tests PG${{ matrix.pg }} ${{ matrix.mode }}
6162
run: |
6263
PATH="/usr/lib/postgresql/${{ matrix.pg }}/bin:$PATH"
63-
./scripts/test_updates.sh
64-
65-
- name: Singlestep update tests PG${{ matrix.pg }}
66-
if: always()
67-
run: |
68-
PATH="/usr/lib/postgresql/${{ matrix.pg }}/bin:$PATH"
69-
UPDATE_MODE=singlestep ./scripts/test_updates.sh
64+
UPDATE_MODE=${{ matrix.mode }} ./scripts/test_updates.sh
7065
7166
- name: Downgrade tests PG${{ matrix.pg }}
72-
if: always()
67+
if: always() && matrix.mode == 'direct'
7368
run: |
7469
PATH="/usr/lib/postgresql/${{ matrix.pg }}/bin:$PATH"
7570
./scripts/test_downgrade.sh
@@ -118,14 +113,14 @@ jobs:
118113
if: always() && steps.collectlogs.outputs.coredumps == 'true'
119114
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
120115
with:
121-
name: Coredumps update-test PG${{ matrix.pg }}
116+
name: Coredumps update-test PG${{ matrix.pg }} ${{ matrix.mode }}
122117
path: coredumps
123118

124119
- name: Upload Artifacts
125120
if: always()
126121
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
127122
with:
128-
name: Update test PG${{ matrix.pg }}
123+
name: Update test PG${{ matrix.pg }} ${{ matrix.mode }}
129124
path: update_test
130125

131126
report_status:

0 commit comments

Comments
 (0)