-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Build HttpStress and SslStress with live-built runtime using current TFM #61689
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
Merged
Merged
Changes from 6 commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
bfd6dcd
refactor stress test builds
antonfirsov 72c0b81
cleanup container scripts
antonfirsov 3b70584
delete LiveBuildTest
antonfirsov 459611d
cleanup stress projects
antonfirsov 49338ed
remove unnecessarry newlines
antonfirsov cd243e6
cleanup dockerfiles
antonfirsov f27e4f0
better way to find reference locations in stress .props
antonfirsov 5e90f14
Dockerfiles: use $VERSION, delete $ARCH
antonfirsov 673b5f6
fix windows.Dockerfile
antonfirsov 0af9f7b
fix Dockerfiles
antonfirsov 5a04963
fix linux.Dockerfile
antonfirsov 361f1e5
fix linux linux.Dockerfile
antonfirsov f87f45b
disable HTTP/3 to see if the rest succeeds
antonfirsov 11d6325
Merge branch 'live-stress' of https://github.com/antonfirsov/runtime …
antonfirsov e0a3ef8
rename Build-Local.ps1 and extend README.md
antonfirsov 83b0835
re-enable HTTP3 with timeout
antonfirsov 48a9602
remove trailing whitespace
antonfirsov 280a3df
nits
antonfirsov ab4072f
improve build-local.sh
antonfirsov 6557474
improve the rest of the scripts
antonfirsov File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
56 changes: 56 additions & 0 deletions
56
src/libraries/System.Net.Http/tests/StressTests/HttpStress/Build-Local.ps1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,56 @@ | ||
| ## This is a helper script for non-containerized local build and test execution. | ||
| ## It downloads and uses the daily SDK which contains the compatible AspNetCore bits. | ||
| ## Usage: | ||
| ## ./build-local.ps1 [StressConfiguration] [LibrariesConfiguration] | ||
|
|
||
| $Version="7.0" | ||
| $RepoRoot="$(git rev-parse --show-toplevel)" | ||
| $DailyDotnetRoot= "./.dotnet-daily" | ||
|
|
||
| $StressConfiguration = "Release" | ||
| if (-not ([string]::IsNullOrEmpty($args[0]))) { | ||
| $StressConfiguration = $args[0] | ||
| } | ||
|
|
||
| $LibrariesConfiguration = "Release" | ||
| if (-not ([string]::IsNullOrEmpty($args[1]))) { | ||
| $LibrariesConfiguration = $args[0] | ||
| } | ||
|
|
||
| Write-Host "StressConfiguration: $StressConfiguration, LibrariesConfiguration: $LibrariesConfiguration" | ||
|
|
||
| if (-not (Test-Path -Path $DailyDotnetRoot)) { | ||
| Write-Host "Downloading daily SDK to: $DailyDotnetRoot" | ||
| New-Item -ItemType Directory -Path $DailyDotnetRoot | ||
| Invoke-WebRequest -Uri https://dot.net/v1/dotnet-install.ps1 -OutFile "$DailyDotnetRoot\dotnet-install.ps1" | ||
| & "$DailyDotnetRoot\dotnet-install.ps1" -NoPath -Channel "$Version.1xx" -Quality daily -InstallDir $DailyDotnetRoot | ||
| } | ||
| else { | ||
| Write-Host "Daily SDK found in $DailyDotnetRoot" | ||
| } | ||
|
|
||
| $TestHostRoot="$RepoRoot/artifacts/bin/testhost/net$Version-windows-$LibrariesConfiguration-x64" | ||
|
|
||
| $env:DOTNET_ROOT=$DailyDotnetRoot | ||
| $env:PATH="$DailyDotnetRoot;$env:PATH" | ||
| $env:DOTNET_MULTILEVEL_LOOKUP=0 | ||
|
|
||
| if (-not (Test-Path -Path "$TestHostRoot/shared/Microsoft.AspNetCore.App")) { | ||
| Write-Host "Copying Microsoft.AspNetCore.App bits from daily SDK to testhost: $TestHostRoot" | ||
| Copy-Item -Recurse -Path "$DailyDotnetRoot/shared/Microsoft.AspNetCore.App" -Destination "$TestHostRoot/shared" | ||
| } | ||
| else { | ||
| Write-Host "Microsoft.AspNetCore.App found in testhost: $TestHostRoot" | ||
| } | ||
|
|
||
| Write-Host "Building solution." | ||
| dotnet build -c $StressConfiguration | ||
|
|
||
| $Runscript=".\run-stress-$LibrariesConfiguration-$StressConfiguration.ps1" | ||
| if (-not (Test-Path $Runscript)) { | ||
| Write-Host "Generating Runscript." | ||
| Add-Content -Path $Runscript -Value "& '$TestHostRoot/dotnet' exec ./bin/$StressConfiguration/net$Version/HttpStress.dll `$args" | ||
| } | ||
|
|
||
| Write-Host "To run tests type:" | ||
| Write-Host "$Runscript [stress test args]" |
16 changes: 15 additions & 1 deletion
16
src/libraries/System.Net.Http/tests/StressTests/HttpStress/Directory.Build.props
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,15 @@ | ||
| <Project/> | ||
| <Project> | ||
| <PropertyGroup> | ||
| <PackageRid>linux-x64</PackageRid> | ||
| <PackageRid Condition="$([MSBuild]::IsOSPlatform('WINDOWS'))">win-x64</PackageRid> | ||
| <PackageRid Condition="$([MSBuild]::IsOSPlatform('OSX'))">osx-x64</PackageRid> | ||
|
|
||
| <TargetingPacksTargetsLocation Condition="'$(TargetingPacksTargetsLocation)' == ''">../../../../../../eng/targetingpacks.targets</TargetingPacksTargetsLocation> | ||
antonfirsov marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| <ProductVersion>7.0.0</ProductVersion> | ||
| <NetCoreAppCurrent>net7.0</NetCoreAppCurrent> | ||
| <NetCoreAppCurrentVersion>7.0</NetCoreAppCurrentVersion> | ||
| <MicrosoftNetCoreAppFrameworkName>Microsoft.NETCore.App</MicrosoftNetCoreAppFrameworkName> | ||
| <MicrosoftNetCoreAppRefPackDir Condition="'$(MicrosoftNetCoreAppRefPackDir)' == ''" >../../../../../../artifacts/bin/microsoft.netcore.app.ref/</MicrosoftNetCoreAppRefPackDir> | ||
| <MicrosoftNetCoreAppRuntimePackDir Condition="'$(MicrosoftNetCoreAppRuntimePackDir)' == ''">../../../../../../artifacts/bin/microsoft.netcore.app.runtime.$(PackageRid)/$(Configuration)/</MicrosoftNetCoreAppRuntimePackDir> | ||
| </PropertyGroup> | ||
| </Project> | ||
12 changes: 11 additions & 1 deletion
12
src/libraries/System.Net.Http/tests/StressTests/HttpStress/Directory.Build.targets
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,11 @@ | ||
| <Project/> | ||
| <Project> | ||
| <Import Project="$(TargetingPacksTargetsLocation)" /> | ||
|
|
||
| <PropertyGroup> | ||
| <!-- | ||
| Define this here because the SDK resets it | ||
| unconditionally in Microsoft.NETCoreSdk.BundledVersions.props. | ||
| --> | ||
| <NETCoreAppMaximumVersion>7.0</NETCoreAppMaximumVersion> | ||
| </PropertyGroup> | ||
| </Project> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.