|
15 | 15 | KIND_VERSION: "v0.23.0"
|
16 | 16 | K8S_VERSION: "v1.30.2"
|
17 | 17 | REGISTRY: "ghcr.io/${{ github.repository_owner }}/postgresql-trunk"
|
18 |
| - POSTGRES_VERSION: "17-devel" |
| 18 | + TAG: "${{ vars.PG_MAJOR }}-devel" |
19 | 19 |
|
20 | 20 | defaults:
|
21 | 21 | run:
|
|
36 | 36 | - name: Set Global Env Vars
|
37 | 37 | id: set-env
|
38 | 38 | run: |
|
39 |
| - postgres_img="${{ env.REGISTRY }}:${{ env.POSTGRES_VERSION }}" |
| 39 | + postgres_img="${{ env.REGISTRY }}:${{ env.TAG }}" |
40 | 40 | # The version of operator to upgrade FROM, in the rolling upgrade E2E test
|
41 | 41 | e2e_pre_rolling_update_image="${postgres_img}-1"
|
42 | 42 |
|
@@ -158,18 +158,25 @@ jobs:
|
158 | 158 | # generate E2E test summary in the follow-up job 'summarize-e2e-tests'
|
159 | 159 | - name: Create individual artifact for each E2E test
|
160 | 160 | if: (always() && !cancelled())
|
| 161 | + env: |
| 162 | + RUNNER: "local" |
| 163 | + POSTGRES_VERSION: "${{ vars.PG_MAJOR }}" |
| 164 | + RUN_ID: "${{ github.run_id }}" |
| 165 | + MATRIX: "${{ env.ID }}-${{ env.POSTGRES_KIND }}-${{ vars.PG_MAJOR }}" |
| 166 | + REPOSITORY: "${{ github.repository }}" |
| 167 | + BRANCH_NAME: "${GITHUB_REF#refs/heads/}" |
| 168 | + GIT_REF: "${{ github.ref_name }}" |
161 | 169 | run: |
|
162 | 170 | set +x
|
163 |
| - echo '{"runner": "local", "postgres": "${{env.POSTGRES_VERSION}}", "postgres_kind": "${{env.POSTGRES_KIND}}", "kubernetes": "${{env.K8S_VERSION}}", "runid": ${{ github.run_id }}, "id": "local-PostgreSQL"-${{ env.POSTGRES_VERSION }}", "repo": "${{github.repository}}", "branch": "${GITHUB_REF#refs/heads/}", "refname": "${{github.ref_name}}" }' |
164 | 171 | python .github/generate-test-artifacts.py \
|
165 | 172 | -o testartifacts-${{ env.ID }} \
|
166 | 173 | -f tests/e2e/out/report.json \
|
167 |
| - -m '{"runner": "local", "postgres": "${{env.POSTGRES_VERSION}}", "postgres_kind": "${{env.POSTGRES_KIND}}", "kubernetes": "${{env.K8S_VERSION}}", "runid": ${{ github.run_id }}, "id": "${{ env.ID }}", "repo": "${{github.repository}}", "branch": "${GITHUB_REF#refs/heads/}", "refname": "${{github.ref_name}}" }' |
| 174 | + --environment=true |
168 | 175 | if [ -f tests/e2e/out/upgrade_report.json ]; then
|
169 | 176 | python .github/generate-test-artifacts.py \
|
170 | 177 | -o testartifacts-${{ env.ID }} \
|
171 | 178 | -f tests/e2e/out/upgrade_report.json \
|
172 |
| - -m '{"runner": "local", "postgres": "${{env.POSTGRES_VERSION}}", "postgres_kind": "${{env.POSTGRES_KIND}}", "kubernetes": "${{env.K8S_VERSION}}", "runid": ${{ github.run_id }}, "id": "${{ env.ID }}", "repo": "${{github.repository}}", "branch": "${GITHUB_REF#refs/heads/}", "refname": "${{github.ref_name}}" }' |
| 179 | + --environment=true |
173 | 180 | fi
|
174 | 181 |
|
175 | 182 | - name: Archive test artifacts
|
|
0 commit comments