Skip to content

Commit f29dd1c

Browse files
committed
chore(ci) minor lcov fixes
* Ignore unused lcov exclusions: in our non-debug builds the `src/common/debug` exclude is unused and latest lcov complains about it. * Ignore geninfo source errors: these are very tricky to get right considering the openresty bundle archive file structure makes for an inconvenient `--base-directory` argument.
1 parent 7179e9b commit f29dd1c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/job-unit-tests.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -151,13 +151,13 @@ jobs:
151151
run: |
152152
case "$CC" in
153153
clang*)
154-
lcov --gcov-tool gcov --capture --directory work/buildroot --base-directory work/nginx-patched --output-file lcov.info
155-
lcov --gcov-tool gcov --remove lcov.info "*/ngx_wasm_module/src/common/debug/*" --output-file lcov.info
154+
lcov --gcov-tool gcov --ignore-errors source --capture --directory work/buildroot --output-file lcov.info
155+
lcov --ignore-errors unused --gcov-tool gcov --remove lcov.info "*/ngx_wasm_module/src/common/debug/*" --output-file lcov.info
156156
lcov --gcov-tool gcov --extract lcov.info "*/ngx_wasm_module/src/*" --output-file lcov.info
157157
;;
158158
*)
159-
lcov --gcov-tool gcov-${CC#*-} --capture --directory work/buildroot --output-file lcov.info
160-
lcov --gcov-tool gcov-${CC#*-} --remove lcov.info "*/ngx_wasm_module/src/common/debug/*" --output-file lcov.info
159+
lcov --gcov-tool gcov-${CC#*-} --ignore-errors source --capture --directory work/buildroot --output-file lcov.info
160+
lcov --ignore-errors unused --gcov-tool gcov-${CC#*-} --remove lcov.info "*/ngx_wasm_module/src/common/debug/*" --output-file lcov.info
161161
lcov --gcov-tool gcov-${CC#*-} --extract lcov.info "*/ngx_wasm_module/src/*" --output-file lcov.info
162162
;;
163163
esac

0 commit comments

Comments
 (0)