ancient-france-42909
07/17/2023, 10:26 AM1917702 <http://cris.bi|cris.bi>+ 20 0 813.5g 6.6g 108692 S 103.7 21.2 12:40.82 pantsd [/home/c
I have 32GB of memory, so it's not a huge issue, but our CI doesn't approve of this. πrefined-addition-53644
07/17/2023, 11:11 AMancient-france-42909
07/17/2023, 11:11 AMfresh-cat-90827
07/17/2023, 4:00 PMfresh-cat-90827
07/17/2023, 4:02 PMancient-france-42909
07/17/2023, 5:18 PMfresh-cat-90827
07/17/2023, 5:19 PMancient-france-42909
07/17/2023, 5:19 PMancient-france-42909
07/17/2023, 5:21 PMancient-france-42909
07/17/2023, 5:23 PMfresh-cat-90827
07/17/2023, 5:23 PMancient-france-42909
07/17/2023, 5:24 PMancient-france-42909
07/17/2023, 5:25 PMancient-france-42909
07/17/2023, 5:25 PMfresh-cat-90827
07/17/2023, 5:26 PMancient-france-42909
07/17/2023, 5:26 PMancient-france-42909
07/17/2023, 5:27 PMfresh-cat-90827
07/17/2023, 5:27 PMfresh-cat-90827
07/17/2023, 5:28 PM--no-pantsd
and only use local cache?ancient-france-42909
07/17/2023, 5:28 PMfresh-cat-90827
07/17/2023, 5:29 PMancient-france-42909
07/17/2023, 5:30 PMfresh-cat-90827
07/17/2023, 5:31 PMancient-france-42909
07/17/2023, 5:31 PMancient-france-42909
07/17/2023, 5:32 PMancient-france-42909
07/17/2023, 5:33 PMancient-france-42909
07/17/2023, 5:33 PMancient-france-42909
07/17/2023, 5:34 PMfresh-cat-90827
07/17/2023, 5:34 PMfresh-cat-90827
07/17/2023, 5:34 PMancient-france-42909
07/17/2023, 5:35 PMfresh-cat-90827
07/17/2023, 5:35 PMancient-france-42909
07/17/2023, 5:36 PMfresh-cat-90827
07/17/2023, 5:37 PMancient-france-42909
07/17/2023, 5:37 PMancient-france-42909
07/17/2023, 5:39 PM__init__.py
, that causes me headaches every so often.fresh-cat-90827
07/17/2023, 5:39 PMBtw, we don't use dependency inferenceoh this is the first time I get exposed to a repo that doesn't have it enabled. How do you declare dependencies between targets?
ancient-france-42909
07/17/2023, 5:40 PMfresh-cat-90827
07/17/2023, 5:40 PMancient-france-42909
07/17/2023, 5:40 PMancient-france-42909
07/17/2023, 5:42 PMfresh-cat-90827
07/17/2023, 5:45 PMJust manually.there must be a good reason why you do that, I'd love to learn more! If you'd like to explore automatic build target generation, feel free to explore https://www.pantsbuild.org/v2.17/docs/reference-tailor. I know that for example for Bazel you have to manually declare dependencies, but you would still take advantage of tooling such as Gazelle to generate the dependencies for you. You of course get into a terrible situation when you have both human and machine generated dependencies which is suboptimal.
fresh-cat-90827
07/17/2023, 5:45 PMAre lockfiles mandatory in 2.17?no they are not
ancient-france-42909
07/17/2023, 5:47 PMancient-france-42909
07/17/2023, 5:48 PMfresh-cat-90827
07/17/2023, 5:49 PMpip-compile
and https://www.pantsbuild.org/v2.17/docs/python-third-party-dependencies#constraints-files worked lovely. So I wouldn't go for it just for the sake of having them. In a large monorepo with complicated tooling lockfiles may make your life worse if not carefully researched first, imho.ancient-france-42909
07/17/2023, 5:50 PMancient-france-42909
07/17/2023, 5:52 PMfresh-cat-90827
07/17/2023, 5:52 PMimport
statements in Python files, do youfresh-cat-90827
07/17/2023, 5:53 PMancient-france-42909
07/17/2023, 5:53 PM__init__
files, and quite a few of those have a million imports.fresh-cat-90827
07/17/2023, 5:54 PMancient-france-42909
07/17/2023, 5:58 PMancient-france-42909
07/17/2023, 5:59 PMancient-france-42909
07/17/2023, 5:59 PMpants.engine.target.InvalidFieldException: The target defender/defender/tasks/populate_defender_monitoring_stats.py:../../lib has the `interpreter_constraints` ('CPython~=3.7.4', 'CPython~=3.10.9'), which are not a subset of the `interpreter_constraints` of some of its dependencies:
* ('CPython~=3.10.9',): insights/insights/defender_stats/entities.py:../../lib
* ('CPython~=3.10.9',): insights/insights/defender_stats/stat_types.py:../../lib
ancient-france-42909
07/17/2023, 6:31 PMhappy-kitchen-89482
07/17/2023, 7:45 PMhappy-kitchen-89482
07/17/2023, 7:46 PMhappy-kitchen-89482
07/17/2023, 7:46 PMancient-france-42909
07/18/2023, 9:52 AM323.05s Resolve transitive targets
happy-kitchen-89482
07/18/2023, 9:28 PMhappy-kitchen-89482
07/18/2023, 9:29 PMhappy-kitchen-89482
07/18/2023, 9:29 PMancient-france-42909
07/19/2023, 6:47 AMhappy-kitchen-89482
07/20/2023, 4:35 PMhappy-kitchen-89482
07/20/2023, 4:35 PMancient-france-42909
07/20/2023, 4:35 PMancient-france-42909
07/20/2023, 4:35 PMhappy-kitchen-89482
07/20/2023, 4:36 PMancient-france-42909
07/20/2023, 4:36 PMancient-france-42909
07/20/2023, 4:36 PMhappy-kitchen-89482
07/21/2023, 6:51 PMancient-france-42909
07/21/2023, 6:52 PMflat-zoo-31952
07/21/2023, 6:54 PMInferDependencyRequest
by chance?flat-zoo-31952
07/21/2023, 6:55 PMancient-france-42909
07/21/2023, 6:56 PMflat-zoo-31952
07/21/2023, 6:56 PMjust a huge mess of python sources that depend on each other too muchPerhaps that's the commonality here π
ancient-france-42909
07/21/2023, 7:02 PMflat-zoo-31952
07/21/2023, 7:05 PMancient-france-42909
07/21/2023, 7:07 PMflat-zoo-31952
07/21/2023, 7:07 PMfresh-cat-90827
07/21/2023, 7:08 PMfresh-cat-90827
07/21/2023, 7:09 PMflat-zoo-31952
07/21/2023, 7:09 PMancient-france-42909
07/21/2023, 7:09 PM__init__.py
files, but we didn't turn it on for anything elseancient-france-42909
07/21/2023, 7:10 PM[python-infer]
imports = false
flat-zoo-31952
07/21/2023, 7:10 PMflat-zoo-31952
07/21/2023, 7:14 PMancient-france-42909
07/21/2023, 7:14 PMancient-france-42909
07/21/2023, 7:16 PMflat-zoo-31952
07/21/2023, 7:16 PMflat-zoo-31952
07/21/2023, 7:17 PMancient-france-42909
07/21/2023, 7:17 PMflat-zoo-31952
07/21/2023, 7:18 PMancient-france-42909
07/21/2023, 7:19 PMflat-zoo-31952
07/21/2023, 7:20 PMflat-zoo-31952
07/21/2023, 7:20 PMflat-zoo-31952
07/21/2023, 7:20 PMancient-france-42909
07/21/2023, 7:21 PMflat-zoo-31952
07/21/2023, 7:22 PMflat-zoo-31952
07/21/2023, 7:22 PMancient-france-42909
07/21/2023, 7:23 PMflat-zoo-31952
07/21/2023, 7:24 PMflat-zoo-31952
07/21/2023, 7:24 PMflat-zoo-31952
07/21/2023, 7:24 PMflat-zoo-31952
07/21/2023, 7:24 PMancient-france-42909
07/21/2023, 7:25 PMancient-france-42909
07/21/2023, 7:27 PMflat-zoo-31952
07/21/2023, 7:27 PMdependents
which requires that Pants calculate all dependenciesflat-zoo-31952
07/21/2023, 7:28 PMancient-france-42909
07/21/2023, 7:29 PMflat-zoo-31952
07/21/2023, 7:29 PMflat-zoo-31952
07/21/2023, 7:29 PMancient-france-42909
07/21/2023, 7:29 PMflat-zoo-31952
07/21/2023, 7:30 PMwe have a step at the beginning that gets the dependencies between this PR and master, then split it into, erm, we call them components (sometimes more than one app/lib), and each of these runs tests/lint/typechecking separatelyThis is where I want to get to as well but it will take time
ancient-france-42909
07/21/2023, 7:30 PMflat-zoo-31952
07/21/2023, 7:31 PMflat-zoo-31952
07/21/2023, 7:32 PMancient-france-42909
07/21/2023, 7:32 PMancient-france-42909
07/21/2023, 7:32 PMflat-zoo-31952
07/21/2023, 7:32 PMflat-zoo-31952
07/21/2023, 7:33 PMancient-france-42909
07/21/2023, 7:33 PMancient-france-42909
07/21/2023, 7:35 PMflat-zoo-31952
07/21/2023, 7:35 PMancient-france-42909
07/21/2023, 7:35 PMancient-france-42909
07/21/2023, 7:36 PMflat-zoo-31952
07/21/2023, 7:36 PMflat-zoo-31952
07/21/2023, 7:37 PMancient-france-42909
07/21/2023, 7:39 PMhappy-kitchen-89482
07/21/2023, 10:16 PMflat-zoo-31952
07/22/2023, 2:09 AMflat-zoo-31952
07/22/2023, 2:11 AMhappy-kitchen-89482
07/22/2023, 10:33 AMhappy-kitchen-89482
07/22/2023, 10:34 AM