File tree Expand file tree Collapse file tree 5 files changed +41
-19
lines changed
Expand file tree Collapse file tree 5 files changed +41
-19
lines changed Original file line number Diff line number Diff line change @@ -159,17 +159,19 @@ jobs:
159159
160160 - name : Code Coverage Run
161161 run : |
162+ python -m pip install gcovr
162163 conan build \
163164 -o sisl/*:malloc_impl=${{ inputs.malloc-impl }} \
164165 -o nuraft_mesg/*:coverage=True \
165166 -s:h build_type=${{ inputs.build-type }} \
166167 --build missing \
167168 .
169+ gcovr --cobertura ./coverage.xml
168170 if : ${{ inputs.testing == 'True' && inputs.tooling == 'Coverage' }}
169171
170172 - name : Upload coverage reports to Codecov
171173 uses : codecov/codecov-action@v5
172174 with :
173- token : ${{ secrets.CODECOV_TOKEN }}
174- verbose : true
175+ files : ./coverage.xml
176+ disable_search : true
175177 if : ${{ inputs.testing == 'True' && inputs.tooling == 'Coverage' }}
Original file line number Diff line number Diff line change @@ -32,16 +32,16 @@ jobs:
3232 build-type : ${{ matrix.build-type }}
3333 malloc-impl : ${{ matrix.malloc-impl }}
3434 tooling : ${{ matrix.tooling }}
35- # ChainBuild:
36- # runs-on: "ubuntu-24.04"
37- # steps:
38- # - name: Start HomeStore Build
39- # run: |
40- # curl -L \
41- # -X POST \
42- # -H "Accept: application/vnd.github+json" \
43- # -H "Authorization: Bearer ${{ secrets.CHAIN_BUILD_TOKEN }}"\
44- # -H "X-GitHub-Api-Version: 2022-11-28" \
45- # https://api.github.com/repos/eBay/homestore/actions/workflows/merge_build.yml/dispatches \
46- # -d '{"ref":"master","inputs":{}}'
47- # if: ${{ github.ref == 'refs/heads/main' }}
35+ ChainBuild :
36+ runs-on : " ubuntu-24.04"
37+ steps :
38+ - name : Start HomeStore Build
39+ run : |
40+ curl -L \
41+ -X POST \
42+ -H "Accept: application/vnd.github+json" \
43+ -H "Authorization: Bearer ${{ secrets.CHAIN_BUILD_TOKEN }}"\
44+ -H "X-GitHub-Api-Version: 2022-11-28" \
45+ https://api.github.com/repos/eBay/homestore/actions/workflows/merge_build.yml/dispatches \
46+ -d '{"ref":"master","inputs":{}}'
47+ if : ${{ github.ref == 'refs/heads/main' }}
Original file line number Diff line number Diff line change @@ -55,10 +55,10 @@ pipeline {
5555 stage(" Compile" ) {
5656 steps {
5757 sh " ./prepare_v2.sh ; \
58- conan create ${ BUILD_MISSING} -s:h build_type=Debug -o ${ PROJECT} /*:sanitize=True ${ CONAN_FLAGS} . ; \
58+ conan build ${ BUILD_MISSING} --build missing -s:h build_type=Debug -o ${ PROJECT} /*:sanitize=True ${ CONAN_FLAGS} . ; \
5959 conan create ${ BUILD_MISSING} -s:h build_type=Debug ${ CONAN_FLAGS} . ; \
60- conan create ${ BUILD_MISSING} -s:h build_type=RelWithDebInfo -o sisl/*:malloc_impl=tcmalloc ${ CONAN_FLAGS} . ; \
61- conan create ${ BUILD_MISSING} -s:h build_type=RelWithDebInfo -o sisl/*:prerelease=True -o sisl/*:malloc_impl=tcmalloc ${ CONAN_FLAGS} . ; \
60+ conan create ${ BUILD_MISSING} --build missing - s:h build_type=RelWithDebInfo -o sisl/*:malloc_impl=tcmalloc ${ CONAN_FLAGS} . ; \
61+ conan create ${ BUILD_MISSING} --build missing - s:h build_type=RelWithDebInfo -o sisl/*:prerelease=True -o sisl/*:malloc_impl=tcmalloc ${ CONAN_FLAGS} . ; \
6262 "
6363 }
6464 }
Original file line number Diff line number Diff line change @@ -69,7 +69,12 @@ def requirements(self):
6969
7070 def layout (self ):
7171 self .folders .source = "."
72- self .folders .build = join ("build" , str (self .settings .build_type ))
72+ if self .options .get_safe ("sanitize" ):
73+ self .folders .build = join ("build" , "Sanitized" )
74+ elif self .options .get_safe ("coverage" ):
75+ self .folders .build = join ("build" , "Coverage" )
76+ else :
77+ self .folders .build = join ("build" , str (self .settings .build_type ))
7378 self .folders .generators = join (self .folders .build , "generators" )
7479
7580 self .cpp .source .includedirs = ["include" ]
Original file line number Diff line number Diff line change 1+ high-threshold = 80
2+ medium-threshold = 65
3+
4+ merge-lines = yes
5+
6+ exclude = .*build.*
7+ exclude = .*flip.*
8+ exclude = .*generate.*
9+ exclude = .*tests.*
10+
11+ exclude-lines-by-pattern = .*DEBUG.*
12+ exclude-lines-by-pattern = .*DBG.*
13+ exclude-lines-by-pattern = .*LOG.*
14+
15+ gcov-ignore-parse-errors = all
You can’t perform that action at this time.
0 commit comments