Skip to content

Clean up dmypy daemon created in test. #64

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

Merged
merged 1 commit into from
Jul 18, 2023

Conversation

tjni
Copy link

@tjni tjni commented Jun 6, 2023

There is a sequence of events:

  1. When using dmypy, a daemon process is forked.
  2. When test_dmypy_status_file runs (and dmypy is not in PATH), this daemon is started from the test process.
  3. When pytest is run and completes, there is a dangling pytest process which is running the daemon.
  4. When pytest is run by the nix package manager, I observe the package manager waiting forever for this dangling process to complete.

This commit does a best effort cleanup of the dmypy daemon before the test is completed.

@Richardk2n
Copy link
Member

Sorry, forgot about this.

@Richardk2n
Copy link
Member

Not sure why 3.7 does not work, but given mypy just dropped support for 3.7, we will as well.

@tjni
Copy link
Author

tjni commented Jul 4, 2023

No apology needed. I tried reproducing the failure on Python 3.7 (granted, on macOS) and couldn't, so I am also not sure what happened during that run. Since we are dropping Python 3.7 support, I'll let it be for now. Thank you!

@Richardk2n Richardk2n merged commit d72a3c6 into python-lsp:master Jul 18, 2023
@tjni tjni deleted the test-clean-up-dmypy-daemon branch July 18, 2023 16:55
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.

2 participants