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

[NOMERGE] Force log ASP.NET Errors in http-stress #109152

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
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
Prev Previous commit
Next Next commit
More debug bells and whistles
  • Loading branch information
rzikm committed Nov 26, 2024
commit 36aa0c390926a0cf653643051208b4cc40cb5bac

Large diffs are not rendered by default.

Binary file not shown.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -5,7 +5,11 @@ $env:DOTNET_DbgEnableMiniDump = '1'
$env:DOTNET_DbgMiniDumpType = "MiniDumpWithFullMemory"
$env:DOTNET_DbgMiniDumpName = "$env:DUMPS_SHARE_MOUNT_ROOT/$env:STRESS_ROLE/coredump.%p.%t"

& "C:/live-runtime-artifacts/testhost/net$env:VERSION-windows-$env:CONFIGURATION-x64/dotnet" exec --roll-forward Major ./bin/$env:CONFIGURATION/net$env:VERSION/HttpStress.dll $env:STRESS_ARGS.Split(' ',[System.StringSplitOptions]::RemoveEmptyEntries)
gi "C:/live-runtime-artifacts/testhost/net$ENV:VERSION-windows-$ENV:CONFIGURATION-x64/shared/Microsoft.AspNetCore.App/*/" | % {
cp $PSScriptRoot/Microsoft.AspNetCore.Server.Kestrel.Core.* $_
}

& "C:/live-runtime-artifacts/testhost/net$env:VERSION-windows-$env:CONFIGURATION-x64/dotnet" exec --roll-forward Major ./bin/$env:CONFIGURATION/net$env:VERSION/HttpStress.dll $env:STRESS_ARGS.Split(' ', [System.StringSplitOptions]::RemoveEmptyEntries)

$ExitCode = $LASTEXITCODE

Original file line number Diff line number Diff line change
@@ -7,6 +7,8 @@ export DOTNET_DbgEnableMiniDump=1
export DOTNET_DbgMiniDumpType=MiniDumpWithFullMemory
export DOTNET_DbgMiniDumpName="$DUMPS_SHARE_MOUNT_ROOT/$STRESS_ROLE/coredump.%p.%t"

cp ./Microsoft.AspNetCore.Server.Kestrel.Core.* /live-runtime-artifacts/testhost/net$VERSION-linux-$CONFIGURATION-x64/shared/Microsoft.AspNetCore.App/*/

/live-runtime-artifacts/testhost/net$VERSION-linux-$CONFIGURATION-x64/dotnet exec --roll-forward Major ./bin/$CONFIGURATION/net$VERSION/HttpStress.dll $STRESS_ARGS

exit_code=$?
1 change: 1 addition & 0 deletions src/libraries/System.Net.Quic/src/System.Net.Quic.csproj
Original file line number Diff line number Diff line change
@@ -126,6 +126,7 @@
<Reference Include="System.Collections.NonGeneric" />
<Reference Include="System.Console" Condition="'$(Configuration)' == 'Debug'" />
<Reference Include="System.Diagnostics.DiagnosticSource" />
<Reference Include="System.Diagnostics.StackTrace" />
<Reference Include="System.Diagnostics.Tracing" />
<Reference Include="System.Memory" />
<Reference Include="System.Net.NameResolution" />
15 changes: 15 additions & 0 deletions src/libraries/System.Net.Quic/src/System/Net/Quic/QuicStream.cs
Original file line number Diff line number Diff line change
@@ -457,6 +457,21 @@
}
ThrowHelper.ValidateErrorCode(nameof(errorCode), errorCode, $"{nameof(Abort)}.{nameof(errorCode)}");

switch (errorCode)
{
case 0x0100 /*H3_NO_ERROR*/:
case 0x0102 /*H3_INTERNAL_ERROR*/:
case 0x010d /*H3_REQUEST_INCOMPLETE*/:
case 0x010c /*H3_REQUEST_CANCELLED*/:
break;

default:
{
System.Console.WriteLine($"Aborting stream with error code: {errorCode} from {new System.Diagnostics.StackTrace()}");

Check failure on line 470 in src/libraries/System.Net.Quic/src/System/Net/Quic/QuicStream.cs

Azure Pipelines / runtime (Build linux-riscv64 Release AllSubsets_Mono)

src/libraries/System.Net.Quic/src/System/Net/Quic/QuicStream.cs#L470

src/libraries/System.Net.Quic/src/System/Net/Quic/QuicStream.cs(470,21): error CS0234: (NETCORE_ENGINEERING_TELEMETRY=Build) The type or namespace name 'Console' does not exist in the namespace 'System' (are you missing an assembly reference?)

Check failure on line 470 in src/libraries/System.Net.Quic/src/System/Net/Quic/QuicStream.cs

Azure Pipelines / runtime (Build linux_musl-x64 Release AllSubsets_Mono)

src/libraries/System.Net.Quic/src/System/Net/Quic/QuicStream.cs#L470

src/libraries/System.Net.Quic/src/System/Net/Quic/QuicStream.cs(470,21): error CS0234: (NETCORE_ENGINEERING_TELEMETRY=Build) The type or namespace name 'Console' does not exist in the namespace 'System' (are you missing an assembly reference?)

Check failure on line 470 in src/libraries/System.Net.Quic/src/System/Net/Quic/QuicStream.cs

Azure Pipelines / runtime (Build android-arm64 Release AllSubsets_Mono)

src/libraries/System.Net.Quic/src/System/Net/Quic/QuicStream.cs#L470

src/libraries/System.Net.Quic/src/System/Net/Quic/QuicStream.cs(470,21): error CS0234: (NETCORE_ENGINEERING_TELEMETRY=Build) The type or namespace name 'Console' does not exist in the namespace 'System' (are you missing an assembly reference?)

Check failure on line 470 in src/libraries/System.Net.Quic/src/System/Net/Quic/QuicStream.cs

Azure Pipelines / runtime (Build android-arm Release AllSubsets_Mono)

src/libraries/System.Net.Quic/src/System/Net/Quic/QuicStream.cs#L470

src/libraries/System.Net.Quic/src/System/Net/Quic/QuicStream.cs(470,21): error CS0234: (NETCORE_ENGINEERING_TELEMETRY=Build) The type or namespace name 'Console' does not exist in the namespace 'System' (are you missing an assembly reference?)

Check failure on line 470 in src/libraries/System.Net.Quic/src/System/Net/Quic/QuicStream.cs

Azure Pipelines / runtime (Build linux-x64 Release AllSubsets_Mono_LLVMAOT)

src/libraries/System.Net.Quic/src/System/Net/Quic/QuicStream.cs#L470

src/libraries/System.Net.Quic/src/System/Net/Quic/QuicStream.cs(470,21): error CS0234: (NETCORE_ENGINEERING_TELEMETRY=Build) The type or namespace name 'Console' does not exist in the namespace 'System' (are you missing an assembly reference?)

Check failure on line 470 in src/libraries/System.Net.Quic/src/System/Net/Quic/QuicStream.cs

Azure Pipelines / runtime (Build linux-arm64 Release AllSubsets_Mono_LLVMAOT)

src/libraries/System.Net.Quic/src/System/Net/Quic/QuicStream.cs#L470

src/libraries/System.Net.Quic/src/System/Net/Quic/QuicStream.cs(470,21): error CS0234: (NETCORE_ENGINEERING_TELEMETRY=Build) The type or namespace name 'Console' does not exist in the namespace 'System' (are you missing an assembly reference?)

Check failure on line 470 in src/libraries/System.Net.Quic/src/System/Net/Quic/QuicStream.cs

Azure Pipelines / runtime (Build linux-arm64 Release NativeAOT_Libraries)

src/libraries/System.Net.Quic/src/System/Net/Quic/QuicStream.cs#L470

src/libraries/System.Net.Quic/src/System/Net/Quic/QuicStream.cs(470,21): error CS0234: (NETCORE_ENGINEERING_TELEMETRY=Build) The type or namespace name 'Console' does not exist in the namespace 'System' (are you missing an assembly reference?)

Check failure on line 470 in src/libraries/System.Net.Quic/src/System/Net/Quic/QuicStream.cs

Azure Pipelines / runtime (Build osx-x64 Release AllSubsets_Mono)

src/libraries/System.Net.Quic/src/System/Net/Quic/QuicStream.cs#L470

src/libraries/System.Net.Quic/src/System/Net/Quic/QuicStream.cs(470,21): error CS0234: (NETCORE_ENGINEERING_TELEMETRY=Build) The type or namespace name 'Console' does not exist in the namespace 'System' (are you missing an assembly reference?)

Check failure on line 470 in src/libraries/System.Net.Quic/src/System/Net/Quic/QuicStream.cs

Azure Pipelines / runtime (Build linux_musl-arm Debug AllSubsets_CoreCLR_ReleaseRuntimeLibs)

src/libraries/System.Net.Quic/src/System/Net/Quic/QuicStream.cs#L470

src/libraries/System.Net.Quic/src/System/Net/Quic/QuicStream.cs(470,21): error CS0234: (NETCORE_ENGINEERING_TELEMETRY=Build) The type or namespace name 'Console' does not exist in the namespace 'System' (are you missing an assembly reference?)

Check failure on line 470 in src/libraries/System.Net.Quic/src/System/Net/Quic/QuicStream.cs

Azure Pipelines / runtime (Build linux-arm Debug AllSubsets_CoreCLR_ReleaseRuntimeLibs)

src/libraries/System.Net.Quic/src/System/Net/Quic/QuicStream.cs#L470

src/libraries/System.Net.Quic/src/System/Net/Quic/QuicStream.cs(470,21): error CS0234: (NETCORE_ENGINEERING_TELEMETRY=Build) The type or namespace name 'Console' does not exist in the namespace 'System' (are you missing an assembly reference?)

Check failure on line 470 in src/libraries/System.Net.Quic/src/System/Net/Quic/QuicStream.cs

Azure Pipelines / runtime (Build linux_musl-arm64 Debug AllSubsets_CoreCLR_ReleaseRuntimeLibs)

src/libraries/System.Net.Quic/src/System/Net/Quic/QuicStream.cs#L470

src/libraries/System.Net.Quic/src/System/Net/Quic/QuicStream.cs(470,21): error CS0234: (NETCORE_ENGINEERING_TELEMETRY=Build) The type or namespace name 'Console' does not exist in the namespace 'System' (are you missing an assembly reference?)

Check failure on line 470 in src/libraries/System.Net.Quic/src/System/Net/Quic/QuicStream.cs

Azure Pipelines / dotnet-linker-tests (Build linux-x64 release Runtime_Release)

src/libraries/System.Net.Quic/src/System/Net/Quic/QuicStream.cs#L470

src/libraries/System.Net.Quic/src/System/Net/Quic/QuicStream.cs(470,21): error CS0234: (NETCORE_ENGINEERING_TELEMETRY=Build) The type or namespace name 'Console' does not exist in the namespace 'System' (are you missing an assembly reference?)

Check failure on line 470 in src/libraries/System.Net.Quic/src/System/Net/Quic/QuicStream.cs

Azure Pipelines / runtime (Build osx-arm64 Release NativeAOT_Libraries)

src/libraries/System.Net.Quic/src/System/Net/Quic/QuicStream.cs#L470

src/libraries/System.Net.Quic/src/System/Net/Quic/QuicStream.cs(470,21): error CS0234: (NETCORE_ENGINEERING_TELEMETRY=Build) The type or namespace name 'Console' does not exist in the namespace 'System' (are you missing an assembly reference?)

Check failure on line 470 in src/libraries/System.Net.Quic/src/System/Net/Quic/QuicStream.cs

Azure Pipelines / dotnet-linker-tests (Build osx-x64 release Runtime_Release)

src/libraries/System.Net.Quic/src/System/Net/Quic/QuicStream.cs#L470

src/libraries/System.Net.Quic/src/System/Net/Quic/QuicStream.cs(470,21): error CS0234: (NETCORE_ENGINEERING_TELEMETRY=Build) The type or namespace name 'Console' does not exist in the namespace 'System' (are you missing an assembly reference?)

Check failure on line 470 in src/libraries/System.Net.Quic/src/System/Net/Quic/QuicStream.cs

Azure Pipelines / dotnet-linker-tests

src/libraries/System.Net.Quic/src/System/Net/Quic/QuicStream.cs#L470

src/libraries/System.Net.Quic/src/System/Net/Quic/QuicStream.cs(470,21): error CS0234: (NETCORE_ENGINEERING_TELEMETRY=Build) The type or namespace name 'Console' does not exist in the namespace 'System' (are you missing an assembly reference?)

Check failure on line 470 in src/libraries/System.Net.Quic/src/System/Net/Quic/QuicStream.cs

Azure Pipelines / dotnet-linker-tests

src/libraries/System.Net.Quic/src/System/Net/Quic/QuicStream.cs#L470

src/libraries/System.Net.Quic/src/System/Net/Quic/QuicStream.cs(470,21): error CS0234: (NETCORE_ENGINEERING_TELEMETRY=Build) The type or namespace name 'Console' does not exist in the namespace 'System' (are you missing an assembly reference?)
break;
}
}

QUIC_STREAM_SHUTDOWN_FLAGS flags = QUIC_STREAM_SHUTDOWN_FLAGS.NONE;
if (abortDirection.HasFlag(QuicAbortDirection.Read) && !_receiveTcs.IsCompleted)
{
Loading