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

Try using helix sdk support directly again #23585

Merged
merged 21 commits into from
Jul 22, 2020
Merged

Try using helix sdk support directly again #23585

merged 21 commits into from
Jul 22, 2020

Conversation

HaoK
Copy link
Member

@HaoK HaoK commented Jul 1, 2020

@ghost ghost added the area-infrastructure Includes: MSBuild projects/targets, build scripts, CI, Installers and shared framework label Jul 1, 2020
eng/helix/helix.proj Outdated Show resolved Hide resolved
@HaoK
Copy link
Member Author

HaoK commented Jul 6, 2020

@Tratcher @jkotalik looks like all of the IIS functional tests are failing on this PR, but everything else is working, can you guys take a look and see if its obvious what's going on? The main difference in this PR is we switched to using the build in helix sdk support, so its possible some of the paths and side effects are slightly different, not sure if IIS functionals are relying on anything there...

@HaoK
Copy link
Member Author

HaoK commented Jul 6, 2020

Direct link to a build with the failing tests, since I'm going to fix a build warning in the PR:

https://dev.azure.com/dnceng/public/_build/results?buildId=715506&view=ms.vss-test-web.build-test-results-tab&runId=22171954&paneView=debug

eng/helix/helix.proj Outdated Show resolved Hide resolved
@HaoK HaoK linked an issue Jul 7, 2020 that may be closed by this pull request
@HaoK
Copy link
Member Author

HaoK commented Jul 9, 2020

Status of this PR is waiting for the arcade changes to propogate, and then rebase to see if things go green (NetCoreSDK isn't set right now so runs are all broken)

@JunTaoLuo
Copy link
Contributor

What arcade changes is this waiting on? Is this blocked on #23978?

@dougbu
Copy link
Member

dougbu commented Jul 21, 2020

Is this blocked on #23978?

Yes

@JunTaoLuo
Copy link
Contributor

FYI this should be unblocked.

@HaoK HaoK marked this pull request as ready for review July 22, 2020 16:57
@HaoK
Copy link
Member Author

HaoK commented Jul 22, 2020

Nice, with the new arcade changes, looks like the built in helix sdk support works for us now, marking as ready for review

Copy link
Member

@dougbu dougbu left a comment

Choose a reason for hiding this comment

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

Change looks fine. Just not positive whether it improves one area.

set DOTNET_HOME=%HELIX_CORRELATION_PAYLOAD%\sdk
set DOTNET_ROOT=%DOTNET_HOME%\%$arch%
set DOTNET_ROOT=%HELIX_CORRELATION_PAYLOAD%\dotnet
set DOTNET_HOME=%DOTNET_ROOT%
Copy link
Member

Choose a reason for hiding this comment

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

In our previous conversations about this change and about incorrectly changing the payload folders, I got the impression we were getting out from under the payload folders with this PR. Won't we hit leftover files still❔

I'm hoping this is fine and that I misunderstood you and @MattGal 😈

Copy link
Member Author

Choose a reason for hiding this comment

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

If we want to install the runtime to a different directory we can still do that in a different PR, that's orthogonal to using the sdk support

@@ -117,8 +117,8 @@ Usage: dotnet msbuild /t:Helix src/MyTestProject.csproj
<TestAssembly>$(TargetFileName)</TestAssembly>
<PreCommands>@(HelixPreCommand)</PreCommands>
<PostCommands>@(HelixPostCommand)</PostCommands>
<Command Condition="$(IsWindowsHelixQueue)">call runtests.cmd $(TargetFileName) $(NETCoreSdkVersion) $(MicrosoftNETCoreAppRuntimeVersion) $(_HelixFriendlyNameTargetQueue) $(TargetArchitecture) $(RunQuarantinedTests) $(DotnetEfPackageVersion) Microsoft.AspNetCore.App.Runtime.win-x64.$(AppRuntimeVersion).nupkg Microsoft.AspNetCore.App.Ref.$(AppRuntimeVersion).nupkg $(HelixTimeout)</Command>
<Command Condition="!$(IsWindowsHelixQueue)">./runtests.sh $(TargetFileName) $(NETCoreSdkVersion) $(MicrosoftNETCoreAppRuntimeVersion) $(_HelixFriendlyNameTargetQueue) $(TargetArchitecture) $(RunQuarantinedTests) $(DotnetEfPackageVersion) Microsoft.AspNetCore.App.Runtime.win-x64.$(AppRuntimeVersion).nupkg Microsoft.AspNetCore.App.Ref.$(AppRuntimeVersion).nupkg $(HelixTimeout)</Command>
<Command Condition="$(IsWindowsHelixQueue)">call runtests.cmd $(TargetFileName) $(MicrosoftNETCoreAppRuntimeVersion) $(_HelixFriendlyNameTargetQueue) $(TargetArchitecture) $(RunQuarantinedTests) $(DotnetEfPackageVersion) Microsoft.AspNetCore.App.Runtime.win-x64.$(AppRuntimeVersion).nupkg Microsoft.AspNetCore.App.Ref.$(AppRuntimeVersion).nupkg $(HelixTimeout)</Command>
Copy link
Member

Choose a reason for hiding this comment

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

Suggestion: Typically this would be expressed like:
Condition=" '$(IsWindowsHelixQueue)' == 'true' "> or Condition=" '$(IsWindowsHelixQueue)' != 'true' ">

Copy link
Member

Choose a reason for hiding this comment

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

@MattGal that's true when the property defaults to empty. But, when a property is always set to true or false, using it directly as a bool is easier to read and 💯% supported in msbuild and dotnet msbuild.

Copy link
Member

Choose a reason for hiding this comment

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

<IsWindowsHelixQueue>false</IsWindowsHelixQueue>
<IsWindowsHelixQueue Condition="$(HelixTargetQueue.Contains('Windows')) or $(HelixTargetQueue.Contains('windows'))">true</IsWindowsHelixQueue>

@Pilchie
Copy link
Member

Pilchie commented Jul 22, 2020

👀

@HaoK HaoK merged commit 059fe39 into master Jul 22, 2020
@HaoK HaoK deleted the haok/helix-cli branch July 22, 2020 17:50
HaoK added a commit that referenced this pull request Jul 23, 2020
ghost pushed a commit that referenced this pull request Jul 23, 2020
HaoK added a commit that referenced this pull request Jul 24, 2020
HaoK added a commit that referenced this pull request Jul 27, 2020
HaoK added a commit that referenced this pull request Aug 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-infrastructure Includes: MSBuild projects/targets, build scripts, CI, Installers and shared framework
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Helix] Need to stop permanently modifying path on windows
7 participants