|
14 | 14 |
|
15 | 15 | env:
|
16 | 16 | artifact_name: build-${{ inputs.os }}-${{ inputs.build_script }}-${{ inputs.build_type }}
|
17 |
| - coverage_artifact_name: coverage-build-${{ inputs.os }}-${{ inputs.build_script }}-${{ inputs.build_type }} |
18 | 17 |
|
19 | 18 | jobs:
|
20 | 19 | build:
|
|
46 | 45 | artifacts.tar
|
47 | 46 | retention-days: 1
|
48 | 47 |
|
49 |
| - build-coverage: |
50 |
| - name: Build PSP for Coverage |
51 |
| - runs-on: ${{ inputs.os }} |
52 |
| - if: inputs.build_script == 'make' && inputs.build_type == 'debug' |
53 |
| - steps: |
54 |
| - - name: Clone repository |
55 |
| - uses: actions/checkout@v4 |
56 |
| - with: |
57 |
| - path: 'src' |
58 |
| - submodules: recursive |
59 |
| - ref: ${{ github.ref }} |
60 |
| - |
61 |
| - - name: Install dependencies |
62 |
| - run: src/ci_scripts/ubuntu-deps.sh |
63 |
| - |
64 |
| - - name: Build postgres |
65 |
| - run: src/ci_scripts/${{ inputs.build_script }}-build.sh ${{ inputs.build_type }} --enable-coverage |
66 |
| - |
67 |
| - - name: Archive pginst to artifact tar file |
68 |
| - run: tar -czf coverage-artifacts.tar src pginst |
69 |
| - |
70 |
| - - name: Upload build coverage-artifacts |
71 |
| - uses: actions/upload-artifact@v4 |
72 |
| - with: |
73 |
| - name: ${{ env.coverage_artifact_name }} |
74 |
| - overwrite: true |
75 |
| - path: | |
76 |
| - coverage-artifacts.tar |
77 |
| - retention-days: 1 |
78 |
| - |
79 | 48 | test:
|
80 | 49 | name: Test PSP
|
81 | 50 | runs-on: ${{ inputs.os }}
|
@@ -150,54 +119,3 @@ jobs:
|
150 | 119 | src/contrib/*/regression.diffs
|
151 | 120 | src/contrib/*/regression.out
|
152 | 121 | retention-days: 3
|
153 |
| - |
154 |
| - test_tde_coverage: |
155 |
| - name: Generate Codecov Code Coverage |
156 |
| - runs-on: ${{ inputs.os }} |
157 |
| - if: inputs.build_script == 'make' && inputs.build_type == 'debug' |
158 |
| - needs: build |
159 |
| - |
160 |
| - steps: |
161 |
| - - name: Download build coverage-artifacts |
162 |
| - uses: actions/download-artifact@v4 |
163 |
| - with: |
164 |
| - name: ${{ env.coverage_artifact_name }} |
165 |
| - path: . |
166 |
| - |
167 |
| - - name: Extract artifact file |
168 |
| - run: tar -xzf coverage-artifacts.tar |
169 |
| - |
170 |
| - - name: Install dependencies |
171 |
| - run: src/ci_scripts/ubuntu-deps.sh |
172 |
| - |
173 |
| - - name: Setup kmip and vault |
174 |
| - run: src/ci_scripts/setup-keyring-servers.sh |
175 |
| - |
176 |
| - - name: Test postgres with TDE to generate coverage |
177 |
| - run: src/ci_scripts/${{ inputs.build_script }}-test-tde.sh --continue --tde-only |
178 |
| - |
179 |
| - - name: Run code coverage |
180 |
| - run: find src/ -type f -name "*.c" ! -path '*libkmip*' | xargs -t gcov -abcfu |
181 |
| - working-directory: src/contrib/pg_tde |
182 |
| - |
183 |
| - - name: Upload coverage data to codecov.io |
184 |
| - uses: codecov/codecov-action@v5 |
185 |
| - with: |
186 |
| - verbose: true |
187 |
| - token: ${{ secrets.CODECOV_TOKEN }} |
188 |
| - working-directory: src/contrib/pg_tde |
189 |
| - files: "*.c.gcov" |
190 |
| - |
191 |
| - - name: Report on test fail |
192 |
| - uses: actions/upload-artifact@v4 |
193 |
| - if: ${{ failure() }} |
194 |
| - with: |
195 |
| - name: coverage-testlog-tde-${{ inputs.os }}-${{ inputs.build_script }}-${{ inputs.build_type }} |
196 |
| - path: | |
197 |
| - src/build/testrun/ |
198 |
| - src/contrib/pg_tde/t/ |
199 |
| - src/contrib/pg_tde/results |
200 |
| - src/contrib/pg_tde/regression.diffs |
201 |
| - src/contrib/pg_tde/regression.out |
202 |
| - src/contrib/pg_tde/*.gcov |
203 |
| - retention-days: 3 |
0 commit comments