Skip to content

Add SIGTERM signal handling to CTRLPlusCCancellationTokenSource

5299c59
Select commit
Loading
Failed to load commit list.
Draft

Handle SIGTERM shutdown signal to fire the cancellation #5607

Add SIGTERM signal handling to CTRLPlusCCancellationTokenSource
5299c59
Select commit
Loading
Failed to load commit list.
Azure Pipelines / microsoft.testfx (Build Windows Debug) failed May 20, 2025 in 7m 25s

Build Windows Debug failed

Annotations

Check failure on line 29 in src\Platform\Microsoft.Testing.Platform\Services\CTRLPlusCCancellationTokenSource.cs

See this annotation in the file changed.

@azure-pipelines azure-pipelines / microsoft.testfx (Build Windows Debug)

src\Platform\Microsoft.Testing.Platform\Services\CTRLPlusCCancellationTokenSource.cs#L29

src\Platform\Microsoft.Testing.Platform\Services\CTRLPlusCCancellationTokenSource.cs(29,30): error CS0117: (NETCORE_ENGINEERING_TELEMETRY=Build) 'OperatingSystem' does not contain a definition for 'IsWasi'

Check failure on line 15 in src\Platform\Microsoft.Testing.Platform\Services\CTRLPlusCCancellationTokenSource.cs

See this annotation in the file changed.

@azure-pipelines azure-pipelines / microsoft.testfx (Build Windows Debug)

src\Platform\Microsoft.Testing.Platform\Services\CTRLPlusCCancellationTokenSource.cs#L15

src\Platform\Microsoft.Testing.Platform\Services\CTRLPlusCCancellationTokenSource.cs(15,38): error IDE0044: (NETCORE_ENGINEERING_TELEMETRY=Build) Make field readonly (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0044)

Check failure on line 29 in src\Platform\Microsoft.Testing.Platform\Services\CTRLPlusCCancellationTokenSource.cs

See this annotation in the file changed.

@azure-pipelines azure-pipelines / microsoft.testfx (Build Windows Debug)

src\Platform\Microsoft.Testing.Platform\Services\CTRLPlusCCancellationTokenSource.cs#L29

src\Platform\Microsoft.Testing.Platform\Services\CTRLPlusCCancellationTokenSource.cs(29,30): error CS0117: (NETCORE_ENGINEERING_TELEMETRY=Build) 'OperatingSystem' does not contain a definition for 'IsWasi'

Check failure on line 15 in src\Platform\Microsoft.Testing.Platform\Services\CTRLPlusCCancellationTokenSource.cs

See this annotation in the file changed.

@azure-pipelines azure-pipelines / microsoft.testfx (Build Windows Debug)

src\Platform\Microsoft.Testing.Platform\Services\CTRLPlusCCancellationTokenSource.cs#L15

src\Platform\Microsoft.Testing.Platform\Services\CTRLPlusCCancellationTokenSource.cs(15,38): error IDE0044: (NETCORE_ENGINEERING_TELEMETRY=Build) Make field readonly (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0044)

Check failure on line 33 in src\Platform\Microsoft.Testing.Platform\Services\CTRLPlusCCancellationTokenSource.cs

See this annotation in the file changed.

@azure-pipelines azure-pipelines / microsoft.testfx (Build Windows Debug)

src\Platform\Microsoft.Testing.Platform\Services\CTRLPlusCCancellationTokenSource.cs#L33

src\Platform\Microsoft.Testing.Platform\Services\CTRLPlusCCancellationTokenSource.cs(33,40): error CA1416: (NETCORE_ENGINEERING_TELEMETRY=Build) This call site is reachable on all platforms. 'PosixSignalRegistration.Create(PosixSignal, Action<PosixSignalContext>)' is unsupported on: 'android', 'browser', 'ios', 'tvos'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416)