Skip to content

Commit 60294f9

Browse files
committed
Add multi_NUMA to Coverage
Signed-off-by: Lukasz Dorau <lukasz.dorau@intel.com>
1 parent ba20da2 commit 60294f9

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed

.github/workflows/multi_numa.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ on: [workflow_call]
66
permissions:
77
contents: read
88

9+
env:
10+
BUILD_DIR : "${{github.workspace}}/build"
11+
COVERAGE_DIR : "${{github.workspace}}/coverage"
12+
COVERAGE_NAME : "exports-coverage-multinuma"
13+
914
jobs:
1015
multi_numa:
1116
name: ${{matrix.os}}
@@ -40,6 +45,7 @@ jobs:
4045
-DUMF_BUILD_LIBUMF_POOL_DISJOINT=ON
4146
-DUMF_BUILD_LIBUMF_POOL_JEMALLOC=ON
4247
-DUMF_TESTS_FAIL_ON_SKIP=ON
48+
${{ matrix.os == 'ubuntu-22.04' && '-DUMF_USE_COVERAGE=ON' || '' }}
4349
4450
- name: Build UMF
4551
run: cmake --build ${{github.workspace}}/build -j $(nproc)
@@ -59,3 +65,19 @@ jobs:
5965
ctest --output-on-failure --test-dir test -E "umf-provider_os_memory_multiple_numa_nodes"
6066
./test/umf_test-provider_os_memory_multiple_numa_nodes \
6167
--gtest_filter="-*checkModeLocal/*:*checkModePreferredEmptyNodeset/*:testNuma.checkModeInterleave"
68+
69+
- name: Check coverage
70+
if: matrix.os == 'ubuntu-22.04'
71+
working-directory: ${{env.BUILD_DIR}}
72+
run: |
73+
export COVERAGE_FILE_NAME=${{env.COVERAGE_NAME}}-os-${{matrix.os}}
74+
echo "COVERAGE_FILE_NAME: $COVERAGE_FILE_NAME"
75+
../scripts/coverage/coverage_capture.sh $COVERAGE_FILE_NAME
76+
mkdir -p ${{env.COVERAGE_DIR}}
77+
mv ./$COVERAGE_FILE_NAME ${{env.COVERAGE_DIR}}
78+
79+
- uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
80+
if: matrix.os == 'ubuntu-22.04'
81+
with:
82+
name: ${{env.COVERAGE_NAME}}-os-${{matrix.os}}
83+
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: [Build, DevDax, GPU]
114+
needs: [Build, DevDax, GPU, MultiNuma]
115115
uses: ./.github/workflows/coverage.yml

0 commit comments

Comments
 (0)