build: update gcovr to 7.2 and codecov config · nodejs/node@61b90e7 · GitHub
Skip to content

Commit 61b90e7

Browse files
bcoemarco-ippolito
authored andcommitted
build: update gcovr to 7.2 and codecov config
PR-URL: #54019 Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com>
1 parent 77761af commit 61b90e7

4 files changed

Lines changed: 16 additions & 19 deletions

File tree

.github/workflows/coverage-linux-without-intl.yml

Lines changed: 2 additions & 2 deletions

.github/workflows/coverage-linux.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ jobs:
6060
- name: Environment Information
6161
run: npx envinfo
6262
- name: Install gcovr
63-
run: pip install gcovr==4.2
63+
run: pip install gcovr==7.2
6464
- name: Build
6565
run: make build-ci -j4 V=1 CONFIG_FLAGS="--error-on-warn --coverage"
6666
# TODO(bcoe): fix the couple tests that fail with the inspector enabled.
@@ -72,7 +72,7 @@ jobs:
7272
env:
7373
NODE_OPTIONS: --max-old-space-size=8192
7474
- name: Report C++
75-
run: cd out && gcovr --gcov-exclude='.*\b(deps|usr|out|obj|cctest|embedding)\b' -v -r Release/obj.target --xml -o ../coverage/coverage-cxx.xml --root=$(cd ../ && pwd)
75+
run: gcovr --object-directory=out -v --filter src --xml -o ./coverage/coverage-cxx.xml --root=./ --gcov-executable="llvm-cov-18 gcov"
7676
# Clean temporary output from gcov and c8, so that it's not uploaded:
7777
- name: Clean tmp
7878
run: rm -rf coverage/tmp && rm -rf out

Makefile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ coverage: coverage-test ## Run the tests and generate a coverage report.
253253
.PHONY: coverage-build
254254
coverage-build: all
255255
-$(MAKE) coverage-build-js
256-
if [ ! -d gcovr ]; then $(PYTHON) -m pip install -t gcovr gcovr==4.2; fi
256+
if [ ! -d gcovr ]; then $(PYTHON) -m pip install -t gcovr gcovr==7.2; fi
257257
$(MAKE)
258258

259259
.PHONY: coverage-build-js
@@ -269,9 +269,10 @@ coverage-test: coverage-build
269269
-NODE_V8_COVERAGE=coverage/tmp \
270270
TEST_CI_ARGS="$(TEST_CI_ARGS) --type=coverage" $(MAKE) $(COVTESTS)
271271
$(MAKE) coverage-report-js
272-
-(cd out && PYTHONPATH=../gcovr $(PYTHON) -m gcovr \
273-
--gcov-exclude='.*\b(deps|usr|out|cctest|embedding)\b' -v \
274-
-r ../src/ --object-directory Release/obj.target \
272+
-(PYTHONPATH=./gcovr $(PYTHON) -m gcovr \
273+
--object-directory=out \
274+
--filter src -v \
275+
--root ./ \
275276
--html --html-details -o ../coverage/cxxcoverage.html \
276277
--gcov-executable="$(GCOV)")
277278
@printf "Javascript coverage %%: "

codecov.yml

Lines changed: 7 additions & 11 deletions

0 commit comments

Comments
 (0)