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

Running tests with coverage "hangs" after all tests are done #24692

Closed
AlexanderPodorov opened this issue Jan 7, 2025 · 3 comments
Closed

Running tests with coverage "hangs" after all tests are done #24692

AlexanderPodorov opened this issue Jan 7, 2025 · 3 comments
Assignees
Labels
triage-needed Needs assignment to the proper sub-team

Comments

@AlexanderPodorov
Copy link

Type: Performance Issue

Behaviour

When I run pytest with coverage via VSCode UI, I see the testing is still ongoing, however all tests have been executed successfully.

It works in v2024.22.0, but does not work in v2024.22.1 and a couple pre-release versions I've tried so far.

Steps to reproduce:

  1. Install v2024.22.1 and run pytest with coverage via VSCode UI

Diagnostic data

Output for Python in the Output panel (ViewOutput, change the drop-down the upper-right of the Output panel to Python)

XXX

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

  • Python version (& distribution if applicable, e.g. Anaconda): 3.12.5
  • Type of virtual environment used (e.g. conda, venv, virtualenv, etc.): Venv
  • Value of the python.languageServer setting: Default
User Settings


languageServer: "Pylance"

testing
• pytestArgs: "<placeholder>"
• pytestEnabled: true

Installed Extensions
Extension Name Extension Id Version
Better Jinja samuelcolvin.jinjahtml 0.20.0
ESLint dbaeumer.vscode-eslint 3.0.10
Even Better TOML tamasfe.even-better-toml 0.21.2
JavaScript Debugger ms-vscode.js-debug 1.96.0
JavaScript Debugger Companion Extension ms-vscode.js-debug-companion 1.1.3
Jupyter ms-toolsai.jupyter 2024.11.0
Jupyter Cell Tags ms-toolsai.vscode-jupyter-cell-tags 0.1.9
Jupyter Keymap ms-toolsai.jupyter-keymap 1.1.2
Jupyter Notebook Renderers ms-toolsai.jupyter-renderers 1.0.21
Jupyter Slide Show ms-toolsai.vscode-jupyter-slideshow 0.1.6
Live Preview ms-vscode.live-server 0.4.15
Live Server ritwickdey.LiveServer 5.7.9
Markdown All in One yzhang.markdown-all-in-one 3.6.2
Markdown Emoji bierner.markdown-emoji 0.3.1
Markdown Preview Mermaid Support bierner.markdown-mermaid 1.27.0
Pylance ms-python.vscode-pylance 2024.12.1
Python ms-python.python 2024.22.1
Python Debugger ms-python.debugpy 2024.14.0
Ruff charliermarsh.ruff 2024.56.0
Sort lines Tyriar.sort-lines 1.12.0
SQLTools mtxr.sqltools 0.28.3
SQLTools PostgreSQL/Cockroach Driver mtxr.sqltools-driver-pg 0.5.4
Table Visualizer for JavaScript Profiles ms-vscode.vscode-js-profile-table 1.0.10
System Info
Item Value
CPUs Apple M1 Pro (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) 3, 4, 4
Memory (System) 16.00GB (0.55GB free)
Process Argv --crash-reporter-id b18eb1dd-5763-4eb9-9747-ba339864022c
Screen Reader no
VM 0%
Process Info
CPU %	Mem MB	   PID	Process
   18	   213	 98044	code main
    0	    66	 98048	   gpu-process
    0	    33	 98049	   utility-network-service
    0	   311	 98051	window [1] (.env — versatrans-api)
    0	    82	 98347	shared-process
    0	    49	 98381	ptyHost
    0	     0	  2874	     /bin/zsh -i
    0	     0	  3226	     /bin/zsh -i
    0	     0	  3613	     /bin/zsh -il
    0	     0	  4582	     /bin/zsh -i
    0	     0	  4717	     /bin/zsh -i
    0	     0	  4996	     /bin/zsh -i
    0	     0	  5131	     /bin/zsh -i
    0	     0	  5484	     /bin/zsh -i
    0	     0	  5619	     /bin/zsh -i
    0	     0	  5765	     /bin/zsh -i
    0	     0	  5901	     /bin/zsh -i
Workspace Info
|  Window (.env — versatrans-api)
|    Folder (versatrans-api): 13507 files
|      File types: pyc(5397) py(4318) pyi(286) txt(93) dylib(87) typed(66)
|                  pyx(65) h(59) so(58) f90(55)
|      Conf files: settings.json(1);
A/B Experiments
vsliv368:30146709
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscod805cf:30301675
binariesv615:30325510
vsaa593:30376534
py29gd2263:31024239
c4g48928:30535728
azure-dev_surveyone:30548225
vscrpc:30673769
2i9eh265:30646982
962ge761:30959799
pythonnoceb:30805159
pythonmypyd1:30879173
2e7ec940:31000449
pythontbext0:30879054
cppperfnew:31000557
dsvsc020:30976470
pythonait:31006305
dsvsc021:30996838
dvdeprecation:31068756
dwnewjupytercf:31046870
newcmakeconfigv2:31071590
nativerepl2:31139839
pythonrstrctxt:31112756
nativeloc2:31192216
cf971741:31144450
iacca1:31171482
notype1:31157159
5fd0e150:31155592
dwcopilot:31170013
stablechunks:31184530
6074i472:31201624

@github-actions github-actions bot added the triage-needed Needs assignment to the proper sub-team label Jan 7, 2025
@AlexanderPodorov
Copy link
Author

See a couple of screenshots for the better understandingImage
Image

@karthiknadig
Copy link
Member

Try the latest pre-release from today. We have a fix for this in it.

@github-actions github-actions bot added the info-needed Issue requires more information from poster label Jan 7, 2025
@AlexanderPodorov
Copy link
Author

Confirmed, the issue was solved in the latest pre-release version 2024.23.2025010701

@github-actions github-actions bot removed the info-needed Issue requires more information from poster label Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triage-needed Needs assignment to the proper sub-team
Projects
None yet
Development

No branches or pull requests

3 participants