Skip to content

Remove deterministic build feature hack for 3.1.300+ SDK #900

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

Closed
MarcoRossignoli opened this issue Jul 13, 2020 · 18 comments · Fixed by #965
Closed

Remove deterministic build feature hack for 3.1.300+ SDK #900

MarcoRossignoli opened this issue Jul 13, 2020 · 18 comments · Fixed by #965
Labels
enhancement General enhancement request

Comments

@MarcoRossignoli
Copy link
Collaborator

Ref issue #882 (comment)

@gitfool
Copy link

gitfool commented Aug 30, 2020

@MarcoRossignoli I'd also love to see this fixed and published in a stable version.

@clairernovotny
Copy link
Contributor

clairernovotny commented Oct 6, 2020

You should be able to depend on InitializeSourceRootMappedPaths to return the SourceRoot items directly.
https://github.com/dotnet/roslyn/blob/c64d1e3a7b3e2b6d5a71ca4ceb5848bcd79a0970/src/Compilers/Core/MSBuildTask/Microsoft.Managed.Core.targets#L186-L202

The target initially didn't return anything and in 3.1.300 it was changed to return those items.

@MarcoRossignoli
Copy link
Collaborator Author

@MarcoRossignoli
Copy link
Collaborator Author

@gitfool pls can you try(tomorrow, we build at midnight) to test with nightly removing the workaround to confirm that with sdk >= 3.1.100 the workaround is not needed anymore? https://github.com/coverlet-coverage/coverlet/blob/master/Documentation/ConsumeNightlyBuild.md

@MarcoRossignoli MarcoRossignoli unpinned this issue Oct 13, 2020
@gitfool
Copy link

gitfool commented Oct 14, 2020

@MarcoRossignoli it's now midnight (GMT) but I don't see a new preview for coverlet.collector. I guess I need to wait another day?

@MarcoRossignoli
Copy link
Collaborator Author

MarcoRossignoli commented Oct 14, 2020

Oh issue with myget quota https://dev.azure.com/tonerdo/coverlet/_build/results?buildId=1197&view=logs&j=12f1170f-54f2-53f3-20dd-22fc7dff55f9&t=7dae026f-9e99-5d65-075e-3f7579577f94 cc: @tonerdo can you cleanup all version older than last month?

@clairernovotny is there some unlimited nuget feed service provided by foundation?Or what is the most used way by other?Didn't check for a while are github package feats complete right now?

@gitfool I attach here master packages, move to a local folder and use it as nuget feed source.

preview.34.zip

@gitfool
Copy link

gitfool commented Oct 14, 2020

@MarcoRossignoli it works!

Specifically, I removed the Directory.Build.targets workaround so coverlet.collector 1.3.1-preview.27.gdd2237a3be reported no coverage; then I bumped it to 1.3.1-preview.34 via local NuGet source and it reported coverage as expected. 🎉

@MarcoRossignoli
Copy link
Collaborator Author

Great thanks a lot for your time! Really appreciated!

@gitfool
Copy link

gitfool commented Oct 14, 2020

You're welcome. If you don't mind me asking, will we see this in a stable release soonish?

@MarcoRossignoli
Copy link
Collaborator Author

MarcoRossignoli commented Oct 14, 2020

soonish

Is on plan...but I don't have ETA atm, my desire is to fix other 3 nasty issues and align versions to 3.0.0

Simple ones #874 #705 (waiting for vstest team answer)
Complex #936 every new c# compiler release we have some pain on new patterns

@clairernovotny
Copy link
Contributor

clairernovotny commented Oct 14, 2020

We recommend moving away from MyGet. Artifacts/Pipelines is free for opens source projects so you can use your own account or we can set you up on the .NET Foundation one. Since you're already using DevOps, I'd just create a public feed there and push to that.

@MarcoRossignoli
Copy link
Collaborator Author

OK thanks!

@eduherminio
Copy link

@MarcoRossignoli Please let us know as soon as you have any ETA for the next stable version.

@JimBobSquarePants
Copy link

Is there a 1.3.1-preview.34 available to anyone else?

@MarcoRossignoli
Copy link
Collaborator Author

We're in the middle of nightly update(#969) so for the moment the last version is on my tmp feed https://f.feedz.io/marcorossignoli/coverletunofficial/nuget/index.json

@JimBobSquarePants
Copy link

Thanks!

@MarcoRossignoli
Copy link
Collaborator Author

Is there a 1.3.1-preview.34 available to anyone else?

Also we consolidate all versions to 3.0.0(since next release).

@StefH
Copy link

StefH commented Nov 30, 2020

Hello @MarcoRossignoli , is it possible that you already provide a 3.0.0-preview on NuGet ?

eduherminio added a commit to eduherminio/SheepTools that referenced this issue Jan 9, 2021
Bump Coverlet version and remove deterministic builds workaround (coverlet-coverage/coverlet#900).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement General enhancement request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants