Repository navigation
Open
Labels
Milestone
Description
net5.0-Linux-Debug-x64-Mono_release-RedHat.7.Amd64.Open https://helix.dot.net/api/2019-06-17/jobs/7c3e1020-fb91-4832-b4db-c0e1df873655/workitems/System.Collections.Concurrent.Tests/console
https://dev.azure.com/dnceng/public/_build/results?buildId=664284&view=logs&j=b4344b0d-0f92-5d69-ccaf-e0b24fbf14a2&t=555ea487-e6f6-5e9e-ac96-b1fa34f2540d&l=92
Executed on a003A66
+ ./RunTests.sh --runtime-path /home/helixbot/work/AA2E093E/p
----- start Fri May 29 21:41:25 UTC 2020 =============== To repro directly: =====================================================
pushd .
/home/helixbot/work/AA2E093E/p/dotnet exec --runtimeconfig System.Collections.Concurrent.Tests.runtimeconfig.json --depsfile System.Collections.Concurrent.Tests.deps.json xunit.console.dll System.Collections.Concurrent.Tests.dll -xml testResults.xml -nologo -nocolor -notrait category=IgnoreForCI -notrait category=OuterLoop -notrait category=failing
popd
===========================================================================================================
~/work/AA2E093E/w/9E1908B4/e ~/work/AA2E093E/w/9E1908B4/e
Discovering: System.Collections.Concurrent.Tests (method display = ClassAndMethod, method display options = None)
Discovered: System.Collections.Concurrent.Tests (found 867 of 876 test cases)
Starting: System.Collections.Concurrent.Tests (parallel test collections = on, max threads = 2)
System.Collections.Concurrent.Tests: [Long Running Test] 'System.Collections.Concurrent.Tests.ConcurrentStackTests.AddTakeWithAtLeastOneElementInCollection_IsEmpty_AlwaysFalse', Elapsed: 00:02:01
[Long Running Test] 'System.Collections.Concurrent.Tests.ConcurrentQueueTests.GetEnumerator_Generic_ExpectedElementsYielded', Elapsed: 00:02:02
[Long Running Test] 'System.Collections.Concurrent.Tests.BlockingCollectionTests.TestBugFix544259', Elapsed: 00:02:02
System.Collections.Concurrent.Tests: [Long Running Test] 'System.Collections.Concurrent.Tests.ConcurrentStackTests.AddTakeWithAtLeastOneElementInCollection_IsEmpty_AlwaysFalse', Elapsed: 00:04:01
[Long Running Test] 'System.Collections.Concurrent.Tests.ConcurrentQueueTests.GetEnumerator_Generic_ExpectedElementsYielded', Elapsed: 00:04:02
[Long Running Test] 'System.Collections.Concurrent.Tests.BlockingCollectionTests.TestBugFix544259', Elapsed: 00:04:02
System.Collections.Concurrent.Tests: [Long Running Test] 'System.Collections.Concurrent.Tests.ConcurrentStackTests.AddTakeWithAtLeastOneElementInCollection_IsEmpty_AlwaysFalse', Elapsed: 00:06:01
[Long Running Test] 'System.Collections.Concurrent.Tests.ConcurrentQueueTests.GetEnumerator_Generic_ExpectedElementsYielded', Elapsed: 00:06:02
[Long Running Test] 'System.Collections.Concurrent.Tests.BlockingCollectionTests.TestBugFix544259', Elapsed: 00:06:02
System.Collections.Concurrent.Tests: [Long Running Test] 'System.Collections.Concurrent.Tests.ConcurrentStackTests.AddTakeWithAtLeastOneElementInCollection_IsEmpty_AlwaysFalse', Elapsed: 00:08:01
[Long Running Test] 'System.Collections.Concurrent.Tests.ConcurrentQueueTests.GetEnumerator_Generic_ExpectedElementsYielded', Elapsed: 00:08:02
[Long Running Test] 'System.Collections.Concurrent.Tests.BlockingCollectionTests.TestBugFix544259', Elapsed: 00:08:02
System.Collections.Concurrent.Tests: [Long Running Test] 'System.Collections.Concurrent.Tests.ConcurrentStackTests.AddTakeWithAtLeastOneElementInCollection_IsEmpty_AlwaysFalse', Elapsed: 00:10:01
[Long Running Test] 'System.Collections.Concurrent.Tests.ConcurrentQueueTests.GetEnumerator_Generic_ExpectedElementsYielded', Elapsed: 00:10:02
[Long Running Test] 'System.Collections.Concurrent.Tests.BlockingCollectionTests.TestBugFix544259', Elapsed: 00:10:02
System.Collections.Concurrent.Tests: [Long Running Test] 'System.Collections.Concurrent.Tests.ConcurrentStackTests.AddTakeWithAtLeastOneElementInCollection_IsEmpty_AlwaysFalse', Elapsed: 00:12:01
[Long Running Test] 'System.Collections.Concurrent.Tests.ConcurrentQueueTests.GetEnumerator_Generic_ExpectedElementsYielded', Elapsed: 00:12:02
[Long Running Test] 'System.Collections.Concurrent.Tests.BlockingCollectionTests.TestBugFix544259', Elapsed: 00:12:02
System.Collections.Concurrent.Tests: [Long Running Test] 'System.Collections.Concurrent.Tests.ConcurrentStackTests.AddTakeWithAtLeastOneElementInCollection_IsEmpty_AlwaysFalse', Elapsed: 00:14:01
[Long Running Test] 'System.Collections.Concurrent.Tests.ConcurrentQueueTests.GetEnumerator_Generic_ExpectedElementsYielded', Elapsed: 00:14:02
[Long Running Test] 'System.Collections.Concurrent.Tests.BlockingCollectionTests.TestBugFix544259', Elapsed: 00:14:02
Activity
[-]System.Collections.Concurrent.Tests failures in CI[/-][+]System.Collections.Concurrent.Tests timeout failures in CI[/+]stephentoub commentedon Jul 8, 2020
Again here:
https://helix.dot.net/api/2019-06-17/jobs/1fa41e53-b9d6-4ddb-bae3-9678f79a1f19/workitems/System.Collections.Concurrent.Tests/files/console.91b40d75.log
danmoseley commentedon Aug 2, 2020
@wfurt could you please help me find these timeouts in Kusto? I've tried for a while. I assume I should find Result="Fail" (I don't see a "TimedOut") but I don't find any failures on 5/29. If I look at Duration, eg
I only get 4 hits, and those were test failures rather than job failures.
I'm guessing I need to lookin a different way to find jobs that timed out.
wfurt commentedon Aug 3, 2020
gives me ~ 130 entries including the one @tarekgh reported. The problem is that because the run did no finish and report any results, there are no entries in Jobs table.
with one entry
vs empty
danmoseley commentedon Aug 3, 2020
Thank you @wfurt. Just what I needed.
It seems the tests do not normally take long. Of the last couple months, 104 out of 22,461 work items timed out. Those that did not mostly took a minute or so. That suggests they go into a hang state due to a bug, they are not merely slow.
WorkItems

| where Status != "Timeout"
| where Started > todatetime("05/01/20")
| where FriendlyName == "System.Collections.Concurrent.Tests"
| extend Duration = datetime_diff("Minute", Finished, Started)
| summarize count() by Duration, length=bin(Duration, 1)
Randomly sampling the console output of the last ~20 timed out runs, suggests certain tests are usually the long running ones.
But, typically when a job does "hang", there is more than one "hanging" test, eg.,
Which suggests possibly they are interfering with each other.
danmoseley commentedon Aug 3, 2020
Hangs are disproportionately likely to be on Windows (but not exclusively on Windows)
WorkItems
| where Status != "Timeout"
| where Started > todatetime("05/01/20")
| where FriendlyName == "System.Collections.Concurrent.Tests"
| extend Duration = datetime_diff("Minute", Finished, Started)
| summarize count() by QueueName
| top 3 by count_;
QueueName count_
ubuntu.1604.amd64.open 41953
ubuntu.1804.armarch.open 18125
osx.1013.amd64.open 17931
WorkItems
| where Status == "Timeout"
| where Started > todatetime("05/01/20")
| where FriendlyName == "System.Collections.Concurrent.Tests"
| summarize count() by QueueName
| top 3 by count_;
QueueName count_
windows.10.amd64.server19h1.es.open 21
windows.81.amd64.open 17
redhat.7.amd64.open 9
danmoseley commentedon Aug 3, 2020
Next action seems either
danmoseley commentedon Aug 11, 2020
Again in #39640
2 remaining items
danmoseley commentedon Aug 11, 2020
I was inclined to move this out, but there is a possibility this is a product bug, so it woudl be good to at least attempt to loop it locally.
antonfirsov commentedon Sep 4, 2020
There were failures on Windows in #41747:
https://dev.azure.com/dnceng/public/_build/results?buildId=801834&view=ms.vss-test-web.build-test-results-tab&runId=25388804&resultId=177689&paneView=attachments
https://helix.dot.net/api/2019-06-17/jobs/afefe1fe-abaa-4022-aa8a-2a4aa5bd522c/workitems/System.Collections.Concurrent.Tests/files/console.c5f7a031.log
This might deserve a separate issue, but unsure.