Avoid accessing IVs apis off of the UI thread
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 45/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Stale
- Tech stack
- csharp
- Domain
- testing-qa, tooling
Research direction
Start in Nodejs/Product/TestAdapterImpl/TestContainerDiscoverer.cs around line 244, where the nodejs adapter accesses IVs APIs while discovering test containers. Read the surrounding discovery flow and the JTF.SwitchToMainThreadAsync guidance first. Done means IVs API access occurs on the UI thread and the work switches off it with await Task.Default afterward.
Written by the indexing model from the issue text.
Description
When the Test Explorer requests for a list of test containers from the test adapters through a property, the nodejs adapter calls IVs APIs to retrieve necessary information, but doesn't do so after switching to the UI thread which can cause deadlocks.
It is recommended that the thread should instead be switched to the UI thread using JTF.SwitchToMainThreadAsync before accessing the IVs APIs and switched off of it using await Task.Default when done,
- Dominant language
- C#
- Stars
- 1.8k
- Forks
- 355
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from microsoft/nodejstools
-
microsoft/nodejstools#2523 · 1 reaction · 1 assignee ·
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
microsoft/nodejstools#2519 · 1 comment ·
-
Difficulty 5/5 Over a week Newbie friendliness 15/100
microsoft/nodejstools#2517 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 25/100
microsoft/nodejstools#2514 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
microsoft/nodejstools#2513 · 5 comments ·
All issues in microsoft/nodejstools
Similar issues
-
type/automation type/tech-debt
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
t/bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
ci-failure-cause test-failure
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
area:auth FE mvp P3
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
klasolsson81/jobbliggaren#1788 ·