-
Notifications
You must be signed in to change notification settings - Fork 388
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
Deterministic build, Coverlet throws a KeyNotFoundException when ContinuousIntegrationBuild = true. #882
Comments
Can you confirm that if you remove |
Actually no. It works when |
Oh sorry, I think I misread your question. Yes it works fine when I remove |
Yep I mean |
Just to be crystal clear, the default values for
This one fails:
|
Ok the issue is source link plus deterministic build. Need to investigate further this scenario, thanks for reporting this. |
Upon further investigations, I think the problem is with generate files. If we force
|
Thanks a lot for investigation! |
@MarcoRossignoli as requested on Twitter here: https://twitter.com/MarcoRossignoli/status/1280043730960093184 I have updated my build to no longer pass in Thanks for the tip. Let me know if there is anything that I can do to help with the testing of this issue. |
Thanks for the test! |
Thanks @chtoucas can repro on my local, I'll take a look asap, sorry guys but are very busy months I'm near prod release on my daily job so you know what I mean 🙏 |
Hi guys can someone of you give it a try using our nightly(tomorrow we release every midnight)? https://github.com/coverlet-coverage/coverlet/blob/master/Documentation/ConsumeNightlyBuild.md |
@MarcoRossignoli we (or rather @AdmiringWorm) have a test ready to go. We will execute this once the latest nightly version is available. Thanks for looking into this, really appreciate it! |
@MarcoRossignoli just finished the tests I had set up, and everything seems to work as it should with the latest nightly. Tried both with and without the workaround mentioned here. NOTE: These tests were run using the coverlet MSBuild version |
Thanks a lot @MarcoRossignoli! I tried with two repositories, one being rather complex, and everything works fine with either coverlet.msbuild or coverlet.collector, and with By the way, we still need to patch |
cc: @clairernovotny |
@MarcoRossignoli do you have any estimate as to when you will be looking to publish a new version to NuGet.org? Thanks |
We planned to release evey quarter, this time we release before for deterministic feature, we could release a fix or a new version as planned(I've a PR ready with a new feat also I'll let you know, for now you can use nightly. |
There are two issues that 300 fixed:
@MarcoRossignoli were you able to update coverlet to use the built-in target to get the |
Will take a look asap. |
Hello, when I try to run Coverlet (MSBuild or VSTest integration)
with
UseSourceLink = true
andContinuousIntegrationBuild = true
, it throws aKeyNotFoundException
.Here is a very simple repository that reproduces the error. The exact commands that I use are:
and
If I use
ContinuousIntegrationBuild = false
, everything works fine.Context:
CoverletGetPathMap
The text was updated successfully, but these errors were encountered: