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

Quarantine Microsoft.AspNetCore.Server.Kestrel.Core.Tests.HeartbeatTests.HeartbeatLoopRunsWithSpecifiedInterval #60371

Open
sebastienros opened this issue Feb 13, 2025 · 0 comments
Labels
area-networking Includes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractions test-failure

Comments

@sebastienros
Copy link
Member

Failing Test(s)

  • Microsoft.AspNetCore.Server.Kestrel.Core.Tests.HeartbeatTests.HeartbeatLoopRunsWithSpecifiedInterval

Error Message

Assert.Collection() Failure: Item comparison failure
↓ (pos 0)
Collection: [00:00:01.5383155, 00:00:00.3201810, 00:00:00.4393100, 00:00:00.3027799]
Error:      1550 is much larger than wait time of 300.

Stacktrace

Stack Trace:
//src/Servers/Kestrel/Core/test/HeartbeatTests.cs(95,0): at Microsoft.AspNetCore.Server.Kestrel.Core.Tests.HeartbeatTests.<HeartbeatLoopRunsWithSpecifiedInterval>g__AssertApproxEqual|1_6(Double intervalMs, Double actualMs)
//src/Servers/Kestrel/Core/test/HeartbeatTests.cs(75,0): at Microsoft.AspNetCore.Server.Kestrel.Core.Tests.HeartbeatTests.<>c__DisplayClass1_0.<HeartbeatLoopRunsWithSpecifiedInterval>b__2(TimeSpan ts)

Logs

[0.006s] TestLifetime Information: Starting test HeartbeatLoopRunsWithSpecifiedInterval at 2025-02-13T02:15:44
| [4.139s] Microsoft.AspNetCore.Server.Kestrel.Core.Tests.HeartbeatTests Information: Heartbeat split: 1538.3155ms
| [4.459s] Microsoft.AspNetCore.Server.Kestrel.Core.Tests.HeartbeatTests Information: Heartbeat split: 320.181ms
| [4.899s] Microsoft.AspNetCore.Server.Kestrel.Core.Tests.HeartbeatTests Information: Heartbeat split: 439.31ms
| [5.202s] Microsoft.AspNetCore.Server.Kestrel.Core.Tests.HeartbeatTests Information: Heartbeat split: 302.7799ms
| [5.207s] Microsoft.AspNetCore.Server.Kestrel.Core.Tests.HeartbeatTests Information: Heartbeat run 5 times. Notifying test.
| [5.704s] Microsoft.AspNetCore.Server.Kestrel.Core.Tests.HeartbeatTests Information: Starting heartbeat dispose.
| [7.603s] Microsoft.AspNetCore.Server.Kestrel.Core.Tests.HeartbeatTests Error: Test threw an exception.
| Xunit.Sdk.CollectionException: Assert.Collection() Failure: Item comparison failure
|              ↓ (pos 0)
| Collection: [00:00:01.5383155, 00:00:00.3201810, 00:00:00.4393100, 00:00:00.3027799]
| Error:      1550 is much larger than wait time of 300.
|             Stack Trace:
|               /_/src/Servers/Kestrel/Core/test/HeartbeatTests.cs(95,0): at Microsoft.AspNetCore.Server.Kestrel.Core.Tests.HeartbeatTests.<HeartbeatLoopRunsWithSpecifiedInterval>g__AssertApproxEqual|1_6(Double intervalMs, Double actualMs)
|               /_/src/Servers/Kestrel/Core/test/HeartbeatTests.cs(75,0): at Microsoft.AspNetCore.Server.Kestrel.Core.Tests.HeartbeatTests.<>c__DisplayClass1_0.<HeartbeatLoopRunsWithSpecifiedInterval>b__2(TimeSpan ts)
|    at Xunit.Assert.Collection[T](IEnumerable`1 collection, Action`1[] elementInspectors) in /_/src/xunit.assert/Asserts/CollectionAsserts.cs:line 176
|    at Microsoft.AspNetCore.Server.Kestrel.Core.Tests.HeartbeatTests.HeartbeatLoopRunsWithSpecifiedInterval() in /_/src/Servers/Kestrel/Core/test/HeartbeatTests.cs:line 74
|    at Xunit.Sdk.TestInvoker`1.<>c__DisplayClass47_0.<<InvokeTestMethodAsync>b__1>d.MoveNext() in /_/src/xunit.execution/Sdk/Frameworks/Runners/TestInvoker.cs:line 259
| --- End of stack trace from previous location ---
|    at Xunit.Sdk.ExecutionTimer.AggregateAsync(Func`1 asyncAction) in /_/src/xunit.execution/Sdk/Frameworks/ExecutionTimer.cs:line 48
|    at Xunit.Sdk.ExceptionAggregator.RunAsync(Func`1 code) in /_/src/xunit.core/Sdk/ExceptionAggregator.cs:line 90
| [7.605s] TestLifetime Information: Finished test HeartbeatLoopRunsWithSpecifiedInterval in 7.6034759s

Build

https://dev.azure.com/dnceng-public/public/_build/results?buildId=950767

Several similar failures in the past days. More frequent than weeks ago.

@dotnet-issue-labeler dotnet-issue-labeler bot added the area-networking Includes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractions label Feb 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-networking Includes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractions test-failure
Projects
None yet
Development

No branches or pull requests

1 participant