[vlc-commits] [Git][videolan/vlc][master] 3 commits: CI: avoid negative hit errors in the code coverage

Steve Lhomme (@robUx4) gitlab at videolan.org
Fri Oct 6 15:44:57 UTC 2023



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
fae031a8 by Steve Lhomme at 2023-10-06T14:47:46+00:00
CI: avoid negative hit errors in the code coverage

It fails too many times with multithread. Hopefully it will not fail with
this option.

- - - - -
b86065ee by Steve Lhomme at 2023-10-06T14:47:46+00:00
CI: create the code coverage directory just before using it

- - - - -
7aa69403 by Steve Lhomme at 2023-10-06T14:47:46+00:00
CI: add full threading support for gcovr

- - - - -


1 changed file:

- extras/ci/gitlab-ci.yml


Changes:

=====================================
extras/ci/gitlab-ci.yml
=====================================
@@ -366,13 +366,14 @@ debian-meson:
         - |
             # We split in two different commands to handle the case where
             # the coverage will be generated on different jobs later.
-            mkdir html-coverage
-            gcovr -r "${CI_PROJECT_DIR}/" --json "${CI_PROJECT_DIR}/${CI_JOB_NAME}.cov.json" -j4
+            gcovr -r "${CI_PROJECT_DIR}/" --json "${CI_PROJECT_DIR}/${CI_JOB_NAME}.cov.json" -j$NCPU --gcov-ignore-parse-errors=negative_hits.warn_once_per_file
+
+        - mkdir html-coverage
         - >
             gcovr --add-tracefile "${CI_PROJECT_DIR}/${CI_JOB_NAME}.cov.json"
             --xml="cobertura.xml"
             --html="html-coverage/vlc.html"
-            --html-details -s
+            --html-details -s -j$NCPU
 
     allow_failure: true
     variables: *variables-debian



View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/2d783ce5dde7b9d343cee5e251056c0757e11f52...7aa694034e59db50cc6b5e1ea2aac26d121558b4

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/2d783ce5dde7b9d343cee5e251056c0757e11f52...7aa694034e59db50cc6b5e1ea2aac26d121558b4
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list