Skip to content

Commit 3aab495

Browse files
authored
Merge pull request #143 from szmyd/merge_stable
Merge stable
2 parents 223eda9 + 8d9b1eb commit 3aab495

File tree

5 files changed

+41
-19
lines changed

5 files changed

+41
-19
lines changed

.github/workflows/build_dependencies.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff 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' }}

.github/workflows/merge_build.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff 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' }}

.jenkins/Jenkinsfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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
}

conanfile.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff 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"]

gcovr.cfg

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
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

0 commit comments

Comments
 (0)