https://pantsbuild.org/ logo
#general
Title
# general
r

refined-addition-53644

03/28/2023, 11:58 AM
I feel like with
scie-pants
mypy checks are slower. I am using it as a pre commit hook and don’t remember it being so slow before I am using with transitive dependees option.
Copy code
Checking source files type hints.........................................Passed
- hook id: type-hint-check
- duration: 65.29s
Some cache being ignored? The hook looks like
Copy code
- id: type-hint-check
        name: Checking source files type hints
        entry: "pants --changed-since=HEAD --changed-dependees=transitive check"
c

curved-television-6568

03/28/2023, 12:01 PM
likely something else besides
scie-pants
is causing this as it just hands over to the regular thing after bootstrapping. Do you have the old
./pants
script around to compare timings with for your current conditions?
r

refined-addition-53644

03/28/2023, 12:02 PM
Without transitive option, this is how it looks like. Now I am not sure
Copy code
Checking source files type hints.........................................Passed
- hook id: type-hint-check
- duration: 17.06s
I don’t have the
./pants
script but I suppose I can copy it and test with it to confirm
c

curved-television-6568

03/28/2023, 12:03 PM
yea, in order to figure this out you’d likely want to be able to get the logs too..
r

refined-addition-53644

03/28/2023, 12:04 PM
What kind of logs?
c

curved-television-6568

03/28/2023, 12:04 PM
pants logs, preferably with
-ldebug
I guess..
👍 1
ehm, pants output
so you know where those seconds are spent..
did you upgrade
scie-pants
just before that first lint run for instance, in which case you get a fresh pants install and likely some cold-ish caches..
e

enough-analyst-54434

03/28/2023, 12:07 PM
There is no nice single number, but the sum of these lines tells you how long scie-pants takes to hand off to the pants console script:
Copy code
$ RUST_LOG=debug pants -V 2>&1 | grep prepare_boot
[DEBUG TimerFinished] jump::prepare_boot(), Elapsed=200.925µs
[DEBUG TimerFinished] jump::prepare_boot(), Elapsed=417.318µs
r

refined-addition-53644

03/28/2023, 12:08 PM
no, I am not updating
scie-pants
. The only change between two runs I posted above was one with
--changed-dependees=transitive
and one without
c

curved-television-6568

03/28/2023, 12:09 PM
ok (assuming no update before that first run either)
1
no more ideas from me without more to go on.. 🤷
r

refined-addition-53644

03/28/2023, 12:11 PM
yeah I am trying to compare the
./pants
with
scie-pants
and see if it is just recency bias
👍 1