8000 Make `--no-server` mode also terminate on removal of `processId` file, use it in integration test cleanup by lihaoyi · Pull Request #4587 · com-lihaoyi/mill · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Make --no-server mode also terminate on removal of processId file, use it in integration test cleanup #4587

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 13 commits into from
Feb 19, 2025

Conversation

lihaoyi
Copy link
Member
@lihaoyi lihaoyi commented Feb 19, 2025

This attempts to fix some of the residual flakiness encountered in #4570

Somehow the recursive process termination we pulled in from upstream com-lihaoyi/os-lib#359 only works some of the time, and other times the processes get leaked. This PR extends the serverId-file-deleted shutdown logic we already used for client-server mode and enables it for --no-server mode as well. This lets us put an additional guardrail in our IntegrationTester#close to delete any such files, to try and force any Mill processes to terminate.

Added an additional integration test to exercise this behavior

Also fixed a bug in ExampleTester not honoring the clientServerMode flag, and update testkit.test to assert on those behaviors

@lihaoyi lihaoyi merged commit a16a448 into com-lihaoyi:main Feb 19, 2025
31 checks passed
@lefou lefou added this to the 0.13.0 milestone Feb 21, 2025
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
0