You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pytest runner in the left panel seems to do something like dist=load despite my settings.json, resulting in periodic bottlenecking on slow tests.
Steps to reproduce:
Running my large suite with uv run pytest tests -n auto --dist worksteal saturates CPU and gives long ..... lines undifferentiated by filenames. But execting the runner with settings.json
produces a long list of FILENAME ..... [PCT%] lines, and repeated bursts of full core saturation interspersed by long stretches of single-core usage in a single suite run.
Diagnostic data
Details
Excerpt from the TEST RESULTS panel:
Running pytest with args: ['-p', 'vscode_pytest', '-n', 'auto', '--dist', 'worksteal', '--rootdir=/home/tbertalan/lake/Projects/ModelCalibration-issue-118', (long list of specific path/file.py::class entries snipped here)
============================= test session starts ==============================
platform linux -- Python 3.12.13, pytest-9.0.3, pluggy-1.6.0
rootdir: /home/tbertalan/lake/Projects/ModelCalibration-issue-118
configfile: pyproject.toml
plugins: cov-7.1.0, xdist-3.8.0, typeguard-2.13.3, jaxtyping-0.3.11, anyio-4.13.0
collected 446 items
tests/test_anp_loader.py ........................................ [ 8%]
tests/test_anp_registry.py .............................. [ 15%]
tests/test_behavior.py ....... [ 17%]
vs a (non-vscode) terminal run
tbertalan@swiftie:~/lake/Projects/ModelCalibration-issue-118$ uv run pytest -n auto -p no:slow-first
Built modelcalibration @ file:///home/tbertalan/lake/Projects/ModelCalibration-issue-118
Uninstalled 1 package in 0.81ms
Installed 1 package in 3ms
============================================================================================== test session starts ==============================================================================================
platform linux -- Python 3.12.13, pytest-9.0.3, pluggy-1.6.0
rootdir: /home/tbertalan/lake/Projects/ModelCalibration-issue-118
configfile: pyproject.toml
testpaths: tests
plugins: cov-7.1.0, xdist-3.8.0, typeguard-2.13.3, jaxtyping-0.3.11, anyio-4.13.0
4 workers [446 items]
...............................................................................................................................................................x.xxx............................x........ [ 45%]
.................x..x.....................................................................Xss............................................................................................................ [ 90%]
............................................
Extension version: 2026.4.0
VS Code version: Code 1.129.1 (8a7abeba6e03ea3af87bfbce9a1b7e48fed567b8, 2026-07-17T15:35:09Z)
OS version: Windows_NT x64 10.0.26200
Modes:
Remote OS version: Linux x64 6.14.0-37-generic
Python version (& distribution if applicable, e.g. Anaconda): 3.13.3.final.0
Type of virtual environment used (e.g. conda, venv, virtualenv, etc.): System
Value of the python.languageServer setting: Default
Type: Performance Issue
Behaviour
pytest runner in the left panel seems to do something like dist=load despite my settings.json, resulting in periodic bottlenecking on slow tests.
Steps to reproduce:
Running my large suite with
uv run pytest tests -n auto --dist workstealsaturates CPU and gives long ..... lines undifferentiated by filenames. But execting the runner with settings.json{ "python.testing.pytestArgs": [ "tests", "-n", "auto", "--dist", "worksteal" ], "python.testing.unittestEnabled": false, "python.testing.pytestEnabled": true }produces a long list of FILENAME ..... [PCT%] lines, and repeated bursts of full core saturation interspersed by long stretches of single-core usage in a single suite run.
Diagnostic data
Details
Excerpt from the TEST RESULTS panel:
vs a (non-vscode) terminal run
Extension version: 2026.4.0
VS Code version: Code 1.129.1 (8a7abeba6e03ea3af87bfbce9a1b7e48fed567b8, 2026-07-17T15:35:09Z)
OS version: Windows_NT x64 10.0.26200
Modes:
Remote OS version: Linux x64 6.14.0-37-generic
python.languageServersetting: DefaultUser Settings
Installed Extensions
System Info
GPU0: VENDOR= 0x1002, DEVICE=0x15e7 [AMD Radeon (TM) Graphics], DRIVER_VENDOR=AMD, DRIVER_VERSION=31.0.21923.13006 ACTIVE
GPU1: VENDOR= 0x1414, DEVICE=0x008c [Microsoft Basic Render Driver], DRIVER_VERSION=10.0.26100.8875
Machine model name:
Machine model version:
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
trees_in_viz: disabled_off
video_decode: enabled
video_encode: enabled
webgl: enabled
webgpu: enabled
webnn: disabled_off
Process Info
Workspace Info
A/B Experiments