extensions icon indicating copy to clipboard operation
extensions copied to clipboard

Test failure WaiterRemovedAfterDispose

Open amcasey opened this issue 1 year ago • 2 comments

Microsoft.Extensions.Time.Testing.Test.TimerTests.WaiterRemovedAfterDispose

Assert.Equal() Failure: Values differ
Expected: 2
Actual:   1
   at Microsoft.Extensions.Time.Testing.Test.TimerTests.WaiterRemovedAfterDispose() in D:\a\_work\1\s\test\Libraries\Microsoft.Extensions.TimeProvider.Testing.Tests\TimerTests.cs:line 237

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

amcasey avatar Sep 26 '24 21:09 amcasey

FYI @RussKie - last time you wanted to investigate, rather than skip

amcasey avatar Sep 26 '24 21:09 amcasey

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

amcasey avatar Sep 26 '24 21:09 amcasey

@dotnet/dotnet-extensions-fundamentals please triage

RussKie avatar Nov 05 '24 00:11 RussKie

I'm checking this one, verifying it's a problem with test itself or the actual logic. Can't assign the issue to myself yet due to lack of permissions.

amadeuszl avatar Nov 12 '24 16:11 amadeuszl

To me it sounds like it could be problem with resource utilization on the agent running the build and unexpected behavior on memory or GC. There're 2 options I see so far:

  1. Callback gets removed
  2. Second Timer is removed from Provider

For 1st point I'm not really sure how to look for more details. But for second we can exclude it if we check waitersCountAfter first, to see if provider still has a timer. I will issue PR for that.

amadeuszl avatar Nov 14 '24 16:11 amadeuszl

I'll be checking pipelines from time to time, but let me know in case there's new failure.

amadeuszl avatar Nov 18 '24 08:11 amadeuszl

This submission has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 14 days.

It will be closed if no further activity occurs within 7 days of this comment.