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

Fix spawning of too many LSP TestHarnesses #2098

Merged
merged 1 commit into from
Nov 20, 2024

Conversation

rben01
Copy link
Contributor

@rben01 rben01 commented Nov 19, 2024

During benchmarking, each criterion run would spawn TestHarness, each with its own lsp process. They weren't cleaned up between criterion runs, so eventually they would exhaust the system’s process pool. Fixed this by explicitly killing and cleaning up the lsp at the end of a criterion run.

During benchmarking, each criterion run would spawn `TestHarness`, each with its own `lsp` process.
They weren't cleaned up between criterion runs, so eventually they would exhaust the system’s process pool.
Fixed this by explicitly killing and cleaning up the lsp at the end of a criterion run.
@jneem jneem enabled auto-merge November 20, 2024 01:51
@jneem jneem added this pull request to the merge queue Nov 20, 2024
Merged via the queue into tweag:master with commit 10d96a7 Nov 20, 2024
5 checks passed
@yannham
Copy link
Member

yannham commented Nov 20, 2024

Thanks for that @rben01 ! I've had LSP tests randomly hanging in the past but haven't had the drive to investigate. That must be the culprit.

@rben01 rben01 deleted the bench-server-cleanup branch November 21, 2024 15:36
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.

3 participants