Skip to content

Revert disabling the toolset package in Helix#42860

Merged
marcpopMSFT merged 4 commits intodotnet:release/9.0.1xxfrom
jjonescz:tearing-helix
Aug 28, 2024
Merged

Revert disabling the toolset package in Helix#42860
marcpopMSFT merged 4 commits intodotnet:release/9.0.1xxfrom
jjonescz:tearing-helix

Conversation

@jjonescz
Copy link
Copy Markdown
Member

Resolves #42845.

@ghost ghost added Area-Infrastructure untriaged Request triage from a team member labels Aug 20, 2024
@jjonescz jjonescz marked this pull request as ready for review August 21, 2024 14:13
@jjonescz jjonescz requested a review from a team as a code owner August 22, 2024 14:22
@jjonescz jjonescz marked this pull request as draft August 22, 2024 17:08
@jjonescz jjonescz force-pushed the tearing-helix branch 2 times, most recently from 017efb9 to b0acfed Compare August 23, 2024 09:12
@jjonescz jjonescz marked this pull request as ready for review August 23, 2024 11:14
@jjonescz jjonescz removed the request for review from a team August 23, 2024 11:14
@jjonescz
Copy link
Copy Markdown
Member Author

@marcpopMSFT @jaredpar @baronfel for reviews, thanks

<PropertyGroup Condition="'$(BuildWithNetFrameworkHostedCompiler)' == 'true' and '$(OS)' == 'Windows_NT'">
<RoslynTargetsPath>$(NuGetPackageRoot)\microsoft.net.sdk.compilers.toolset\$(NETCoreSdkVersion)</RoslynTargetsPath>
<_NeedToDownloadMicrosoftNetSdkCompilersToolsetPackage>true</_NeedToDownloadMicrosoftNetSdkCompilersToolsetPackage>
<_SkipCheckMicrosoftNetSdkCompilersToolsetPackageExists Condition="'$(NuGetPackageRoot)' == ''">true</_SkipCheckMicrosoftNetSdkCompilersToolsetPackageExists>
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add a comment/link to the issues/discussions that triggered this check? I expect future-us to forget and having some record of why this was necessary would be helpful.

Comment thread build/RunTestsOnHelix.cmd
dotnet nuget list source --configfile %TestExecutionDirectory%\nuget.config
PowerShell -ExecutionPolicy ByPass "dotnet nuget locals all -l | ForEach-Object { $_.Split(' ')[1]} | Where-Object{$_ -like '*cache'} | Get-ChildItem -Recurse -File -Filter '*.dat' | Measure"
dotnet nuget add source %DOTNET_ROOT%\.nuget --configfile %TestExecutionDirectory%\nuget.config
if exist %TestExecutionDirectory%\Testpackages dotnet nuget add source %TestExecutionDirectory%\Testpackages --name testpackages --configfile %TestExecutionDirectory%\nuget.config
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does the script work as is for local helix execution or are changes needed to the instructions here: https://github.com/dotnet/sdk/blob/main/documentation/project-docs/repro-helix-failure.md

We don't do this often but that means it's fragile to changes if we're not careful.

Copy link
Copy Markdown
Member Author

@jjonescz jjonescz Aug 27, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Didn't know about this doc, thanks.

I've followed the instructions and they seem to work, in particular the nuget source is added correctly:

C:\temp\helix\payload-dir>if exist C:\Users\janjones\AppData\Local\Temp\dotnetSdkTests\jxi5tacr.5hi\Testpackages dotnet nuget add source C:\Users\janjones\AppData\Local\Temp\dotnetSdkTests\jxi5tacr.5hi\Testpackages --name testpackages --configfile C:\Users\janjones\AppData\Local\Temp\dotnetSdkTests\jxi5tacr.5hi\nuget.config
Package source with Name: testpackages added successfully.

Copy link
Copy Markdown
Member Author

@jjonescz jjonescz Aug 27, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

btw, this PR is targeting branch release/9.0.1xx, let me know if that's not correct

@baronfel
Copy link
Copy Markdown
Member

Gonna let Marc see your comment about the Helix stuff, but then this LGTM. This branch is great for the GA release - we'll want to do a backport to main once it merges.

@jjonescz
Copy link
Copy Markdown
Member Author

@marcpopMSFT if this looks good, feel free to merge, thanks

@marcpopMSFT
Copy link
Copy Markdown
Member

Looks like the local helix repro steps work with this change so we should be good here (that was my main concern).

@marcpopMSFT marcpopMSFT merged commit 0030622 into dotnet:release/9.0.1xx Aug 28, 2024
@jjonescz jjonescz deleted the tearing-helix branch August 29, 2024 07:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area-Infrastructure untriaged Request triage from a team member

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants