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

Speed up functional tests #597

Closed
mkniewallner opened this issue Mar 15, 2024 · 0 comments · Fixed by #598
Closed

Speed up functional tests #597

mkniewallner opened this issue Mar 15, 2024 · 0 comments · Fixed by #598
Labels

Comments

@mkniewallner
Copy link
Collaborator

Functional tests run in dedicated virtual environments to avoid poisoning the virtual environment used to run tests. We do reuse an environment if multiple tests depend on the same test project, but we have several different projects. Part of the environment setup is installing deptry from the local environment, meaning that we do not use a pre-built wheel, thus re-building the package every time we bootstrap a new virtual environment.

We could speed up functional tests with different options:

  • building deptry wheel once for the current Python version/OS/architecture, and re-using it across our different tests
  • running functional tests in parallel

2nd solution seems less scalable, as each long operation of building wheels would get done on one process, but the number of environments could be greater than the number of processes we run tests on, so we could end up having 2 environments that sequentially build the same wheel from scratch on the same process.

We could maybe combine the 2 options by ensuring that we always build a wheel from scratch, then use this wheel and run tests.

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

Successfully merging a pull request may close this issue.

1 participant