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

Split relative requirement install tests #7581

Merged
merged 3 commits into from
Jan 13, 2020

Conversation

chrahunt
Copy link
Member

@chrahunt chrahunt commented Jan 12, 2020

test_basic_install_relative_directory and test_relative_requirements_file are some of our longest tests (as indicated in our test summary in Azure Pipelines, e.g. here). This isn't because they're doing anything special, just a simple thing several times, requiring pip uninstall in-between runs in the same test.

Now we run the tests individually and can drop the unnecessary pip uninstall which saving some time (4s on my machine single-threaded). This also allows these individual tests to be run concurrently when using pytest-xdist.

Progresses #4497.

This lets us make better use of parallelization and will let us remove
the unnecessary uninstallation from these individual tests.
Since a new temporary script path is used for each test, no need to do
uninstall.
@chrahunt chrahunt added C: tests Testing and related things type: refactor Refactoring code skip news Does not need a NEWS file entry (eg: trivial changes) labels Jan 12, 2020
@chrahunt chrahunt marked this pull request as ready for review January 12, 2020 01:12
@chrahunt chrahunt merged commit cf722df into pypa:master Jan 13, 2020
@chrahunt chrahunt deleted the refactor/split-install-tests branch January 13, 2020 17:40
@lock lock bot added the auto-locked Outdated issues that have been locked by automation label Feb 12, 2020
@lock lock bot locked as resolved and limited conversation to collaborators Feb 12, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
auto-locked Outdated issues that have been locked by automation C: tests Testing and related things skip news Does not need a NEWS file entry (eg: trivial changes) type: refactor Refactoring code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants