hundreds-father-404
05/01/2020, 1:34 AMtarget()
in BUILD files? Yes, see core/target_types.py
.
If you mean a common class to inherit from, no. Targets no longer use inheritance in V2. Fields do, but every target should directly subclass engine.Target
. (Nothing preventing this, beyond convention)aloof-angle-91616
05/01/2020, 1:34 AMtarget_types()
to make the test passaloof-angle-91616
05/01/2020, 1:36 AMwitty-crayon-22786
05/01/2020, 5:21 PMwitty-crayon-22786
05/01/2020, 7:31 PM--changed
(add adding a default value for --changed-parent
presumably)hundreds-father-404
05/01/2020, 8:07 PMproject-info
-y goals? In V2, these will be enabled by default, but be able to opted out of.
pants.project_info
(info on your own code):
* list
* filedeps
* dependencies
* dependees
* cloc
* roots
pants.pants_info
(info on Pants internals):
* target-types
* goals
* options
* backendspolite-garden-50641
05/03/2020, 3:26 AMpkill -9
the process.aloof-angle-91616
05/04/2020, 3:10 AMlist_targets_old.py
entirely?hundreds-father-404
05/04/2020, 3:14 AMlist_targets_old.py
until we require all plugin authors to write Target API bindings for their targets. list_targets.py
fails to work with targets without bindings, whereas list_targets_old.py
works with any V1 target. So, we need this until 1.30.x at the earliest, depending upon when we put out the deprecation warning that you need to write bindings.hundreds-father-404
05/04/2020, 3:15 AMaloof-angle-91616
05/04/2020, 3:15 AMhundreds-father-404
05/04/2020, 10:35 PMulimit
configured.
Do we know why we are opening so many file handles? I know lmdb_store
uses a lot of handles, but are we expecting it to use thousands? A user last week hit it when running ./pants repl
with no targets, for example.enough-analyst-54434
05/04/2020, 10:58 PM$ ./pants kill-pantsd && ./pants --enable-pantsd list 3rdparty/::
$ ps -ef | grep pantsd | grep -v grep
jsirois 77290 735 5 15:55 ? 00:00:03 pantsd [/home/jsirois/dev/pantsbuild/pants]
$ lsof -p 77290 | wc -l
lsof: WARNING: can't stat() tracefs file system /sys/kernel/debug/tracing
Output information may be incomplete.
386
So a fresh pantsd starts with ~400 open files. That presumably grows over time.
Of those 386, most are lmdb:
$ lsof -p 77290 | grep .cache/pants/lmdb_store | wc -l
lsof: WARNING: can't stat() tracefs file system /sys/kernel/debug/tracing
Output information may be incomplete.
288
aloof-angle-91616
05/04/2020, 11:00 PMaloof-angle-91616
05/04/2020, 11:01 PMulimit
, but a different incantationaloof-angle-91616
05/04/2020, 11:02 PMwitty-crayon-22786
05/04/2020, 11:03 PMhundreds-father-404
05/04/2020, 11:03 PMwitty-crayon-22786
05/04/2020, 11:03 PMlsof -p $process
and add the output somewherehundreds-father-404
05/04/2020, 11:04 PMwitty-crayon-22786
05/04/2020, 11:04 PMwitty-crayon-22786
05/04/2020, 11:04 PMhundreds-father-404
05/04/2020, 11:04 PMwitty-crayon-22786
05/04/2020, 11:06 PMwitty-crayon-22786
05/04/2020, 11:06 PMhundreds-father-404
05/04/2020, 11:07 PMwitty-crayon-22786
05/04/2020, 11:07 PMwitty-crayon-22786
05/04/2020, 11:08 PMwitty-crayon-22786
05/04/2020, 11:08 PMhundreds-father-404
05/04/2020, 11:08 PM