Skip to content

Strange coverage results from -C instrument-coverage #102477

@Mingun

Description

@Mingun

I do not know in what part the problem begins, so if rustc has nothing to do with it, please tell me how to check that. I'm a maintainer of quick-xml and I setup a coverage for it and collect coverage, using RUSTFLAGS: -C instrument-coverage.

However, results on codecov.io looks very strange:

Meta

The coverage is collected by GitHub ubuntu-latest runner, currently it reports Rust 1.64.0, but the issue was there since coverage was added to quick-xml, i.e. at least since 2022-05-30. The corresponding GitHub Actions file: https://github.com/tafia/quick-xml/blob/240f2049aec50876b6e13e632120b20cd60a37af/.github/workflows/rust.yml

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-code-coverageArea: Source-based code coverage (-Cinstrument-coverage)C-bugCategory: This is a bug.S-needs-reproStatus: This issue has no reproduction and needs a reproduction to make progress.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions