-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
pytest discovery 30x longer for VS Code than in a regular terminal #23849
Comments
Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.91.1. Please try upgrading to the latest version and checking whether this issue remains. Happy Coding! |
Hi! Sorry for the delay here. I am honestly not sure what could be impacting this since all we do is spin up a subprocess that runs pytest.main with the same args. This is the link to the code with the args that are then run https://github.com/eleanorjboyd/vscode-python/blob/776301661e845ebd38cf007a2eddf800b830749c/src/client/testing/testController/pytest/pytestDiscoveryAdapter.ts#L110-L111. I think it could just be running it in a node subprocess could mean it has less memory or no parallelism? @karthiknadig any thoughts here? |
Looks like they have a repro here: github.com/kkrt-labs/kakarot that you can try. |
Because we have not heard back with the information we requested, we are closing this issue for now. If you are able to provide the info later on, then we will be happy to re-open this issue to pick up where we left off. Happy Coding! |
This has been solved with a previous (can't remember which) version of VS Code, thanks |
Type: Performance Issue
The repository is open source at github.com/kkrt-labs/kakarot.
Just configure pytest as the test runner, with tests as the base directory. The logs in the output tab show
==== 1156 tests collected in 27.45s ====
Using only the native pytest command directly in a VS Code returns
==== 1156 tests collected in 0.87s ====
VS Code version: Code 1.88.1 (e170252f762678dec6ca2cc69aba1570769a5d39, 2024-04-10T17:43:08.196Z)
OS version: Darwin arm64 23.5.0
Modes:
System Info
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
Process Info
Workspace Info
Extensions (46)
A/B Experiments
The text was updated successfully, but these errors were encountered: