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 client-related logic out of the PantsDaemon class #9949

Merged
merged 1 commit into from
Jun 3, 2020

Conversation

stuhood
Copy link
Member

@stuhood stuhood commented Jun 3, 2020

Problem

The PantsDaemon class was playing double duty as both the entrypoint for the pantsd server, and as a launcher for the client. We will soon need to make significant changes there in order to support #8200 and #7654.

Solution

Extract a PantsDaemonProcessManager base class for process metadata reads/writes and a PantsDaemonClient subclass to consume the metadata to decide whether to launch the server. This is 100% code moves... no logic changed.

Result

The PantsDaemon class is now exclusively a server, and PantsDaemonClient is now exclusively a client.

[ci skip-rust-tests]
[ci skip-jvm-tests]

@stuhood stuhood requested review from Eric-Arellano and gshuflin June 3, 2020 03:23
@stuhood stuhood force-pushed the stuhood/split-out-pantsd-client branch from 6f858e7 to 48969b1 Compare June 3, 2020 04:41
…ent and PantsDaemonProcessManager.

[ci skip-rust-tests]
[ci skip-jvm-tests]
@stuhood stuhood force-pushed the stuhood/split-out-pantsd-client branch from 48969b1 to 7ee2cb6 Compare June 3, 2020 17:40
@stuhood stuhood merged commit ea27e7c into pantsbuild:master Jun 3, 2020
@stuhood stuhood deleted the stuhood/split-out-pantsd-client branch June 3, 2020 19:10
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