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

Run tests in parallel #1624

Merged
merged 1 commit into from
Feb 15, 2022

Conversation

mathbunnyru
Copy link
Member

@mathbunnyru mathbunnyru commented Feb 14, 2022

Fix: #1622

time TEST_IMAGE="jupyter/base-notebook" pytest test/ base-notebook/test/ --log-level debug:
Executed in 145.72 secs

Same with -n auto:
Executed in 44.42 secs

def get_host_port(self, container_port: str) -> str:
"""Returns the host port associated with the tracked container's port."""
assert isinstance(self.container, Container)
self.container.reload()
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't actually work well when running many tests in parallel :=(
I don't really want to dig in the reason, but I think I've found an implementation, which works more reliable.

Copy link
Collaborator

@romainx romainx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello @mathbunnyru,

Very good initiative 👍. I think we can merge it.
Thanks.

@mathbunnyru mathbunnyru merged commit 72e2af0 into jupyter:master Feb 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add an ability to run tests in parallel
2 participants