File tree 5 files changed +24
-16
lines changed
5 files changed +24
-16
lines changed Original file line number Diff line number Diff line change 12
12
- tools/gyp/**
13
13
- tools/test.py
14
14
- .github/workflows/coverage-linux-without-intl.yml
15
+ - codecov.yml
15
16
push :
16
17
branches :
17
18
- main
24
25
- tools/gyp/**
25
26
- tools/test.py
26
27
- .github/workflows/coverage-linux-without-intl.yml
28
+ - codecov.yml
27
29
28
30
concurrency :
29
31
group : ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
58
60
- name : Environment Information
59
61
run : npx envinfo
60
62
- name : Install gcovr
61
- run : pip install gcovr==4 .2
63
+ run : pip install gcovr==7 .2
62
64
- name : Build
63
65
run : make build-ci -j4 V=1 CONFIG_FLAGS="--error-on-warn --coverage --without-intl"
64
66
# TODO(bcoe): fix the couple tests that fail with the inspector enabled.
70
72
env :
71
73
NODE_OPTIONS : --max-old-space-size=8192
72
74
- name : Report C++
73
- 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"
74
76
# Clean temporary output from gcov and c8, so that it's not uploaded:
75
77
- name : Clean tmp
76
78
run : rm -rf coverage/tmp && rm -rf out
Original file line number Diff line number Diff line change 12
12
- tools/gyp/**
13
13
- tools/test.py
14
14
- .github/workflows/coverage-linux.yml
15
+ - codecov.yml
15
16
push :
16
17
branches :
17
18
- main
24
25
- tools/gyp/**
25
26
- tools/test.py
26
27
- .github/workflows/coverage-linux.yml
28
+ - codecov.yml
27
29
28
30
concurrency :
29
31
group : ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
58
60
- name : Environment Information
59
61
run : npx envinfo
60
62
- name : Install gcovr
61
- run : pip install gcovr==4 .2
63
+ run : pip install gcovr==7 .2
62
64
- name : Build
63
65
run : make build-ci -j4 V=1 CONFIG_FLAGS="--error-on-warn --coverage"
64
66
# TODO(bcoe): fix the couple tests that fail with the inspector enabled.
70
72
env :
71
73
NODE_OPTIONS : --max-old-space-size=8192
72
74
- name : Report C++
73
- 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"
74
76
# Clean temporary output from gcov and c8, so that it's not uploaded:
75
77
- name : Clean tmp
76
78
run : rm -rf coverage/tmp && rm -rf out
Original file line number Diff line number Diff line change 12
12
- tools/gyp/**
13
13
- tools/test.py
14
14
- .github/workflows/coverage-windows.yml
15
+ - codecov.yml
15
16
push :
16
17
branches :
17
18
- main
24
25
- tools/gyp/**
25
26
- tools/test.py
26
27
- .github/workflows/coverage-windows.yml
28
+ - codecov.yml
27
29
28
30
concurrency :
29
31
group : ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
Original file line number Diff line number Diff line change @@ -253,7 +253,7 @@ coverage: coverage-test ## Run the tests and generate a coverage report.
253
253
.PHONY : coverage-build
254
254
coverage-build : all
255
255
-$(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
257
257
$(MAKE )
258
258
259
259
.PHONY : coverage-build-js
@@ -269,9 +269,10 @@ coverage-test: coverage-build
269
269
-NODE_V8_COVERAGE=coverage/tmp \
270
270
TEST_CI_ARGS=" $( TEST_CI_ARGS) --type=coverage" $(MAKE ) $(COVTESTS )
271
271
$(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 ./ \
275
276
--html --html-details -o ../coverage/cxxcoverage.html \
276
277
--gcov-executable=" $( GCOV) " )
277
278
@printf " Javascript coverage %%: "
Original file line number Diff line number Diff line change 1
- # TODO(bcoe): re-enable coverage report comments, once we can figure out
2
- # how to make them more accurate for the Node.js project,
3
- # See: https://github.com/nodejs/node/issues/35759
4
- comment : false
5
- # # Only show diff and files changed:
6
- # layout: "diff, files"
7
- # # Don't post if no changes in coverage:
8
- # require_changes: true
1
+ comment :
2
+ # Only show diff and files changed:
3
+ layout : diff, files
4
+ # Don't post if no changes in coverage:
5
+ require_changes : true
9
6
10
7
codecov :
11
8
branch : main
12
9
notify :
13
10
# Wait for all coverage builds:
11
+ # - coverage-linux.yml
12
+ # - coverage-windows.yml [manually disabled see #50489]
13
+ # - coverage-linux-without-intl.yml
14
14
after_n_builds : 2
15
15
16
16
coverage :
17
+ # Useful for blocking Pull Requests that don't meet a particular coverage threshold.
17
18
status :
18
19
project : off
19
20
patch : off
You can’t perform that action at this time.
0 commit comments