-
Notifications
You must be signed in to change notification settings - Fork 10.4k
Try using helix sdk support directly again #23585
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
Changes from all commits
99eec40
89f4e78
7fe916a
8a17c83
bd61788
8069366
e672b5b
f8803f4
32c8bd6
9afddd5
47e3e55
234dd7e
91bcabf
89ca365
f23e13a
b67e31e
c30bcf6
a228673
923927f
6c5dd32
324a900
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,35 +4,36 @@ setlocal enabledelayedexpansion | |
|
||
REM Use '$' as a variable name prefix to avoid MSBuild variable collisions with these variables | ||
set $target=%1 | ||
set $sdkVersion=%2 | ||
set $runtimeVersion=%3 | ||
set $queue=%4 | ||
set $arch=%5 | ||
set $quarantined=%6 | ||
set $ef=%7 | ||
set $aspnetruntime=%8 | ||
set $aspnetref=%9 | ||
REM Batch only supports up to 9 arguments using the %# syntax, need to shift to get more | ||
shift | ||
set $runtimeVersion=%2 | ||
set $queue=%3 | ||
set $arch=%4 | ||
set $quarantined=%5 | ||
set $ef=%6 | ||
set $aspnetruntime=%7 | ||
set $aspnetref=%8 | ||
set $helixTimeout=%9 | ||
REM Batch only supports up to 9 arguments using the %# syntax, need to shift to get more | ||
|
||
set DOTNET_HOME=%HELIX_CORRELATION_PAYLOAD%\sdk | ||
set DOTNET_ROOT=%DOTNET_HOME%\%$arch% | ||
set DOTNET_ROOT=%HELIX_CORRELATION_PAYLOAD%\dotnet | ||
HaoK marked this conversation as resolved.
Show resolved
Hide resolved
|
||
set DOTNET_HOME=%DOTNET_ROOT% | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 😈 There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 |
||
set DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1 | ||
set DOTNET_MULTILEVEL_LOOKUP=0 | ||
set DOTNET_CLI_HOME=%HELIX_CORRELATION_PAYLOAD%\home | ||
|
||
set PATH=%DOTNET_ROOT%;!PATH!;%HELIX_CORRELATION_PAYLOAD%\node\bin | ||
echo Set path to: %PATH% | ||
echo "Invoking InstallDotNet.ps1 %$arch% %$sdkVersion% %$runtimeVersion% %DOTNET_ROOT%" | ||
powershell.exe -NoProfile -ExecutionPolicy unrestricted -file InstallDotNet.ps1 %$arch% %$sdkVersion% %$runtimeVersion% %DOTNET_ROOT% | ||
echo "Invoking InstallDotNet.ps1 %$arch% %$runtimeVersion% %DOTNET_ROOT%" | ||
powershell.exe -NoProfile -ExecutionPolicy unrestricted -file InstallDotNet.ps1 %$arch% %$runtimeVersion% %DOTNET_ROOT% | ||
|
||
dotnet --list-sdks | ||
dotnet --list-runtimes | ||
|
||
set exit_code=0 | ||
echo "Restore: dotnet restore RunTests\RunTests.csproj --source https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet5/nuget/v3/index.json --source https://api.nuget.org/v3/index.json --ignore-failed-sources..." | ||
dotnet restore RunTests\RunTests.csproj --source https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet5/nuget/v3/index.json --source https://api.nuget.org/v3/index.json --ignore-failed-sources | ||
|
||
echo "Running tests: dotnet run --project RunTests\RunTests.csproj -- --target %$target% --sdk %$sdkVersion% --runtime %$runtimeVersion% --queue %$queue% --arch %$arch% --quarantined %$quarantined% --ef %$ef% --aspnetruntime %$aspnetruntime% --aspnetref %$aspnetref% --helixTimeout %$helixTimeout%..." | ||
dotnet run --project RunTests\RunTests.csproj -- --target %$target% --sdk %$sdkVersion% --runtime %$runtimeVersion% --queue %$queue% --arch %$arch% --quarantined %$quarantined% --ef %$ef% --aspnetruntime %$aspnetruntime% --aspnetref %$aspnetref% --helixTimeout %$helixTimeout% | ||
echo "Running tests: dotnet run --project RunTests\RunTests.csproj -- --target %$target% --runtime %$runtimeVersion% --queue %$queue% --arch %$arch% --quarantined %$quarantined% --ef %$ef% --aspnetruntime %$aspnetruntime% --aspnetref %$aspnetref% --helixTimeout %$helixTimeout%..." | ||
dotnet run --project RunTests\RunTests.csproj -- --target %$target% --runtime %$runtimeVersion% --queue %$queue% --arch %$arch% --quarantined %$quarantined% --ef %$ef% --aspnetruntime %$aspnetruntime% --aspnetref %$aspnetref% --helixTimeout %$helixTimeout% | ||
if errorlevel neq 0 ( | ||
set exit_code=%errorlevel% | ||
) | ||
|
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -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> | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Suggestion: Typically this would be expressed like: There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. aspnetcore/eng/targets/Helix.props Lines 17 to 18 in 324a900
|
||||||
<Command Condition="!$(IsWindowsHelixQueue)">./runtests.sh $(TargetFileName) $(MicrosoftNETCoreAppRuntimeVersion) $(_HelixFriendlyNameTargetQueue) $(TargetArchitecture) $(RunQuarantinedTests) $(DotnetEfPackageVersion) Microsoft.AspNetCore.App.Runtime.win-x64.$(AppRuntimeVersion).nupkg Microsoft.AspNetCore.App.Ref.$(AppRuntimeVersion).nupkg $(HelixTimeout)</Command> | ||||||
<Command Condition="$(HelixCommand) != ''">$(HelixCommand)</Command> | ||||||
<Timeout>$(HelixTimeout)</Timeout> | ||||||
</HelixWorkItem> | ||||||
|
Uh oh!
There was an error while loading. Please reload this page.