I feel like with `scie-pants` mypy checks are slow...
# general
r
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
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
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
yea, in order to figure this out you’d likely want to be able to get the logs too..
r
What kind of logs?
c
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
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
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
ok (assuming no update before that first run either)
1
no more ideas from me without more to go on.. 🤷
r
yeah I am trying to compare the
./pants
with
scie-pants
and see if it is just recency bias
👍 1