wide-zoo-86070
04/12/2022, 3:02 PM[2022-04-12T14:27:05.810Z] 10:27:05.59 [INFO] Completed: Building mypy.pex from build-support/mypy_lockfile.txt
[2022-04-12T14:28:27.628Z] 10:28:22.84 [INFO] Long running tasks:
[2022-04-12T14:28:27.628Z]   86.52s	Installing build-support/lockfile.txt for the resolve `python-default`
[2022-04-12T14:28:54.377Z] 10:28:52.92 [INFO] Long running tasks:
[2022-04-12T14:28:54.377Z]   116.60s	Installing build-support/lockfile.txt for the resolve `python-default`
[2022-04-12T14:29:26.494Z] 10:29:22.95 [INFO] Long running tasks:
[2022-04-12T14:29:26.494Z]   146.63s	Installing build-support/lockfile.txt for the resolve `python-default`
[2022-04-12T14:29:53.033Z] 10:29:52.98 [INFO] Long running tasks:
[2022-04-12T14:29:53.033Z]   176.66s	Installing build-support/lockfile.txt for the resolve `python-default`
[2022-04-12T14:30:25.092Z] 10:30:23.03 [INFO] Long running tasks:
[2022-04-12T14:30:25.092Z]   206.71s	Installing build-support/lockfile.txt for the resolve `python-default`
[2022-04-12T14:30:57.197Z] 10:30:53.08 [INFO] Long running tasks:
[2022-04-12T14:30:57.197Z]   236.76s	Installing build-support/lockfile.txt for the resolve `python-default`
[2022-04-12T14:31:23.761Z] 10:31:23.12 [INFO] Long running tasks:
[2022-04-12T14:31:23.761Z]   266.80s	Installing build-support/lockfile.txt for the resolve `python-default`
[2022-04-12T14:31:56.020Z] 10:31:53.18 [INFO] Long running tasks:
[2022-04-12T14:31:56.020Z]   296.86s	Installing build-support/lockfile.txt for the resolve `python-default`
[2022-04-12T14:32:28.129Z] 10:32:23.22 [INFO] Long running tasks:
[2022-04-12T14:32:28.129Z]   326.90s	Installing build-support/lockfile.txt for the resolve `python-default`
[2022-04-12T14:32:54.681Z] 10:32:53.28 [INFO] Long running tasks:
[2022-04-12T14:32:54.681Z]   356.96s	Installing build-support/lockfile.txt for the resolve `python-default`
[2022-04-12T14:33:27.350Z] 10:33:23.34 [INFO] Long running tasks:
[2022-04-12T14:33:27.350Z]   387.02s	Installing build-support/lockfile.txt for the resolve `python-default`
I am wondering if it is related to the cache issue in MyPy mentioned here https://www.pantsbuild.org/docs/python-check-goal#performance-is-often-slower-than-normal?bitter-ability-32190
04/12/2022, 3:07 PMmypy.pex finished (probably quickly) Completed: Building mypy.pex from build-support/mypy_lockfile.txt
• What you're seeing is Pants installing of the dependencies in your resolve. Depending on the size of your resolve, or the size of those deps it can take a while.
    ◦ This also depends on your settings, which Pants version you're using, and if you're using the new PEX lockfiles
• The linked MyPy issue has to do with the performance of running mypy, which you haven't gotten to that step yet 😅bitter-ability-32190
04/12/2022, 3:08 PMwide-zoo-86070
04/12/2022, 3:11 PMbitter-ability-32190
04/12/2022, 3:12 PMresolve_all_constraints  or not.wide-zoo-86070
04/12/2022, 3:16 PMbitter-ability-32190
04/12/2022, 3:17 PMisort and black don't require any of your dependencies to run. linters/checkers like pylint or mypy do require dependencies, so you just happen to be executing your first command which requires deps.wide-zoo-86070
04/12/2022, 3:40 PMwide-zoo-86070
04/12/2022, 3:46 PMpants check.bitter-ability-32190
04/12/2022, 3:52 PMmypy.pex just contains mypy and friends (and not your deps)._bitter-ability-32190
04/12/2022, 3:53 PMpex containing all of your deps. Yes that'll only rebuild when your lockfile changeshundreds-father-404
04/12/2022, 4:54 PMwide-zoo-86070
04/21/2022, 2:34 PMwide-zoo-86070
04/21/2022, 5:15 PM./pants --tag='unit_test' :: and ./pants --tag='int_test' ::, but i found the following in both steps.
[2022-04-21T17:10:57.265Z] 13:10:50.51 [INFO] Long running tasks:
[2022-04-21T17:10:57.265Z]   82.29s	Installing build-support/lockfile.txt for the resolve `python-default`
[2022-04-21T17:11:22.031Z] 13:11:20.54 [INFO] Long running tasks:
[2022-04-21T17:11:22.031Z]   112.32s	Installing build-support/lockfile.txt for the resolve `python-default`
I am wondering why this step needs to repeat? @hundreds-father-404wide-zoo-86070
04/22/2022, 2:46 PMbitter-ability-32190
04/22/2022, 2:52 PMwide-zoo-86070
04/22/2022, 3:07 PMbitter-ability-32190
04/22/2022, 3:28 PM~/.cache/pants by default. Is that dir persisting between the call to unit tests and integration tests?wide-zoo-86070
04/22/2022, 3:34 PMbitter-ability-32190
04/22/2022, 3:34 PMwide-zoo-86070
04/22/2022, 3:35 PMwide-zoo-86070
04/22/2022, 4:33 PMwitty-crayon-22786
04/22/2022, 4:47 PMtest and package you might not be able to in some cases, for example. but between tests you always should be able to.witty-crayon-22786
04/22/2022, 4:52 PMwide-zoo-86070
04/22/2022, 4:52 PMthere are some contexts in which you might not be able to reuse a lockfile resolve: acrossdo you mind sharing some more info or example?andtestpackage
wide-zoo-86070
04/22/2022, 4:52 PMalso: do you have multiple sets of interpreter constraints in this repository?No
wide-zoo-86070
04/22/2022, 4:54 PMwitty-crayon-22786
04/22/2022, 5:02 PMdo you mind sharing some more info or example?there isn’t a very concise explanation, except to say that
test runs on exactly one interpreter chosen by pants per-run (“internal”), and that interpreter is part of the cache key. whereas package is building a portable PEX file, and so it will attempt to maximize compatibility with your interpreter constraints, rather than matching exactly one.wide-zoo-86070
04/22/2022, 5:34 PMinterpreter_constraints = ["==3.9.*"]
This is what I have. i can pin it to a particular version and see.wide-zoo-86070
04/22/2022, 7:16 PM[2022-04-22T19:11:50.654Z] 15:11:50.52 [DEBUG] Starting: Scheduling: Building pytest.pex from pytest_default_lockfile.txt
[2022-04-22T19:11:50.654Z] 15:11:50.52 [DEBUG] Starting: Scheduling: Installing build-support/lockfile.txt for the resolve `python-default`
[2022-04-22T19:11:50.654Z] 15:11:50.52 [DEBUG] Completed: Hit: Local cache lookup: Building pytest.pex from pytest_default_lockfile.txtwide-zoo-86070
04/25/2022, 5:33 PMwitty-crayon-22786
04/25/2022, 5:33 PMwide-zoo-86070
04/25/2022, 6:03 PMbitter-ability-32190
04/25/2022, 6:09 PM