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

Enable pantsd by default #4438

Closed
stuhood opened this issue Apr 7, 2017 · 11 comments
Closed

Enable pantsd by default #4438

stuhood opened this issue Apr 7, 2017 · 11 comments
Assignees
Labels

Comments

@stuhood
Copy link
Member

stuhood commented Apr 7, 2017

This is blocked on a bunch of 1.3.0 issues, but primarily by #3941 and #3774: it should likely happen shortly into the 1.4.0.dev cycle, after #3941 is completed.

@stuhood stuhood added this to the 1.4.0 milestone Apr 7, 2017
@stuhood stuhood added the blocked label May 8, 2017
@kwlzn kwlzn modified the milestones: 1.4.x, Daemon Beta Oct 3, 2017
@kwlzn
Copy link
Member

kwlzn commented Jan 30, 2018

I think #5046 is the last blocker for this, afaict.

@kwlzn kwlzn modified the milestones: Daemon Beta, Daemon Post-Beta Feb 20, 2018
@stuhood
Copy link
Member Author

stuhood commented Jul 9, 2018

I think #5567 is now the last blocker here.

@blorente
Copy link
Contributor

blorente commented Mar 6, 2019

Coming back to this ticket, I think these are the blockers now:

@cosmicexplorer
Copy link
Contributor

I'm going to leave #6574 open for a bit (especially because I need to respond to some review comments), and before trying to merge it I will look at the open issues above and see if it might fix any of them (and add tests if so).

@cosmicexplorer
Copy link
Contributor

I would actually recommend adding #7080 as a blocker as well, as we do not have exception sink/logging testing for the pantsd case right now.

@cosmicexplorer
Copy link
Contributor

cosmicexplorer commented Mar 7, 2019

#7220 is relevant, not sure if it is a blocker because the failure went unnoticed for a very long time but it is a pretty important function, I just found some difficulty trying to test it then.

@blorente
Copy link
Contributor

blorente commented Mar 7, 2019

#7330 and #7331 are also relevant to strengthening integration testing.

@cosmicexplorer
Copy link
Contributor

I am going to add #5220 and #7301 to the TODO to fix with #6579 if possible. As I just now noted on #7301, I believe that ticket may be very closely related to #5220 / the same cause, although the behavior is different.

@blorente
Copy link
Contributor

blorente commented Jul 9, 2019

After #7596 and some cleanup of very pressing bugs, the tasks for having a solid daemon seem to be:

Feel free to add to this list.

@stuhood
Copy link
Member Author

stuhood commented May 10, 2020

The issues mentioned in #4438 (comment) should be resolved in #9722: a followup change will enable pantsd by default.

@stuhood stuhood removed this from the Daemon Backlog milestone May 22, 2020
stuhood added a commit that referenced this issue May 23, 2020
### Problem

Pants' runtime overhead is influenced by multiple factors:
1) packaging overhead in virtualenvs and pexes
2) import time for python code
3) time to walk the filesystem and (re)fingerprint inputs
4) time to run `@rule`s with unchanged inputs

Pantsd helps to address all of these issues, and has just (re-)reached maturity.

### Solution

Prepare to enable `pantsd` by default by deprecating not setting the `enable_pantsd` flag. Also, set the flag for pantsbuild/pants.

### Result

noop time when running in a virtualenv (such as in [github.com/pantsbuild/example-python](https://github.com/pantsbuild/example-python)) drops from `~2.4s` to `~1.6s`. Followup work (moving fingerprinting to the server, porting the client to rust) is expected to push this below `500ms`.

There are a collection of known issues that might impact users tracked in https://github.com/pantsbuild/pants/projects/5, some of which we will address via dogfooding. Others are matters of expectation: "I wouldn't expect that to work".

One of the most significant issues though is #7654: we should consider making a push before `1.29.0` to remove use of global mutable state to allow for concurrent pants runs with pantsd under v2.

Fixes #4438.
@stuhood
Copy link
Member Author

stuhood commented Jun 1, 2020

This is done for real in #9935. Thank you everyone!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants