Skip to content

Code-coverage should be more precise in disabling package images #48071

Closed
@vchuravy

Description

@vchuravy

Currently using anyform of code-coverage turns of support for package images.
Code-coverage is implemented by emitting LLVM IR that tracks the use of lines,
and it wasn't clear for me if this is something we would want to cache.

Most of the user CI is run with code-coverage enabled and as such does not use pkgimages yet, giving us little coverage outside PkgEval of how this feature interacts with users. So we are not testing the default user experience on package CI.

I was thinking about how we could fix that and we recently introduced --code-coverage=@path which only filters the paths on which we will enable code-coverage. Sadly this is still a global flag.

Ideally we would be able to create and load a pkgimage for a dependency of the user package that is being instrumented.

cc: @timholy @IanButterworth

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions