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

Bring up full library test CI runs on iOS / tvOS devices #59503

Merged
merged 80 commits into from
Nov 2, 2021
Merged
Show file tree
Hide file tree
Changes from 25 commits
Commits
Show all changes
80 commits
Select commit Hold shift + click to select a range
64ef141
iOS AOT run w/ smaller test files
Aug 13, 2021
f7f87f7
Merge remote-tracking branch 'upstream/main' into test-zip-app
Aug 13, 2021
2e1ee0e
Bump timeout. Skip some tests that fail aot
Aug 14, 2021
336ec94
Merge remote-tracking branch 'upstream/main' into test-zip-app
Aug 14, 2021
9b29dc5
Print out space used and number of tests processed
Aug 15, 2021
4d678d5
Structure iOS test build to be able to run on helix
Sep 3, 2021
c42ef12
Get past race by enabling logging. Test passes on helix now
Sep 9, 2021
c69a4cd
Enable building on helix for other apple configurations
Sep 9, 2021
5324672
Integrate soft trimming
Sep 14, 2021
f052234
Update template to work with arcade changes
Sep 20, 2021
fe39010
Merge remote-tracking branch 'upstream/main' into build-ios-tests-helix
Sep 20, 2021
d610108
Post merge with main adjustments
Sep 21, 2021
f7bb825
Bring up library tests on iOS / tvOS devices
Sep 22, 2021
f084ae9
Bump arcade / cleanup
Sep 23, 2021
17a2bb2
fix sim runs
Sep 24, 2021
e5d84bc
Build tweaks to fix running tests locally
Sep 28, 2021
2b2d451
Merge remote-tracking branch 'upstream/main' into build-ios-tests-helix
Sep 28, 2021
c17c79e
Preserve more
Sep 28, 2021
7b4eda7
iOS arm64 runs take about 3 hours to complete. Use tvOS to get enough…
Sep 28, 2021
074f565
Figure out why tvos is taking forever uploading to helix.
Sep 28, 2021
abc79f2
Get sim lanes working. Move back to AggressiveTrimming
Sep 28, 2021
e5e136b
Save size by chopping native assets on the build machine and reassemb…
Sep 29, 2021
d8f104e
move binlog mv to sep step
Sep 29, 2021
5d9baa6
Make sure aot/process arguments are populated in the right spot
Sep 29, 2021
784cb6b
Remove trimming so that we can exclude the runtime pack from the arti…
Sep 29, 2021
c4c83fa
Fixup xml tests and debug/release local builds
Oct 7, 2021
9fbb6c7
Merge remote-tracking branch 'upstream/main' into build-ios-tests-helix
Oct 7, 2021
62e907f
Don't use iOS device runs for now. Too little capacity
Oct 7, 2021
7b5ea33
Incorporate MonoTargetsTask
Oct 7, 2021
f90e00e
Skip generic math tests and additional test cleanup (paths)
Oct 8, 2021
650209b
Fix test
Oct 8, 2021
92259e2
Test fixup
Oct 8, 2021
5503e2b
Tweak
Oct 9, 2021
6023b0c
Set MONO_AOT_MODE environment variable to enable PlatformDetection.Is…
MaximLipnin Oct 11, 2021
891d814
Merge remote-tracking branch 'upstream/main' into build-ios-tests-helix
Oct 11, 2021
9038a81
Enable System.Runtime tests on iOS devices only. Disable some tests
Oct 11, 2021
3415de4
Merge remote-tracking branch 'origin/build-ios-tests-helix' into buil…
Oct 11, 2021
25574ed
Skip SRE and fix more tests
Oct 11, 2021
fe194f7
Merge remote-tracking branch 'upstream/main' into build-ios-tests-helix
Oct 12, 2021
56b30b7
Merge branch 'main' into build-ios-tests-helix
MaximLipnin Oct 12, 2021
2c4add6
Use a platform detection not a runtime feature
MaximLipnin Oct 12, 2021
61a895c
Skip more tests that use sre
Oct 12, 2021
41a9f51
Make sure runtimeconfig.bin is generated.
Oct 12, 2021
8ef6c49
Wrong name for runtimeconfig
Oct 12, 2021
ddc2b64
tweak
Oct 12, 2021
b52675b
Skip some tests - bump work item timeout
Oct 13, 2021
633a8f1
Exclude JitInfoIsNotPopulated test when dynamic code is not supported
MaximLipnin Oct 13, 2021
8653d81
Mark one test with an active issue on iOS
MaximLipnin Oct 13, 2021
b862450
Make sure the right test timeout is being passed along
Oct 13, 2021
2189974
Merge branch 'main' into build-ios-tests-helix
MaximLipnin Oct 14, 2021
aa50b69
Exclude more SRE tests
MaximLipnin Oct 14, 2021
d4f38c4
Exclude satellite assemblies from being AOT'd / System.Runtime.Loader…
Oct 14, 2021
f37b1cb
Merge remote-tracking branch 'origin/build-ios-tests-helix' into buil…
Oct 14, 2021
458fb58
Mark some serialization tests with an active issue on iOS/tvOS
MaximLipnin Oct 15, 2021
637c061
Merge branch 'main' into build-ios-tests-helix
MaximLipnin Oct 15, 2021
a5263c1
Mark more serialization tests with an active issue
MaximLipnin Oct 15, 2021
128238e
Mark some System.Threading.Channels.Tests with an active issue
MaximLipnin Oct 15, 2021
8ce67d4
Skip more tests that use SRE
Oct 15, 2021
7a8f49c
Active issue and skip more tests
Oct 18, 2021
3b4c602
Skip more tests
Oct 19, 2021
e1d1748
Skip loader tests that assume assemblies are in as resource files
Oct 19, 2021
680c648
Merge remote-tracking branch 'upstream/main' into build-ios-tests-helix
Oct 19, 2021
4af365a
Skip failing RegexCultureTests
Oct 20, 2021
926989d
Merge remote-tracking branch 'upstream/main' into build-ios-tests-helix
Oct 20, 2021
0003313
Merge remote-tracking branch 'upstream/main' into build-ios-tests-helix
Oct 21, 2021
2419858
Skip test suites that hang for now
Oct 21, 2021
055b85d
Restored fact that was mistakenly removed
Oct 21, 2021
81bd7fd
Feedback
Oct 21, 2021
1a3b910
Skip DllImportGenerator tests as they were failing
Oct 22, 2021
3c1babf
Search top level only for zip files
Oct 22, 2021
fdb81ff
Skip DllImportGenerator tests on all apple mobile platforms. Tweak p…
Oct 22, 2021
7d43598
Merge remote-tracking branch 'upstream/main' into build-ios-tests-helix
Oct 22, 2021
e7d92da
Fix check specific platform check for catalyst
Oct 25, 2021
633dcf7
Remove old condition that was breaking unrelated projects
Oct 25, 2021
ef910cf
Feedback
Oct 26, 2021
4800f60
Merge remote-tracking branch 'upstream/main' into build-ios-tests-helix
Oct 26, 2021
df80bf0
Fix process test introduced in https://github.com/dotnet/runtime/pull…
Oct 26, 2021
0fb5d0b
PR Feedback
Oct 30, 2021
6c3c9ee
Merge remote-tracking branch 'upstream/main' into build-ios-tests-helix
Nov 2, 2021
1b75f13
Apply smoke test setting to iOS & tvOS devices
Nov 2, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
76 changes: 38 additions & 38 deletions eng/Version.Details.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,77 +14,77 @@
</Dependency>
</ProductDependencies>
<ToolsetDependencies>
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="7.0.0-beta.21463.4">
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="7.0.0-beta.21472.6">
<Uri>https://github.com/dotnet/arcade</Uri>
<Sha>4b7c80f398fd3dcea03fdc4e454789b61181d300</Sha>
<Sha>e036bd9465b017d8b0c2d82a45120b58dbf23c5f</Sha>
</Dependency>
<Dependency Name="Microsoft.DotNet.Helix.Sdk" Version="7.0.0-beta.21463.4">
<Dependency Name="Microsoft.DotNet.Helix.Sdk" Version="7.0.0-beta.21472.6">
<Uri>https://github.com/dotnet/arcade</Uri>
<Sha>4b7c80f398fd3dcea03fdc4e454789b61181d300</Sha>
<Sha>e036bd9465b017d8b0c2d82a45120b58dbf23c5f</Sha>
</Dependency>
<Dependency Name="Microsoft.DotNet.ApiCompat" Version="7.0.0-beta.21463.4">
<Dependency Name="Microsoft.DotNet.ApiCompat" Version="7.0.0-beta.21472.6">
<Uri>https://github.com/dotnet/arcade</Uri>
<Sha>4b7c80f398fd3dcea03fdc4e454789b61181d300</Sha>
<Sha>e036bd9465b017d8b0c2d82a45120b58dbf23c5f</Sha>
</Dependency>
<Dependency Name="Microsoft.DotNet.GenAPI" Version="7.0.0-beta.21463.4">
<Dependency Name="Microsoft.DotNet.GenAPI" Version="7.0.0-beta.21472.6">
<Uri>https://github.com/dotnet/arcade</Uri>
<Sha>4b7c80f398fd3dcea03fdc4e454789b61181d300</Sha>
<Sha>e036bd9465b017d8b0c2d82a45120b58dbf23c5f</Sha>
</Dependency>
<Dependency Name="Microsoft.DotNet.GenFacades" Version="7.0.0-beta.21463.4">
<Dependency Name="Microsoft.DotNet.GenFacades" Version="7.0.0-beta.21472.6">
<Uri>https://github.com/dotnet/arcade</Uri>
<Sha>4b7c80f398fd3dcea03fdc4e454789b61181d300</Sha>
<Sha>e036bd9465b017d8b0c2d82a45120b58dbf23c5f</Sha>
</Dependency>
<Dependency Name="Microsoft.DotNet.XUnitExtensions" Version="7.0.0-beta.21463.4">
<Dependency Name="Microsoft.DotNet.XUnitExtensions" Version="7.0.0-beta.21472.6">
<Uri>https://github.com/dotnet/arcade</Uri>
<Sha>4b7c80f398fd3dcea03fdc4e454789b61181d300</Sha>
<Sha>e036bd9465b017d8b0c2d82a45120b58dbf23c5f</Sha>
</Dependency>
<Dependency Name="Microsoft.DotNet.XUnitConsoleRunner" Version="2.5.1-beta.21463.4">
<Dependency Name="Microsoft.DotNet.XUnitConsoleRunner" Version="2.5.1-beta.21472.6">
<Uri>https://github.com/dotnet/arcade</Uri>
<Sha>4b7c80f398fd3dcea03fdc4e454789b61181d300</Sha>
<Sha>e036bd9465b017d8b0c2d82a45120b58dbf23c5f</Sha>
</Dependency>
<Dependency Name="Microsoft.DotNet.Build.Tasks.Archives" Version="7.0.0-beta.21463.4">
<Dependency Name="Microsoft.DotNet.Build.Tasks.Archives" Version="7.0.0-beta.21472.6">
<Uri>https://github.com/dotnet/arcade</Uri>
<Sha>4b7c80f398fd3dcea03fdc4e454789b61181d300</Sha>
<Sha>e036bd9465b017d8b0c2d82a45120b58dbf23c5f</Sha>
</Dependency>
<Dependency Name="Microsoft.DotNet.Build.Tasks.Packaging" Version="7.0.0-beta.21463.4">
<Dependency Name="Microsoft.DotNet.Build.Tasks.Packaging" Version="7.0.0-beta.21472.6">
<Uri>https://github.com/dotnet/arcade</Uri>
<Sha>4b7c80f398fd3dcea03fdc4e454789b61181d300</Sha>
<Sha>e036bd9465b017d8b0c2d82a45120b58dbf23c5f</Sha>
</Dependency>
<Dependency Name="Microsoft.DotNet.Build.Tasks.Installers" Version="7.0.0-beta.21463.4">
<Dependency Name="Microsoft.DotNet.Build.Tasks.Installers" Version="7.0.0-beta.21472.6">
<Uri>https://github.com/dotnet/arcade</Uri>
<Sha>4b7c80f398fd3dcea03fdc4e454789b61181d300</Sha>
<Sha>e036bd9465b017d8b0c2d82a45120b58dbf23c5f</Sha>
</Dependency>
<Dependency Name="Microsoft.DotNet.Build.Tasks.Templating" Version="7.0.0-beta.21463.4">
<Dependency Name="Microsoft.DotNet.Build.Tasks.Templating" Version="7.0.0-beta.21472.6">
<Uri>https://github.com/dotnet/arcade</Uri>
<Sha>4b7c80f398fd3dcea03fdc4e454789b61181d300</Sha>
<Sha>e036bd9465b017d8b0c2d82a45120b58dbf23c5f</Sha>
</Dependency>
<Dependency Name="Microsoft.DotNet.Build.Tasks.Workloads" Version="7.0.0-beta.21463.4">
<Dependency Name="Microsoft.DotNet.Build.Tasks.Workloads" Version="7.0.0-beta.21472.6">
<Uri>https://github.com/dotnet/arcade</Uri>
<Sha>4b7c80f398fd3dcea03fdc4e454789b61181d300</Sha>
<Sha>e036bd9465b017d8b0c2d82a45120b58dbf23c5f</Sha>
</Dependency>
<Dependency Name="Microsoft.DotNet.CodeAnalysis" Version="7.0.0-beta.21463.4">
<Dependency Name="Microsoft.DotNet.CodeAnalysis" Version="7.0.0-beta.21472.6">
<Uri>https://github.com/dotnet/arcade</Uri>
<Sha>4b7c80f398fd3dcea03fdc4e454789b61181d300</Sha>
<Sha>e036bd9465b017d8b0c2d82a45120b58dbf23c5f</Sha>
</Dependency>
<Dependency Name="Microsoft.DotNet.Build.Tasks.TargetFramework.Sdk" Version="7.0.0-beta.21463.4">
<Dependency Name="Microsoft.DotNet.Build.Tasks.TargetFramework.Sdk" Version="7.0.0-beta.21472.6">
<Uri>https://github.com/dotnet/arcade</Uri>
<Sha>4b7c80f398fd3dcea03fdc4e454789b61181d300</Sha>
<Sha>e036bd9465b017d8b0c2d82a45120b58dbf23c5f</Sha>
</Dependency>
<Dependency Name="Microsoft.DotNet.RemoteExecutor" Version="7.0.0-beta.21463.4">
<Dependency Name="Microsoft.DotNet.RemoteExecutor" Version="7.0.0-beta.21472.6">
<Uri>https://github.com/dotnet/arcade</Uri>
<Sha>4b7c80f398fd3dcea03fdc4e454789b61181d300</Sha>
<Sha>e036bd9465b017d8b0c2d82a45120b58dbf23c5f</Sha>
</Dependency>
<Dependency Name="Microsoft.DotNet.Build.Tasks.Feed" Version="7.0.0-beta.21463.4">
<Dependency Name="Microsoft.DotNet.Build.Tasks.Feed" Version="7.0.0-beta.21472.6">
<Uri>https://github.com/dotnet/arcade</Uri>
<Sha>4b7c80f398fd3dcea03fdc4e454789b61181d300</Sha>
<Sha>e036bd9465b017d8b0c2d82a45120b58dbf23c5f</Sha>
</Dependency>
<Dependency Name="Microsoft.DotNet.VersionTools.Tasks" Version="7.0.0-beta.21463.4">
<Dependency Name="Microsoft.DotNet.VersionTools.Tasks" Version="7.0.0-beta.21472.6">
<Uri>https://github.com/dotnet/arcade</Uri>
<Sha>4b7c80f398fd3dcea03fdc4e454789b61181d300</Sha>
<Sha>e036bd9465b017d8b0c2d82a45120b58dbf23c5f</Sha>
</Dependency>
<Dependency Name="Microsoft.DotNet.SharedFramework.Sdk" Version="7.0.0-beta.21463.4">
<Dependency Name="Microsoft.DotNet.SharedFramework.Sdk" Version="7.0.0-beta.21472.6">
<Uri>https://github.com/dotnet/arcade</Uri>
<Sha>4b7c80f398fd3dcea03fdc4e454789b61181d300</Sha>
<Sha>e036bd9465b017d8b0c2d82a45120b58dbf23c5f</Sha>
</Dependency>
<Dependency Name="Microsoft.NET.Test.Sdk" Version="16.9.0-preview-20201201-01">
<Uri>https://github.com/microsoft/vstest</Uri>
Expand Down Expand Up @@ -206,9 +206,9 @@
<Uri>https://github.com/dotnet/xharness</Uri>
<Sha>e045ce36ce5d46bbd44097592bcf1b69c5ca75a2</Sha>
</Dependency>
<Dependency Name="Microsoft.DotNet.PackageTesting" Version="7.0.0-beta.21463.4">
<Dependency Name="Microsoft.DotNet.PackageTesting" Version="7.0.0-beta.21472.6">
Copy link
Member

Choose a reason for hiding this comment

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

Out of curiosity, it looks like there are subsets of dependencies that are updated at the same time, is the general rule that we follow to update those of the same version or is it likely that only a few dependencies of version 7.0.0-beta.21472.6 for example will be updated next time around?
If Microsoft.DotNet.PackageTesting will always be updated with the dependencies at the top, does it make sense to move this to that group?

Copy link
Member Author

Choose a reason for hiding this comment

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

The darc tool updates this file, so it's a black box to me :-).

Copy link
Member

Choose a reason for hiding this comment

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

Usually many dependencies come from 1 build - like Arcade produces about 12 packages that get consumed by runtime and then this build is "flown" to runtime which means all those package will get updated together.

You don't update this file manually - either the dependency PR makes that happen or you call darc update-dependencies locally so I wouldn't worry about it much. If someone does that in their branch like Steve has, it usually happens that main gets up-to-date before we close the PR and then Steve would just revert changes here. Also, Arcade has to be validated first before we can bump it in runtime so probably we wouldn't even let Steve bump it and wait for main to catch up.

I don't understand how this file gets populated with new dependencies though, so no idea about the exact order. It's very probable that if you re-order this, it will get re-ordered back because it depends on some order in the maestro database. Or it will just stay how you set it. However, you will have a nasty conflict with whatever dependency PR is currently open.

<Uri>https://github.com/dotnet/arcade</Uri>
<Sha>4b7c80f398fd3dcea03fdc4e454789b61181d300</Sha>
<Sha>e036bd9465b017d8b0c2d82a45120b58dbf23c5f</Sha>
</Dependency>
<Dependency Name="optimization.windows_nt-x64.MIBC.Runtime" Version="1.0.0-prerelease.21465.4">
<Uri>https://dev.azure.com/dnceng/internal/_git/dotnet-optimization</Uri>
Expand Down
30 changes: 15 additions & 15 deletions eng/Versions.props
Original file line number Diff line number Diff line change
Expand Up @@ -54,21 +54,21 @@
<!-- SDK dependencies -->
<MicrosoftDotNetCompatibilityVersion>1.0.0-rc.1.21459.41</MicrosoftDotNetCompatibilityVersion>
<!-- Arcade dependencies -->
<MicrosoftDotNetApiCompatVersion>7.0.0-beta.21463.4</MicrosoftDotNetApiCompatVersion>
<MicrosoftDotNetBuildTasksFeedVersion>7.0.0-beta.21463.4</MicrosoftDotNetBuildTasksFeedVersion>
<MicrosoftDotNetCodeAnalysisVersion>7.0.0-beta.21463.4</MicrosoftDotNetCodeAnalysisVersion>
<MicrosoftDotNetGenAPIVersion>7.0.0-beta.21463.4</MicrosoftDotNetGenAPIVersion>
<MicrosoftDotNetGenFacadesVersion>7.0.0-beta.21463.4</MicrosoftDotNetGenFacadesVersion>
<MicrosoftDotNetXUnitExtensionsVersion>7.0.0-beta.21463.4</MicrosoftDotNetXUnitExtensionsVersion>
<MicrosoftDotNetXUnitConsoleRunnerVersion>2.5.1-beta.21463.4</MicrosoftDotNetXUnitConsoleRunnerVersion>
<MicrosoftDotNetBuildTasksArchivesVersion>7.0.0-beta.21463.4</MicrosoftDotNetBuildTasksArchivesVersion>
<MicrosoftDotNetBuildTasksInstallersVersion>7.0.0-beta.21463.4</MicrosoftDotNetBuildTasksInstallersVersion>
<MicrosoftDotNetBuildTasksPackagingVersion>7.0.0-beta.21463.4</MicrosoftDotNetBuildTasksPackagingVersion>
<MicrosoftDotNetBuildTasksTemplatingVersion>7.0.0-beta.21463.4</MicrosoftDotNetBuildTasksTemplatingVersion>
<MicrosoftDotNetBuildTasksWorkloadsPackageVersion>7.0.0-beta.21463.4</MicrosoftDotNetBuildTasksWorkloadsPackageVersion>
<MicrosoftDotNetRemoteExecutorVersion>7.0.0-beta.21463.4</MicrosoftDotNetRemoteExecutorVersion>
<MicrosoftDotNetVersionToolsTasksVersion>7.0.0-beta.21463.4</MicrosoftDotNetVersionToolsTasksVersion>
<MicrosoftDotNetPackageTestingVersion>7.0.0-beta.21463.4</MicrosoftDotNetPackageTestingVersion>
<MicrosoftDotNetApiCompatVersion>7.0.0-beta.21472.6</MicrosoftDotNetApiCompatVersion>
<MicrosoftDotNetBuildTasksFeedVersion>7.0.0-beta.21472.6</MicrosoftDotNetBuildTasksFeedVersion>
<MicrosoftDotNetCodeAnalysisVersion>7.0.0-beta.21472.6</MicrosoftDotNetCodeAnalysisVersion>
<MicrosoftDotNetGenAPIVersion>7.0.0-beta.21472.6</MicrosoftDotNetGenAPIVersion>
<MicrosoftDotNetGenFacadesVersion>7.0.0-beta.21472.6</MicrosoftDotNetGenFacadesVersion>
<MicrosoftDotNetXUnitExtensionsVersion>7.0.0-beta.21472.6</MicrosoftDotNetXUnitExtensionsVersion>
<MicrosoftDotNetXUnitConsoleRunnerVersion>2.5.1-beta.21472.6</MicrosoftDotNetXUnitConsoleRunnerVersion>
mdh1418 marked this conversation as resolved.
Show resolved Hide resolved
<MicrosoftDotNetBuildTasksArchivesVersion>7.0.0-beta.21472.6</MicrosoftDotNetBuildTasksArchivesVersion>
<MicrosoftDotNetBuildTasksInstallersVersion>7.0.0-beta.21472.6</MicrosoftDotNetBuildTasksInstallersVersion>
<MicrosoftDotNetBuildTasksPackagingVersion>7.0.0-beta.21472.6</MicrosoftDotNetBuildTasksPackagingVersion>
<MicrosoftDotNetBuildTasksTemplatingVersion>7.0.0-beta.21472.6</MicrosoftDotNetBuildTasksTemplatingVersion>
<MicrosoftDotNetBuildTasksWorkloadsPackageVersion>7.0.0-beta.21472.6</MicrosoftDotNetBuildTasksWorkloadsPackageVersion>
<MicrosoftDotNetRemoteExecutorVersion>7.0.0-beta.21472.6</MicrosoftDotNetRemoteExecutorVersion>
<MicrosoftDotNetVersionToolsTasksVersion>7.0.0-beta.21472.6</MicrosoftDotNetVersionToolsTasksVersion>
<MicrosoftDotNetPackageTestingVersion>7.0.0-beta.21472.6</MicrosoftDotNetPackageTestingVersion>
<!-- NuGet dependencies -->
<NuGetBuildTasksPackVersion>6.0.0-preview.1.102</NuGetBuildTasksPackVersion>
<!-- Installer dependencies -->
Expand Down
26 changes: 18 additions & 8 deletions eng/common/tools.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -709,14 +709,7 @@ function MSBuild() {
Write-PipelineSetVariable -Name 'NUGET_PLUGIN_REQUEST_TIMEOUT_IN_SECONDS' -Value '20'
}

if ($ci) {
$env:NUGET_ENABLE_EXPERIMENTAL_HTTP_RETRY = 'true'
$env:NUGET_EXPERIMENTAL_MAX_NETWORK_TRY_COUNT = 6
$env:NUGET_EXPERIMENTAL_NETWORK_RETRY_DELAY_MILLISECONDS = 1000
Write-PipelineSetVariable -Name 'NUGET_ENABLE_EXPERIMENTAL_HTTP_RETRY' -Value 'true'
Write-PipelineSetVariable -Name 'NUGET_EXPERIMENTAL_MAX_NETWORK_TRY_COUNT' -Value '6'
Write-PipelineSetVariable -Name 'NUGET_EXPERIMENTAL_NETWORK_RETRY_DELAY_MILLISECONDS' -Value '1000'
}
Enable-Nuget-EnhancedRetry

$toolsetBuildProject = InitializeToolset
$basePath = Split-Path -parent $toolsetBuildProject
Expand Down Expand Up @@ -764,6 +757,8 @@ function MSBuild-Core() {
}
}

Enable-Nuget-EnhancedRetry
steveisok marked this conversation as resolved.
Show resolved Hide resolved

$buildTool = InitializeBuildTool

$cmdArgs = "$($buildTool.Command) /m /nologo /clp:Summary /v:$verbosity /nr:$nodeReuse /p:ContinuousIntegrationBuild=$ci"
Expand Down Expand Up @@ -904,3 +899,18 @@ function Try-LogClientIpAddress()
Write-Host "Unable to get this machine's effective IP address for logging: $_"
}
}

#
# If $ci flag is set, turn on (and log that we did) special environment variables for improved Nuget client retry logic.
#
function Enable-Nuget-EnhancedRetry() {
if ($ci) {
Write-Host "Setting NUGET enhanced retry environment variables"
$env:NUGET_ENABLE_EXPERIMENTAL_HTTP_RETRY = 'true'
$env:NUGET_EXPERIMENTAL_MAX_NETWORK_TRY_COUNT = 6
$env:NUGET_EXPERIMENTAL_NETWORK_RETRY_DELAY_MILLISECONDS = 1000
Write-PipelineSetVariable -Name 'NUGET_ENABLE_EXPERIMENTAL_HTTP_RETRY' -Value 'true'
Write-PipelineSetVariable -Name 'NUGET_EXPERIMENTAL_MAX_NETWORK_TRY_COUNT' -Value '6'
Write-PipelineSetVariable -Name 'NUGET_EXPERIMENTAL_NETWORK_RETRY_DELAY_MILLISECONDS' -Value '1000'
}
}
4 changes: 2 additions & 2 deletions eng/pipelines/runtime-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ jobs:
jobParameters:
testGroup: innerloop
nameSuffix: AllSubsets_Mono
buildArgs: -s mono+libs+libs.tests -c $(_BuildConfig) /p:ArchiveTests=true /p:DevTeamProvisioning=- /p:RunAOTCompilation=true /p:EnableSoftTrimming=true /p:BuildDarwinFrameworks=true
buildArgs: -s mono+libs+libs.tests -c $(_BuildConfig) /p:ArchiveTests=true /p:DevTeamProvisioning=- /p:RunAOTCompilation=true /p:BuildTestsOnHelix=true /p:UsePortableRuntimePack=true /p:BuildDarwinFrameworks=true
timeoutInMinutes: 180
condition: >-
or(
Expand All @@ -177,8 +177,8 @@ jobs:
extraStepsTemplate: /eng/pipelines/libraries/helix.yml
extraStepsParameters:
creator: dotnet-bot
interpreter: true
steveisok marked this conversation as resolved.
Show resolved Hide resolved
testRunNamePrefixSuffix: Mono_$(_BuildConfig)
extraHelixArguments: /p:NeedsToBuildiOSAppsOnHelix=true
steveisok marked this conversation as resolved.
Show resolved Hide resolved
condition: >-
or(
eq(variables['librariesContainsChange'], true),
Expand Down
5 changes: 5 additions & 0 deletions eng/testing/AppleHelixRunnerTemplate.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
XHARNESS_EXECUTION_DIR="$( cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"
XHARNESS_OUT="$XHARNESS_EXECUTION_DIR/xharness-output"

# RunCommands defined in tests.mobile.targets
[[RunCommands]]
Loading