Skip to content

Commit d80b89c

Browse files
committed
Add DAX to Coverage
Signed-off-by: Lukasz Dorau <[email protected]>
1 parent d62f122 commit d80b89c

File tree

3 files changed

+31
-1
lines changed

3 files changed

+31
-1
lines changed

.github/workflows/coverage.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,18 @@ jobs:
5151
name: exports-coverage-basic-ubuntu-22.04-shared-ON-hwloc-ON
5252
path: coverage
5353

54+
- name: Download file exports-coverage-dax-shared-ON
55+
uses: actions/download-artifact@v4
56+
with:
57+
name: exports-coverage-dax-shared-ON
58+
path: coverage
59+
60+
- name: Download file exports-coverage-dax-shared-OFF
61+
uses: actions/download-artifact@v4
62+
with:
63+
name: exports-coverage-dax-shared-OFF
64+
path: coverage
65+
5466
- name: Compute coverage
5567
working-directory: ${{env.COVERAGE_DIR}}
5668
run: |

.github/workflows/dax.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ env:
2828
UMF_TESTS_FSDAX_PATH: "/mnt/pmem1/file"
2929
BUILD_DIR : "${{github.workspace}}/build"
3030
INSTL_DIR : "${{github.workspace}}/../install-dir"
31+
COVERAGE_DIR : "${{github.workspace}}/coverage"
32+
COVERAGE_NAME : "exports-coverage-dax"
3133

3234
jobs:
3335
dax:
@@ -100,3 +102,19 @@ jobs:
100102
UMF_TESTS_FSDAX_PATH=${{env.UMF_TESTS_FSDAX_PATH}} ctest -C ${{matrix.build_type}} -R umf-provider_file_memory -V
101103
UMF_TESTS_FSDAX_PATH=${{env.UMF_TESTS_FSDAX_PATH}} ctest -C ${{matrix.build_type}} -R umf_example_dram_and_fsdax -V
102104
UMF_TESTS_FSDAX_PATH=${{env.UMF_TESTS_FSDAX_PATH}} ctest -C ${{matrix.build_type}} -R umf-ipc_file_prov_fsdax -V
105+
106+
- name: Check coverage
107+
if: ${{ matrix.build_type == 'Debug' }}
108+
working-directory: ${{env.BUILD_DIR}}
109+
run: |
110+
export COVERAGE_FILE_NAME=${{env.COVERAGE_NAME}}-shared-${{matrix.shared_library}}
111+
echo "COVERAGE_FILE_NAME: $COVERAGE_FILE_NAME"
112+
../scripts/coverage/coverage_capture.sh $COVERAGE_FILE_NAME
113+
mkdir -p ${{env.COVERAGE_DIR}}
114+
mv ./$COVERAGE_FILE_NAME ${{env.COVERAGE_DIR}}
115+
116+
- uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
117+
if: ${{ matrix.build_type == 'Debug' }}
118+
with:
119+
name: ${{env.COVERAGE_NAME}}-shared-${{matrix.shared_library}}
120+
path: ${{env.COVERAGE_DIR}}

.github/workflows/pr_push.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,5 +111,5 @@ jobs:
111111
needs: [Build]
112112
uses: ./.github/workflows/multi_numa.yml
113113
Coverage:
114-
needs: [Spellcheck, CodeStyle, Build]
114+
needs: [Build, DevDax]
115115
uses: ./.github/workflows/coverage.yml

0 commit comments

Comments
 (0)