From cbdeb2eff40018ece5842fc383aa0e9be0d71f7e Mon Sep 17 00:00:00 2001 From: Christopher Schwan Date: Fri, 2 Feb 2024 10:01:36 +0100 Subject: [PATCH] Try to debug 'mismatched data' warning when generating code coverage --- .github/workflows/rust.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index b1e043cb..7e5512ba 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -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' \ @@ -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