Skip to content

Commit 892ea7e

Browse files
authored
Add Http2 Kestrel stress runs (dotnet#12131)
1 parent e8236a5 commit 892ea7e

File tree

7 files changed

+839
-0
lines changed

7 files changed

+839
-0
lines changed

.azure/pipelines/stress.yml

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# This configuration builds the repository and runs stress
2+
pr: none
3+
4+
# Don't run CI for this config
5+
trigger: none
6+
7+
variables:
8+
- name: DOTNET_SKIP_FIRST_TIME_EXPERIENCE
9+
value: true
10+
- name: _TeamName
11+
value: AspNetCore
12+
- ${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}:
13+
- name: _BuildArgs
14+
value: /p:TeamName=$(_TeamName)
15+
/p:OfficialBuildId=$(Build.BuildNumber)
16+
- ${{ if or(eq(variables['System.TeamProject'], 'public'), in(variables['Build.Reason'], 'PullRequest')) }}:
17+
- name: _BuildArgs
18+
value: ''
19+
jobs:
20+
- template: jobs/default-build.yml
21+
parameters:
22+
condition: ne(variables['SkipTests'], 'true')
23+
jobName: Windows_Stress_Test
24+
jobDisplayName: "Windows Stress test"
25+
agentOs: Windows
26+
isTestingJob: true
27+
steps:
28+
- script: .\src\Servers\Kestrel\stress\build.cmd -ci -c Release
29+
displayName: Build Repo
30+
- script: .\.dotnet\dotnet.exe run --project .\src\Servers\Kestrel\stress\HttpStress.csproj -c Release -aspnetlog
31+
displayName: Run stress
32+
artifacts:
33+
- name: Windows_Test_Stress_Logs
34+
path: artifacts/log/
35+
publishOnError: true

eng/Dependencies.props

+1
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ and are generated based on the last package release.
8484
<LatestPackageReference Include="Microsoft.Win32.Registry" Version="$(MicrosoftWin32RegistryPackageVersion)" />
8585
<LatestPackageReference Include="System.Buffers" Version="$(SystemBuffersPackageVersion)" />
8686
<LatestPackageReference Include="System.CodeDom" Version="$(SystemCodeDomPackageVersion)" />
87+
<LatestPackageReference Include="System.CommandLine.Experimental" Version="$(SystemCommandlineExperimentalPackageVersion)" />
8788
<LatestPackageReference Include="System.ComponentModel" Version="$(SystemComponentModelPackageVersion)" />
8889
<LatestPackageReference Include="System.ComponentModel.Annotations" Version="$(SystemComponentModelAnnotationsPackageVersion)" />
8990
<LatestPackageReference Include="System.Diagnostics.EventLog" Version="$(SystemDiagnosticsEventLogPackageVersion)" />

eng/Versions.props

+1
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,7 @@
186186
<!-- Stable dotnet/corefx packages no longer updated for .NET Core 3 -->
187187
<SystemBuffersPackageVersion>4.5.0</SystemBuffersPackageVersion>
188188
<SystemCodeDomPackageVersion>4.4.0</SystemCodeDomPackageVersion>
189+
<SystemCommandlineExperimentalPackageVersion>0.3.0-alpha.19317.1</SystemCommandlineExperimentalPackageVersion>
189190
<SystemComponentModelPackageVersion>4.3.0</SystemComponentModelPackageVersion>
190191
<SystemNetHttpPackageVersion>4.3.2</SystemNetHttpPackageVersion>
191192
<SystemThreadingTasksExtensionsPackageVersion>4.5.2</SystemThreadingTasksExtensionsPackageVersion>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<Project Sdk="Microsoft.NET.Sdk.Web">
2+
3+
<PropertyGroup>
4+
<TargetFramework>netcoreapp3.0</TargetFramework>
5+
<LangVersion>preview</LangVersion>
6+
<AspNetCoreHostingModel>OutOfProcess</AspNetCoreHostingModel>
7+
<IsTestAssetProject>true</IsTestAssetProject>
8+
</PropertyGroup>
9+
10+
<ItemGroup>
11+
<Reference Include="System.CommandLine.Experimental" />
12+
<Reference Include="System.Net.Http.WinHttpHandler" />
13+
<Reference Include="Microsoft.AspNetCore" />
14+
<Reference Include="Microsoft.AspNetCore.Hosting" />
15+
<Reference Include="Microsoft.AspNetCore.Routing" />
16+
<Reference Include="Microsoft.AspNetCore.Server.Kestrel" />
17+
<Reference Include="Microsoft.AspNetCore.Server.HttpSys" />
18+
</ItemGroup>
19+
20+
<PropertyGroup>
21+
<!--Imitate IIS Express so we can use it's cert bindings-->
22+
<PackageTags>214124cd-d05b-4309-9af9-9caa44b2b74a</PackageTags>
23+
</PropertyGroup>
24+
25+
</Project>
+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
Microsoft Visual Studio Solution File, Format Version 12.00
2+
# Visual Studio Version 16
3+
VisualStudioVersion = 16.0.29021.251
4+
MinimumVisualStudioVersion = 10.0.40219.1
5+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "HttpStress", "HttpStress.csproj", "{6B32E657-6B17-419F-A5CA-1981CE7E05AE}"
6+
EndProject
7+
Global
8+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
9+
Debug|Any CPU = Debug|Any CPU
10+
Release|Any CPU = Release|Any CPU
11+
EndGlobalSection
12+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
13+
{6B32E657-6B17-419F-A5CA-1981CE7E05AE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
14+
{6B32E657-6B17-419F-A5CA-1981CE7E05AE}.Debug|Any CPU.Build.0 = Debug|Any CPU
15+
{6B32E657-6B17-419F-A5CA-1981CE7E05AE}.Release|Any CPU.ActiveCfg = Release|Any CPU
16+
{6B32E657-6B17-419F-A5CA-1981CE7E05AE}.Release|Any CPU.Build.0 = Release|Any CPU
17+
EndGlobalSection
18+
GlobalSection(SolutionProperties) = preSolution
19+
HideSolutionNode = FALSE
20+
EndGlobalSection
21+
GlobalSection(ExtensibilityGlobals) = postSolution
22+
SolutionGuid = {BE19C273-6157-47D5-8616-1FA48989F91B}
23+
EndGlobalSection
24+
EndGlobal

0 commit comments

Comments
 (0)