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

[Poison] TestHost files are leaking to source-built SDK #2579

Closed
crummel opened this issue Oct 26, 2021 · 6 comments
Closed

[Poison] TestHost files are leaking to source-built SDK #2579

crummel opened this issue Oct 26, 2021 · 6 comments
Assignees
Labels
area-product-experience Improvements in the end-user's product experience

Comments

@crummel
Copy link
Contributor

crummel commented Oct 26, 2021

<File Path="zfwzfb3h.eei/dotnet-sdk-6.0.100-fedora.34-x64.tar.22/sdk/6.0.100/testhost.x86">
    <Hash>f59e4eb1ede8d7129706577530d05f04c93f29276d05e3055b74ffac553a229a</Hash>
    <Type>Hash</Type>
    <Match Package="/home/chris/tarball/packages/archive/art/Microsoft.TestPlatform.CLI.17.0.0.nupkg" PackageId="Microsoft.TestPlatform.CLI" PackageVersion="17.0.0" File="contentFiles/any/net6.0/testhost.x86" />
    <Match Package="/home/chris/tarball/packages/archive/art/Microsoft.TestPlatform.CLI.17.0.0.nupkg" PackageId="Microsoft.TestPlatform.CLI" PackageVersion="17.0.0" File="contentFiles/any/net6.0/TestHost/testhost.x86" />
  </File>

i.e., dotnet-sdk-6.0.100-fedora.34-x64.tar.gz/sdk/6.0.100/testhost.x86 is byte-for-byte identical to the previously-source-built's Microsoft.TestPlatform.CLI.17.0.0.nupkg/contentFiles/any/net6.0/testhost.x86.

@dotnet-issue-labeler
Copy link

I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label.

@crummel
Copy link
Contributor Author

crummel commented Oct 26, 2021

@omajid This seems like the most troublesome poison failure to me but I also think we can just delete these files out of the final Linux distribution and not lose any functionality (since these files don't even appear in the MSFT build). What do you think?

@omajid
Copy link
Member

omajid commented Oct 26, 2021

If deleting these files keeps the SDK functional, that works for me.

Should we look at a longer-term fix too, though?

@omajid
Copy link
Member

omajid commented Oct 26, 2021

One thing that's not clear to me: once we get bootstrap fully functional and we have .NET building using a previously self-built .NET SDK, will something be building Microsoft.TestPlatform.CLI? Or will vstest.console and testhost.x86 be copied as a prebuilt over to all subsequent builds?

@crummel
Copy link
Contributor Author

crummel commented Oct 26, 2021

Should we look at a longer-term fix too, though?

Yes, but I don't know that we'll have it ready for 6.0.100.

will something be building Microsoft.TestPlatform.CLI?

I believe this should be getting built out of vstest. I think the issue though is that we're including these in the SDK where the MSFT-built SDK does not (#2570), so really the resolution will just be to stop whatever is letting those files sneak in.

@NikolaMilosavljevic
Copy link
Member

Not an issue anymore after dotnet/installer#15347

@github-project-automation github-project-automation bot moved this from 8.0 Backlog to Done in .NET Source Build Jan 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-product-experience Improvements in the end-user's product experience
Projects
Archived in project
Development

No branches or pull requests

4 participants