flat-zoo-31952
05/04/2022, 1:11 PM3642272 jreed 20 0 539G 92532 25036 S 0.0 0.3 0:00.00 pantsd [/home/jreed/.../repo-root]
Is this related to mmap or something used in caching? Or is something mapped in memory being counted multiple timessparse-lifeguard-95737
05/04/2022, 1:43 PMtools
config in 2.11 along with the amazon-ecr-credential-helper. I see the shim for docker-credential-ecr-login
is being properly created in the build process’s tmp dir (.shims/bin/docker-credential-ecr-login
exists, and I can invoke it manually and get the same results as the actual binary). When it’s set up, the build process is failing with:
failed to solve with frontend dockerfile.v0: failed to create LLB definition: rpc error: code = Unknown desc = error getting credentials - err: docker-credential-ecr-login resolves to executable in current directory (./.shims/bin/docker-credential-ecr-login), out: ``
if I update __run.sh
to set PATH=/bin:/usr/local/bin
, the build works. not sure if this weird “resolves to executable in current directory” error is a general docker thing or specific to docker-for-mac - I haven’t been able to find a config toggle to make it workprehistoric-afternoon-67621
05/04/2022, 2:24 PM[buf].config = "build-support/proto/buf.yaml"
but I see that's not an option just yet. I tried [buf].lint_args = ["--config", "build-support/proto/buf.yaml"]
but that didn't work as it seems buf is not running from the build root. Anyone have any suggestions?high-yak-85899
05/04/2022, 3:50 PM./pants export ::
with and without a VCS dependency in my requirements.txt
(and implicitly the lockfile), but maybe it still got included?enough-analyst-54434
05/04/2022, 3:52 PMexport
, as most things in Pants, deals in the transitive closure of dependencies.enough-analyst-54434
05/04/2022, 3:53 PMhigh-yak-85899
05/04/2022, 3:54 PMrequirements.txt
, it is also removed from the lockfile as expected.high-yak-85899
05/04/2022, 4:22 PMrequirements.txt
and the lockfile, it shows up in the exported venv. When I remove it and export again, it is not in the venv as expected.enough-analyst-54434
05/04/2022, 5:04 PMhigh-yak-85899
05/04/2022, 5:18 PMhundreds-father-404
05/04/2022, 5:22 PMsince it's constructing a proper venv instead of symlinking.Given that change, are you still surprised?
high-yak-85899
05/04/2022, 5:23 PMhigh-yak-85899
05/04/2022, 5:24 PMhigh-yak-85899
05/04/2022, 5:24 PMhundreds-father-404
05/04/2022, 5:25 PMhundreds-father-404
05/04/2022, 6:06 PMripe-vase-85561
05/04/2022, 6:14 PMtest
run and having some trouble. Is there a convenient way to write the result summary at the end of a test run to a file or envvar, like`RESULTS=$(./pants test ::)` ? I also tried using pytest plugins to generate summary reports (like pytest-html
) and they weren’t working, possibly because the full results would have to be aggregated from the parallel test runs. I noticed that the summary (i.e. the list of 𐄂 test:test failed in 1.32s.
at the end of the output) goes to stderr so I added a 2>&1
, but then it captures other errors too. Is there an easy way to just capture the summary?wide-zoo-86070
05/04/2022, 6:32 PMhundreds-father-404
05/04/2022, 6:33 PMhigh-yak-85899
05/04/2022, 6:33 PMpip install
and point to the pex-based constraints file pants can generate? My context is that I'd really like to switch to the native lockfile generation pants offers, but we still have some tests that rely on a venv-style setup. We currently have requirements.txt
, requirements-dev.txt
(which contains things like pytest
, etc.) and constraints.txt
generated by pip-tools
based on those two source files. Pants is happy to use constraints.txt
even though it contains more information than it actually needs right now. If I generate the lockfile from generate-lockfiles
, that only reflects requirements.txt
. I can ./pants export
to get a venv, and then pip install -r requirements-dev.txt
in that venv, but I'm losing some reproduceability there as that pip install command no longer has a lockfile to look at.wide-zoo-86070
05/04/2022, 6:34 PM-no-local-cache
from the doc is that the pants will not write the cache. Does it mean pants will not use the existing cache?hundreds-father-404
05/04/2022, 6:35 PMbut I'm losing some reproduceability there as that pip install command no longer has a lockfile to look at.What do you mean? The Virtual environment will have all pinned versions from your lock file.
high-yak-85899
05/04/2022, 6:35 PMrequirements.txt
(which doesn't include what is in requirements-dev.txt
)hundreds-father-404
05/04/2022, 6:36 PMIf I generate the lockfile from generate-lockfiles, that only reflects requirements.txt .The lockfile will include every
python_requirement
in that resolve, even if your code does not use it. So create a second python_requirements
target generatorhundreds-father-404
05/04/2022, 6:36 PMhigh-yak-85899
05/04/2022, 6:37 PMadamant-airport-25400
05/04/2022, 6:53 PMhigh-yak-85899
05/04/2022, 7:07 PMwitty-crayon-22786
05/04/2022, 7:09 PMI tried the archive, but I can’t get archive target to work with python_sources. Is it normal?yea, that’s correct: currently when sources are “typed” as python via
python_sources
, they are not treated as loose files which can be packaged into an archive
files
targets are typed as loose files, and so can be… but then they are not typed as python, and so don’t have dependency inference, for examplewitty-crayon-22786
05/04/2022, 7:10 PMAs it using PEX, it needs to have a runtime defined. This means that I have to define it in the Pants target, but also again in my IaC tool (Using CDK). Is there any way to avoid it ? My guess is no.what do you mean by “runtime” here?