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

MultipleOperationsOverSingleHandle_CompletedWorkItemCountTest frequent failures #49700

Closed
directhex opened this issue Mar 16, 2021 · 9 comments · Fixed by #57240
Closed

MultipleOperationsOverSingleHandle_CompletedWorkItemCountTest frequent failures #49700

directhex opened this issue Mar 16, 2021 · 9 comments · Fixed by #57240
Assignees
Labels
area-System.Threading disabled-test The test is disabled in source code against the issue
Milestone

Comments

@directhex
Copy link
Contributor

Description

Assert.InRange() Failure\r\nRange:  (0 - 60000)\r\nActual: 60016

https://dev.azure.com/dnceng/public/_build/results?buildId=1039498
https://dev.azure.com/dnceng/public/_build/results?buildId=1039390
https://dev.azure.com/dnceng/public/_build/results?buildId=1035778

@dotnet-issue-labeler
Copy link

I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label.

@dotnet-issue-labeler dotnet-issue-labeler bot added the untriaged New issue has not been triaged by the area owner label Mar 16, 2021
@directhex directhex added area-System.Threading and removed untriaged New issue has not been triaged by the area owner labels Mar 16, 2021
@stephentoub stephentoub added the disabled-test The test is disabled in source code against the issue label Mar 16, 2021
@directhex directhex added the blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' label Mar 16, 2021
@mangod9 mangod9 added this to the 6.0.0 milestone Jul 6, 2021
kouvel added a commit to kouvel/runtime that referenced this issue Aug 11, 2021
…d more info about failures

- Not sure why it would be failing. The test seems to be calling a different sub-test method than intended. Fixed that, updated the test to use a different temp file name in case the two relevant tests run in parallel, and added more info if it happens to fail again.
- Closes dotnet#47979
- Closes dotnet#49700
@ghost ghost added the in-pr There is an active PR which will close this issue when it is merged label Aug 11, 2021
@kouvel kouvel modified the milestones: 6.0.0, 7.0.0 Aug 11, 2021
@ghost ghost removed the in-pr There is an active PR which will close this issue when it is merged label Aug 18, 2021
@adamsitnik
Copy link
Member

@kouvel I've hit that in #57717

From logs:

Console log: 'System.Threading.Overlapped.Tests' from job 4fc058d6-4acd-4f87-b026-b0d30f1af6ea workitem ac9b57b8-827c-4562-909c-aa8cdcf343f6 (windows.7.amd64.open.rt) executed on machine a0014RZ

C:\h\w\B48909FB\w\B0FD09B4\e>taskkill.exe /f /im corerun.exe 
ERROR: The process "corerun.exe" not found.

C:\h\w\B48909FB\w\B0FD09B4\e>call RunTests.cmd --runtime-path C:\h\w\B48909FB\p 
----- start Thu 08/19/2021  9:57:11.09 ===============  To repro directly: ===================================================== 
pushd C:\h\w\B48909FB\w\B0FD09B4\e\
"C:\h\w\B48909FB\p\dotnet.exe" exec --runtimeconfig System.Threading.Overlapped.Tests.runtimeconfig.json --depsfile System.Threading.Overlapped.Tests.deps.json xunit.console.dll System.Threading.Overlapped.Tests.dll -xml testResults.xml -nologo -nocolor -notrait category=IgnoreForCI -notrait category=OuterLoop -notrait category=failing 
popd
===========================================================================================================

C:\h\w\B48909FB\w\B0FD09B4\e>"C:\h\w\B48909FB\p\dotnet.exe" exec --runtimeconfig System.Threading.Overlapped.Tests.runtimeconfig.json --depsfile System.Threading.Overlapped.Tests.deps.json xunit.console.dll System.Threading.Overlapped.Tests.dll -xml testResults.xml -nologo -nocolor -notrait category=IgnoreForCI -notrait category=OuterLoop -notrait category=failing  
  Discovering: System.Threading.Overlapped.Tests (method display = ClassAndMethod, method display options = None)
  Discovered:  System.Threading.Overlapped.Tests (found 62 of 63 test cases)
  Starting:    System.Threading.Overlapped.Tests (parallel test collections = on, max threads = 2)
    ThreadPoolBoundHandleTests.MultipleOperationsOverSingleHandle_CompletedWorkItemCountTest [FAIL]
      System.AggregateException : changeInCompletedWorkItemCount: 1 (Assert.InRange() Failure
      Range:  (0 - 60000)
      Actual: 60016)
      ---- Assert.InRange() Failure
      Range:  (0 - 60000)
      Actual: 60016
      Stack Trace:
        /_/src/libraries/System.Threading.Overlapped/tests/ThreadPoolBoundHandle_IntegrationTests.netcoreapp.cs(29,0): at ThreadPoolBoundHandleTests.MultipleOperationsOverSingleHandle_CompletedWorkItemCountTest()
        ----- Inner Stack Trace -----
        /_/src/libraries/Common/tests/System/Threading/ThreadTestHelpers.cs(147,0): at System.Threading.Tests.ThreadTestHelpers.WaitForConditionWithCustomDelay(Func`1 condition, Action delay)
        /_/src/libraries/Common/tests/System/Threading/ThreadTestHelpers.cs(117,0): at System.Threading.Tests.ThreadTestHelpers.WaitForCondition(Func`1 condition)
        /_/src/libraries/System.Threading.Overlapped/tests/ThreadPoolBoundHandle_IntegrationTests.netcoreapp.cs(20,0): at ThreadPoolBoundHandleTests.MultipleOperationsOverSingleHandle_CompletedWorkItemCountTest()
  Finished:    System.Threading.Overlapped.Tests
=== TEST EXECUTION SUMMARY ===
   System.Threading.Overlapped.Tests  Total: 71, Errors: 0, Failed: 1, Skipped: 0, Time: 60.398s

FWIW It's Windows 7, x86

@kouvel kouvel reopened this Aug 23, 2021
kouvel added a commit to kouvel/runtime that referenced this issue Aug 23, 2021
…nsOverSingleHandle_CompletedWorkItemCountTest`

- Not sure what would be causing it, disabling until it's figured out
- Latest failure: dotnet#49700 (comment)
@kouvel
Copy link
Member

kouvel commented Aug 23, 2021

Thanks @adamsitnik. This seems to have the new info I added but I still don't know why it would be failing. Disabling the test for now.

stephentoub pushed a commit that referenced this issue Aug 25, 2021
…nsOverSingleHandle_CompletedWorkItemCountTest` (#57957)

- Not sure what would be causing it, disabling until it's figured out
- Latest failure: #49700 (comment)
@AustinWise
Copy link
Contributor

I don't know if it's related, but I committed a changed that touched one of the places that that increments CompletedWorkItemCount. See this commit. It should not be possible for this change to cause more counting than before, since I deleted both CallbackForInitiateDrainageOfCompletionPortQueue and CallbackForContinueDrainageOfCompletionPortQueue. But I wanted to point it out anyway since the test started to fail shortly after my change.

@kouvel
Copy link
Member

kouvel commented Aug 26, 2021

@AustinWise I agree it doesn't look like that change would cause a completion to be missed in counting. The drainage work items were fake housekeeping work items so they were not counted, in this test there should be two real completions.

@mangod9
Copy link
Member

mangod9 commented Jul 19, 2022

Closing since this doesnt appear to repro anymore.

@mangod9 mangod9 closed this as completed Jul 19, 2022
@MichalStrehovsky
Copy link
Member

That test doesn't run because it's blocked on this issue.

[ActiveIssue("https://github.com/dotnet/runtime/issues/49700")]

@mangod9
Copy link
Member

mangod9 commented Jul 19, 2022

Ok assigning to @eduardo-vp for now since Kount is out. Please check if the failure still repros after removing the [ActiveIssue] tag. Thanks

@kouvel
Copy link
Member

kouvel commented Aug 9, 2022

The ActiveIssue was removed in #72973

@kouvel kouvel closed this as completed Aug 9, 2022
@ghost ghost locked as resolved and limited conversation to collaborators Sep 9, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-System.Threading disabled-test The test is disabled in source code against the issue
Projects
None yet
9 participants