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

DeterministicBuild workaround doc version misleading #1008

Closed
Confuzed opened this issue Dec 6, 2020 · 5 comments
Closed

DeterministicBuild workaround doc version misleading #1008

Confuzed opened this issue Dec 6, 2020 · 5 comments
Labels
as-designed Expected behaviour Solved The issue is solved and can be closed

Comments

@Confuzed
Copy link

Confuzed commented Dec 6, 2020

The Problem

I have been trying to work out why my coverage reports were empty when my project is built by GitHub actions. Searching the issues and doc's here I did find the information about the Deterministic workaround (here). Initially I dismissed the workaround because it states in the title 'only for .NET Core SDK < 3.1.100'. My project is using SDK 3.1.404. When I couldn't find any other hints I decided to try the workaround anyway, and that does in fact fix the issue.

More Information

Interestingy, the issue only seems to present itself when I add SourceLink support to the project being tested, regardless of the presence of the ContinuousIntegrationBuild property in the project.

I have a repository where I did my testing for this, which you're welcome to check. You'll see that I was making changes in steps to make the project closer to that of my "real" project until I found where the coverage report became empty. Then I added the branch 'deterministic-workaround' to test the workaround. You can see the results in the Actions tab.

Suggested Solution

In the short-term, update the documentation to make it clear that the workaround does apply to 3.1.404, at least if SourceLink is present. I don't know whether there is also a code-fix that can be made later.

@MarcoRossignoli MarcoRossignoli added the as-designed Expected behaviour label Dec 12, 2020
@MarcoRossignoli
Copy link
Collaborator

MarcoRossignoli commented Dec 12, 2020

The issue is that documentation reflect master version not yet deployed at the moment deterministic workaround is needed for version < 3.1.00 and also there was a bug for source link, fixed on master.

https://github.com/coverlet-coverage/coverlet/blob/master/Documentation/Changelog.md#fixed

Take a look at fixed and added section

-Fix deterministic build+source link bug #895
-Remove workaround for deterministic build for sdk >= 3.1.100 #965

Feel free to close if you don't have any other question.

Meanwhile you can try with my tmp nuget feed(we have some issue on official nightly feed) https://f.feedz.io/marcorossignoli/coverletunofficial/nuget/index.json

@MarcoRossignoli MarcoRossignoli added the Solved The issue is solved and can be closed label Dec 12, 2020
@tonyhallett
Copy link
Contributor

@MarcoRossignoli when are you releasing v3 proposed for 1/7 ? It is misleading/confusing when the docs mention features that are only present in nightly.

@MarcoRossignoli
Copy link
Collaborator

MarcoRossignoli commented Dec 12, 2020

It is misleading/confusing when the docs mention features that are only present in nightly.

I apologize, you're right, past months were a bit chaotic for me and I hadn't enough time to take care of coverlet. Sorry, sometimes OSS has got this kind of problem(maintainers free time).
Anyway, I'd like to push new version to official before end of year, I'd like to understand if I can fix also #992 before that deadline because is a new feature used a lot today.

Pls feel free to use my tmp feed for now.

@tonerdo do you have some ETA for nightly fix?

@Confuzed
Copy link
Author

@MarcoRossignoli Obviously the view that consumers will have of the repository is the head of the default branch, so its better when that reflects the latest release rather than the "in development" version. A frustrating situation, but common on GitHub! 🙄

Thank you for the feedback. I'll leave my workaround in place until the next release is available. You can close this issue if you don't intend to use it to track any changes or discussion. 👍

@MarcoRossignoli
Copy link
Collaborator

MarcoRossignoli commented Dec 12, 2020

A frustrating situation, but common on GitHub! 🙄

Yep I know, here we were a bit late with the planning so it's our fault. Usually we release after big updates/fix so documentation is not out of synch for much time.

I'll close this for now because I don't have fix to do and I prefer keep backlog clean.

Thanks a lot for your advice and sorry for the "frustration", but thanks for using coverlet!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
as-designed Expected behaviour Solved The issue is solved and can be closed
Projects
None yet
Development

No branches or pull requests

3 participants