Skip to content

multi-root workspace - Test Explorer gets stuck after 7 folders and discovery still pending #24650

@tboddyspargo

Description

@tboddyspargo

@eleanorjboyd - I don't know about others, but I'm still experiencing a situation where the Test Explorer gets stuck and stops enumerating discovered tests (or test discovery itself is stuck...). Some (~7) of my workspace folders populate with tests, 2 of them show errors, but the loading indicator never goes away and the rest of them (~10) never populate.

Image

I'm on ms-python.python pre-release version 2024.23.20241219, which I think should include the fix for this issue (?). I've been able to reproduce it with every version since 2024.21.0 (including every pre-release version).

My work-around is to revert back to 2024.20.0 where the issue is not reproducible.

From the logs, it's clear that discover HAS completed for some of the missing folders, but the Test Explorer is stuck and hasn't added/rendered those nodes. Is there perhaps some disconnect between the background processes and the "listeners" for them? Do they become "misaligned" after one discovery hits an error? I'll note that, in the past, I've noticed that test discovery/run/debug has had a harder time recovering from import-time Exceptions/failures (e.g. ModuleNotFoundError: No module named '...') than test/fixture Exceptions - I have had to explicitly stop/cancel in those cases. Could that be related?

Originally posted by @tboddyspargo in #24594

Metadata

Metadata

Assignees

Labels

area-testingbugIssue identified by VS Code Team member as probable bugtriage-neededNeeds assignment to the proper sub-team

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions