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

Test collection hangs forever #6822

Closed
marvingreenberg opened this issue Jan 6, 2025 · 2 comments
Closed

Test collection hangs forever #6822

marvingreenberg opened this issue Jan 6, 2025 · 2 comments

Comments

@marvingreenberg
Copy link

marvingreenberg commented Jan 6, 2025

Type: Bug

See also: Issue microsoft/vscode-python#24684. OK, duplicates microsoft/vscode-python#24656

With the attached project, opening the Testing tab hangs forever on collection. Removing the two test files test_utils1.py and test_utils2.py and restarting vscode, test collectiojn succeeds. It seems having only a single test file succeeds. Creating a simple example was difficult - removing parts of the source code or simplifying the tests sometimes would fix the infinite hang.

The python logs seem to correctly show the test collection output, but the pipe output is not read. Once the test collection hangs, the only way to reset is by completely restarting vscode. Clicking "stop collection" has not effect.

Running test collection on the command line succeeds.

$ python -m venv .venv
$ . .venv/bin/activate
$ pip install -e '.[dev]'
$ pytest --collect-only -vv --no-cov tests

<reports 20 tests>

Extension version: 2024.12.1
VS Code version: Code 1.96.2 (fabdb6a30b49f79a7aba0f2ad9df9b399473380f, 2024-12-19T10:22:47.216Z)
OS version: Darwin arm64 23.6.0
Modes:

System Info
Item Value
CPUs Apple M1 Max (10 x 2400)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
Load (avg) 2, 2, 3
Memory (System) 64.00GB (11.22GB free)
Process Argv --crash-reporter-id 162a7914-1a53-4983-8814-9812ca819d4c
Screen Reader no
VM 0%
A/B Experiments
vsliv368:30146709
vspor879:30202332
vspor708:30202333
vspor363:30204092
pythonvspyt551cf:31179979
vscod805cf:30301675
binariesv615:30325510
vsaa593:30376534
py29gd2263:31024239
c4g48928:30535728
azure-dev_surveyone:30548225
vscrp:30673768
a9j8j154:30646983
962ge761:30959799
pythonnoceb:30805159
pythonmypyd1:30879173
2e7ec940:31000449
pythontbext0:30879054
cppperfnew:31000557
dsvsc020:30976470
pythonait:31006305
dsvsc021:30996838
dvdeprecation:31068756
dwnewjupyter:31046869
2f103344:31071589
nativerepl1:31139838
pythonrstrctxt:31112756
nativeloc2:31192216
cf971741:31144450
iacca1:31171482
notype1:31157159
5fd0e150:31155592
dwcopilot:31170013
stablechunks:31184530
6074i472:31201624

@marvingreenberg
Copy link
Author

This project exhibits the behavior for me. hanging-test-collection.tgz

@marvingreenberg
Copy link
Author

Duplicates microsoft/vscode-python#24656

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant