happy-kitchen-89482
11/30/2021, 5:44 PMhappy-kitchen-89482
11/30/2021, 5:47 PMhappy-kitchen-89482
11/30/2021, 5:48 PMbrash-baker-91190
11/30/2021, 9:01 PMERROR: Can not perform a '--user' install. User site-packages are not visible in this virtualenv.
when I try to run anything (even ./pants version
)busy-vase-39202
11/30/2021, 11:42 PMbusy-vase-39202
12/01/2021, 12:21 AMfreezing-vegetable-92896
12/01/2021, 12:43 AMlint
. It seems black/isort end up turning the symlink into a copy of the file it links to if they are run on the file and need to make changesgifted-soccer-38559
12/01/2021, 4:15 PMcurved-television-6568
12/01/2021, 5:30 PM./pants update-build-files --check
and get these rather verbose info lines:
18:29:02.26 [INFO] No required changes to BUILD files found. However, there may still be deprecations that `update-build-files` doesn't know how to fix. See <https://www.pantsbuild.org/v2.9/docs/upgrade-tips> for upgrade tips.
What do you think about including the “… However, there may still be…” part only when not running in check mode?shy-advantage-49800
12/01/2021, 7:54 PM./pants run src/docker/Dockerfile
?loud-laptop-17949
12/01/2021, 10:44 PM./pants filedeps
output as a graph?eager-dress-66405
12/02/2021, 2:10 PMfreezing-vegetable-92896
12/02/2021, 7:33 PMpants tailor
isn’t generating some build files I would have expected it to (there are .py
files in the directory). Is there a readable explanation of the logic of how tailor decides where a BUILD
file is needed that someone can point me at?brash-baker-91190
12/02/2021, 7:52 PMlocal_store_dir
and named_caches_dir
via environment variables?salmon-planet-80683
12/02/2021, 9:06 PM14:52:58.47 [ERROR] 1 Exception encountered:
ValueError: Error writing file /home/wimax/src/grapl/dist/analyzer-executor.pex: Os { code: 14, kind: Uncategorized, message: "Bad address" }
14 is an EFAULT, so, bad pointer
Nuking ~/.cache/pants fixed the problem 🤷‍♂️ambitious-actor-36781
12/02/2021, 9:14 PMfactories.py
globally a python_test_util
and not a python_source
maybe something like
[default-sources]
python_sources += ['!factories.py']
python_test_utils += ['factories.py']
and if not, is this easily done via a plugin?eager-dress-66405
12/03/2021, 3:46 AM23:31:28.31 [ERROR] saw filesystem changes covered by invalidation globs: content changed (Digest('d4cd7349f655cdec6b7205d5639dc60a2c0bb7b23c9c63e60abc9ac129b3abae', 337) fs Digest('c02add6f83006535b9c4d0382501f86a486283419549edd02e97906b04d0a28a', 337)). terminating the daemon.
23:31:28.49 [ERROR] service failure for <pants.pantsd.service.scheduler_service.SchedulerService object at 0x7f498aef4fd0>.
Any tips on figuring out what files are actually causing the digest to change?
In the case where just the digest and not the fileset changes it doesn't look like the culprits aren't even calculated: https://github.com/pantsbuild/pants/blob/e70071244c20cd377c88bcbf87c4a6b0ec7d68b4/src/python/pants/pantsd/service/scheduler_service.py#L109
It looks like the invalidation glob could potentially be large: https://github.com/pantsbuild/pants/blob/e70071244c20cd377c88bcbf87c4a6b0ec7d68b4/src/python/pants/option/global_options.py#L1540modern-wolf-36228
12/03/2021, 10:49 AM./pants tailor
command? Like, I have .vue
and .js
files, and I want those directories to be populated with BUILD
as wellfreezing-vegetable-92896
12/03/2021, 5:51 PMhappy-kitchen-89482
12/03/2021, 8:25 PMrefined-addition-53644
12/04/2021, 12:22 PMPyoxidizer
https://github.com/indygreg/PyOxidizergentle-hydrogen-65984
12/04/2021, 7:24 PMsbt.internal.inc.Incremental$.prune
seems like its looking in .pants.d/**
to clear out old things? I switch branches a lot so its quite big (incremental_caching=False
also, I think we had problems):
$> du -sh .pants.d/compile
5.3G .pants.d/compile
$> du -sh .pants.d/local_artifact_cache
2.7G .pants.d/local_artifact_cache
Is there anyway to disable that pruning? I already set max_entries_per_target
to a big number (well actually, I modified the code so it doesnt even do the pruning, then I clean it in a cron daily), but this seems like a different prune controlled by zinc? Any ideas how I can skip this one too?ambitious-actor-36781
12/06/2021, 3:44 AMHEAD^
?rapid-apartment-37923
12/06/2021, 10:44 AMsrc/
plugins/foo/schema.py
plugins/bar/schema.py
plugin_registry.py
webserver.py
test/
plugins/foo/test_foo.py
plugins/bar/test_bar.py
The challenge is that plugin_registry.py
is loading those plugins dynamically using importlib
. Any usage of a plugin goes through the registry as a facade. In practice this means that there is no import of foo/schema.py
in test_foo.py
but we only import the registry and have it load the right plugin for us.
In some integration tests it gets even more complicated. The registry and plugins are loaded in another process and the tests only call a REST API, without any import of registry or plugins in the test code.
This usage does not play well with the pants auto-discovery of Python import dependencies. We can think of two ways out of this, but both have their downside (see thread).
Is there any option we have missed? I am curious if you have further ideas for usmodern-wolf-36228
12/06/2021, 10:48 AM./pants check ::
, it keeps trying to resolve the constraints forever. I use a private pypi, and the env variable PANTS_PYTHON_REPOS_INDEXES
. Besides that I don't do anything else. What am I missing?ancient-vegetable-10556
12/06/2021, 7:00 PMhappy-kitchen-89482
12/06/2021, 11:48 PMmodern-wolf-36228
12/07/2021, 10:54 AMFROM python:3.8
...
COPY n20-*.whl .
RUN --mount=type=secret,id=pipconfig,dst=/etc/pip.conf \
python -m pip install --no-cache-dir n20-*.whl
With this `BUILD`:
docker_image(
name="n20",
dependencies=["src/python/n20:wheel"],
image_tags=["{build_args.BITBUCKET_BUILD_NUMBER}"],
extra_build_args=["--secret id=pipconfig,src=pip.conf"],
repository="recital/n20-dev",
)
The pip.conf
is actually not there. Do I need to have a file()
with pip.conf
? If so, how exactly? Because I added that and it didn't work as well.refined-addition-53644
12/07/2021, 1:25 PMresource
target using a directory which has multiple directories inside it? In general, whatever examples I see in docs are using single or multiple files, but hardly with directories.refined-addition-53644
12/07/2021, 2:39 PMsrc/pyfleet-vehicle-spec
with this target.
docker_image(
name="docker_dev",
source="Dockerfile_dev"
)
This is a dockerfile where I am adding a requirements.txt
FROM python:3.8.1-slim
COPY requirements.txt /usr/src/app
When I run ./pants package <path_to_docker_file>
, it can't find the file inside the src/pyfleet-vehicle-spec
.
This is the error stack
./pants package src/pyfleet-vehicle-spec:docker_dev
15:37:13.87 [INFO] Completed: Building docker image docker_dev:latest.
15:37:13.87 [ERROR] 1 Exception encountered:
ProcessExecutionFailure: Process 'Building docker image docker_dev:latest.' failed with exit code 1.
stdout:
stderr:
#1 [internal] load build definition from Dockerfile_dev
#1 sha256:70afa1e12870fb24144364708587cf5d1661f981d416ff91b9933fb09bf718bf
#1 transferring dockerfile: 370B done
#1 DONE 0.0s
#2 [internal] load .dockerignore
#2 sha256:8be3f6d6908bac7ae4d1c83b3c98641278b5369f05b904a5bd61c9aa771021ab
#2 transferring context: 2B done
#2 DONE 0.0s
#3 [internal] load metadata for <http://docker.io/library/python:3.8.1-slim|docker.io/library/python:3.8.1-slim>
#3 sha256:897c30c5b0df12bcc7293f681243e639405b0ad6ce158f8ac7f4d6aa75160f3a
#3 DONE 0.7s
#4 [1/2] FROM <http://docker.io/library/python:3.8.1-slim@sha256:73f3903470a6e55202a6bb989c23b047487eb1728feba655410076da24106838|docker.io/library/python:3.8.1-slim@sha256:73f3903470a6e55202a6bb989c23b047487eb1728feba655410076da24106838>
#4 sha256:28d9be0d3eda75c94bdf3ffcb19aba18126f795be53f25d1fc3ed17716e5e83e
#4 CACHED
#5 [internal] load build context
#5 sha256:d8740fb29f3447aa31b7339dc3205fc961ed6fff4d68fe91e5f24b402262ebf3
#5 transferring context: 2B done
#5 DONE 0.0s
#6 [2/2] COPY requirements.txt /usr/src/app
#6 sha256:962d6b5ae5239ecc9e26d88d359e20065c2a3d56011710983dd0ee0face6bfd1
#6 ERROR: "/requirements.txt" not found: not found
------
> [2/2] COPY requirements.txt /usr/src/app:
------
failed to compute cache key: "/requirements.txt" not found: not found