brash-baker-91190
05/03/2022, 6:20 PM./pants filter --target-type=python_tests :: | xargs ./pants --tag="-e2e" test
. This worked fine with 2.10.0 and appears to have started failing with 2.11.0.dev0
. The failure comes with the tag-based filter: my tests that are tagged as "e2e" tests (which I don't want to run in CI when I'm trying to do unit tests, since they rely on external infrastructure resources) are also being run, and are not being filtered out. Even taking out the xargs
bit and just running ./pants --tag="-e2e" test ::
fails.
Has anyone encountered something similar? Any pointers on how to deal with this? Thanks đhigh-yak-85899
05/03/2022, 6:31 PMrequirements.txt
that would invalidate the lockfile (for a transitive dependency of the test), but I did not get prompted at all when I reran my test.bitter-ability-32190
05/03/2022, 8:14 PMinstructions
? I can't seem to get it to infer a dep on a pex_binary
.
pex_binaries(
name = "binaries",
entry_points = [
"doodad.py",
],
)
docker_image(
name="img_name",
instructions=[
"FROM ubuntu:20.04",
(
"RUN apt-get -qq -y update &&"
+ " DEBIAN_FRONTEND=noninteractive apt-get -qq -y install"
+ " python3.8"
),
"COPY path.to.thingamabob/doodad_py.pex /bin/helloworld",
],
)
If I ./pants package path/to/thingamabob/doodad.py
I see Wrote dist/path.to.thingamabob/doodad_py.pex
sparse-lifeguard-95737
05/03/2022, 8:14 PM./pants export ::
started to fail with:
unknown command: python. Perhaps you have to reshim?
which is an error from asdf
. I saw a related fix had already been merged & cherry-picked, and pointing at the SHA fixed the issue for me:
PANTS_SHA=9ac327d46d8ef98a6f635c9795e26433b50e62b8
but even though it fixed the error, running ./pants export ::
still produced warnings that werenât there in 2.10:
16:01:16.46 [INFO] Completed: Building requirements.pex with 177 requirements: agefromname==0.0.6, amqp==2.6.1, authlib==1.0.0, awslambdaric==2.0.1, beautifulsoup4==4.10.0, biocommons.seqrepo==0.6.5, biopython==1.76, bioutils==0.5... (3765 characters truncated)
16:01:16.55 [INFO] Completed: Get interpreter version
/Users/dan.moran/.pex/installed_wheels/6a5463833452712ecf58a573b1b489c81d14aaed599e955c2af85cf793217a42/pex-2.1.84-py2.py3-none-any.whl/pex/dist_metadata.py:332: PEXWarning: Ignoring 1 `Requires` field in pysam 0.15.4 metadata:
1.) Requires: cython (>=0.29.12)
You may have issues using the 'pysam' distribution as a result.
More information on this workaround can be found here:
<https://github.com/pantsbuild/pex/issues/1201#issuecomment-791715585>
pex_warnings.warn(
/Users/dan.moran/.pex/installed_wheels/6a5463833452712ecf58a573b1b489c81d14aaed599e955c2af85cf793217a42/pex-2.1.84-py2.py3-none-any.whl/pex/dist_metadata.py:332: PEXWarning: Ignoring 2 `Requires` fields in rdflib 4.2.2 metadata:
1.) Requires: isodate
2.) Requires: pyparsing
You may have issues using the 'rdflib' distribution as a result.
More information on this workaround can be found here:
<https://github.com/pantsbuild/pex/issues/1201#issuecomment-791715585>
pex_warnings.warn(
/Users/dan.moran/.pex/installed_wheels/6a5463833452712ecf58a573b1b489c81d14aaed599e955c2af85cf793217a42/pex-2.1.84-py2.py3-none-any.whl/pex/venv/pex.py:160: PEXWarning: Encountered collisions building venv at /Users/dan.moran/color/dist/export/python/virtualenv/3.8.12 from /Users/dan.moran/color/dist/export/python/virtualenv/requirements.pex:
1. /Users/dan.moran/color/dist/export/python/virtualenv/3.8.12/lib/python3.8/site-packages/LICENSE was provided by:
sha1:b88cc146668fa09ce5aa419bf7022c39d5cf52cb -> /Users/dan.moran/.pex/installed_wheels/7ca4e84ea192db2bafdec3c54d31518357073288fd3cf10dd87ead6784527bbf/pyppeteer-0.2.6-py3-none-any.whl/LICENSE
sha1:a4466bfd6f8b645aebdf508c1b7ede0bc018f694 -> /Users/dan.moran/.pex/installed_wheels/427414fcd945d3992364ad129c76f6f0db1a5a0a13a08f84f12c1b7c33fa9a7a/rsa-4.8-py3-none-any.whl/LICENSE
2. /Users/dan.moran/color/dist/export/python/virtualenv/3.8.12/lib/python3.8/site-packages/README.md was provided by:
sha1:d22f65503e9ee765f10290d7dc5c56c8d539e942 -> /Users/dan.moran/.pex/installed_wheels/7ca4e84ea192db2bafdec3c54d31518357073288fd3cf10dd87ead6784527bbf/pyppeteer-0.2.6-py3-none-any.whl/README.md
sha1:72aad144e976ac1623c8f45f2cf6ca42134ad4b2 -> /Users/dan.moran/.pex/installed_wheels/427414fcd945d3992364ad129c76f6f0db1a5a0a13a08f84f12c1b7c33fa9a7a/rsa-4.8-py3-none-any.whl/README.md
pex_warnings.warn(message)
Wrote virtualenv for the resolve 'None' (using Python 3.8.12) to dist/export/python/virtualenv
are any of these warnings a sign of an issue in my project setup? should I file a bug report?high-yak-85899
05/03/2022, 8:16 PM./pants run
something without moving to a sandboxed area?high-yak-85899
05/03/2022, 9:26 PM./pants package <docker image>
made my env-based image tags forced to lower case. Is that expected? Any way to avoid that?hundreds-father-404
05/03/2022, 11:42 PMparametrize
in the context of multiple resolves. Feedback/questions welcomed! https://www.pantsbuild.org/docs/python-third-party-dependencies#lockfileshigh-yak-85899
05/03/2022, 11:58 PMexport
is much slower with a pex-based lockfile. Is this expected?high-yak-85899
05/03/2022, 11:59 PMhundreds-father-404
05/04/2022, 12:00 AMhigh-yak-85899
05/04/2022, 12:03 AMhigh-yak-85899
05/04/2022, 12:18 AMhigh-yak-85899
05/04/2022, 12:19 AMhigh-yak-85899
05/04/2022, 12:19 AMhappy-kitchen-89482
05/04/2022, 12:50 AMhappy-kitchen-89482
05/04/2022, 12:51 AMhappy-kitchen-89482
05/04/2022, 12:51 AMhigh-yak-85899
05/04/2022, 12:53 AMhigh-yak-85899
05/04/2022, 12:58 AMhappy-kitchen-89482
05/04/2022, 1:33 AMhappy-kitchen-89482
05/04/2022, 1:33 AMhappy-kitchen-89482
05/04/2022, 1:33 AMhigh-yak-85899
05/04/2022, 1:38 AMenough-analyst-54434
05/04/2022, 1:41 AMenough-analyst-54434
05/04/2022, 1:45 AMenough-analyst-54434
05/04/2022, 1:48 AMenough-analyst-54434
05/04/2022, 1:49 AMhappy-kitchen-89482
05/04/2022, 2:02 AMenough-analyst-54434
05/04/2022, 2:07 AMrhythmic-morning-87313
05/04/2022, 3:15 AM