Skip to content

Commit

Permalink
Try to debug 'mismatched data' warning when generating code coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
cschwan committed Feb 2, 2024
1 parent bdea693 commit cbdeb2e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,7 @@ jobs:
( sed -nE 's/[[:space:]]+Running( unittests|) [^[:space:]]+ \(([^)]+)\)/\2/p' stderr && echo target/debug/doctestbins/*/rust_out | tr ' ' "\n" ) | \
xargs printf ' --object %s' | \
xargs $(rustc --print target-libdir)/../bin/llvm-cov export \
--ignore-filename-regex='/.cargo/registry' \
--ignore-filename-regex='/cargo/registry' \
--ignore-filename-regex='index.crates.io' \
--ignore-filename-regex='rustc' \
--ignore-filename-regex='pineappl/tests' \
--ignore-filename-regex='pineappl_capi' \
Expand All @@ -81,6 +80,8 @@ jobs:
--skip-functions \
--object target/debug/pineappl \
--format lcov > lcov.info
# print all files for which coverage has been generated
grep SF lcov.info | sort -u | sed 's/SF://'
- name: Upload to codecov.io
# version 3.1.5 upgrades to Node 20 (https://github.com/codecov/codecov-action/issues/1230), which breaks inside our container
Expand Down

0 comments on commit cbdeb2e

Please sign in to comment.