microsoft / microsoft/vs-threading

Unstable test: KeysCollectable

Open
#282 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

test bug
Dominant language
C#
Stars
1k
Forks
160
Avg merge
1d 12h
Merged PRs (30d)
28

Description

In this appveyor build, the test failed with this output:

[xUnit.net 00:00:10.2106789]     Microsoft.VisualStudio.Threading.Tests.WeakKeyDictionaryTests.KeysCollectable [FAIL]
[xUnit.net 00:00:10.2108854]       Actual difference is -15865064.
[xUnit.net 00:00:10.2109402]       Expected: True
[xUnit.net 00:00:10.2109814]       Actual:   False
[xUnit.net 00:00:10.2119533]       Stack Trace:
[xUnit.net 00:00:10.2160650]         C:\projects\vs-threading\src\Microsoft.VisualStudio.Threading.Tests\WeakKeyDictionaryTests.cs(142,0): at Microsoft.VisualStudio.Threading.Tests.WeakKeyDictionaryTests.KeysCollectable()
[xUnit.net 00:00:10.2170002]       Output:
[xUnit.net 00:00:10.2170754]         Start 202275912, end 218140976, diff -15865064
Failed   Microsoft.VisualStudio.Threading.Tests.WeakKeyDictionaryTests.KeysCollectable
Error Message:
 Actual difference is -15865064.
Expected: True
Actual:   False
Stack Trace:
   at Microsoft.VisualStudio.Threading.Tests.WeakKeyDictionaryTests.KeysCollectable() in C:\projects\vs-threading\src\Microsoft.VisualStudio.Threading.Tests\WeakKeyDictionaryTests.cs:line 142
Standard Output Messages:
 Start 202275912, end 218140976, diff -15865064

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with src/Microsoft.VisualStudio.Threading.Tests/WeakKeyDictionaryTests.cs at line 142 and run the KeysCollectable test. Compare the test output with the referenced AppVeyor failure, then identify what makes the result unstable. Done means the test no longer fails intermittently.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
testing-qa
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.