<@U014ML12VD2>: new thread re: <https://github.com...
# development
w
@flat-zoo-31952: new thread re: https://github.com/pantsbuild/pants/issues/16122
f
Unset
w
it’s deprecated in 2.13, so you should be seeing a deprecation
oh, sorry… no. if unset, no deprecation warning. and we changed the default. hm.
f
Reminder that I'm using a single build file to declare 99% of my targets with recursive globs. I think I've managed to cut the time down dramatically by changing to 111 in a dev branch
Can confirm that and profile it later
w
do any of the targets have a lot of sources globs?
…oh. i think i see it.
f
Unset and no I haven't
w
ok. to confirm a theory, could you try again with
--python-infer-init-files=never
?
f
Yeah I can try. Probably not until later or tomorrow morning though
Anecdotally I saw a lot of notes about inferring init files in the suspected problem zone when I was going through logs
w
yea. i think i have a solid hypothesis, but that would confirm it. will comment on the ticket.
once you confirm the hypothesis, i’ve sketched out a fix on the ticket that we can get someone on. but there is a ton going on right now, so i’ll probably wait until you confirm to do that.
f
confirmed, that drops the command time to 28s
w
darn. well then i guess deferring didn’t save me much time =)
f
or,
--python-infer-init-files=content_only
results in a performance regression of >= 200% in my case
it's a huge difference
w
yea. so… given that you have a workaround, what is the priority of this one for you…?
do you actually have
__init__.py
files with content?
f
what's the consequence of leaving that at
never
? I didn't fully get what that option does from the description
yes sometimes
w
it will infer deps on parent
__init__.py
files, such that
./pants dependencies $file
actually reports them, regardless of whether you have
imports
to load particular symbols from them
i think that it is only relevant if the
__init__,py
files have load-time side-effects…? but don’t quote me on that.
f
So yeah we can probably get away with this, at least until I have the training done enough to move to 111
I'll check in more detail tomorrow
👍 1
If I spend too much time looking like I'm concentrating hard at the computer while on vacation, my wife gets annoyed 😅
In any case, thanks for narrowing this down, real big help
w
sure thing.
enjoy your vacation!