Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support incremental compilation with coverage instrumentation #22641

Open
lolgab opened this issue Feb 23, 2025 · 0 comments
Open

Support incremental compilation with coverage instrumentation #22641

lolgab opened this issue Feb 23, 2025 · 0 comments

Comments

@lolgab
Copy link
Contributor

lolgab commented Feb 23, 2025

Currently, coverage instrumentation data gets deleted and recreated from scratch at every compiler run, regardless if it is an incremental compilation run.
This makes it impossible to reuse instrumentation data and incremental compilation and requires to run clean and recompile everything if you want to have reliable coverage information.
This happens in Scala 2 and in Scala 3.

There is already a ticket in the Scala2 scoverage plugin scoverage/scalac-scoverage-plugin#492, but since in Scala 3 coverage was moved inside the main compiler repository, I'm creating a companion issue here.

This makes it impossible to cache sbt target in CIs if coverage information is needed, making Scala continuous integration much slower than it should be (you need to recompile a whole codebase even if a single line was changed).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant