dry-match-62274
01/08/2020, 8:43 AMtag
.
for example we have below test definition with tags :
target1(…,tag=integration-test), target2(…,tag=unit-test-team1), target3(…,tag=unit-test-team2), …Then for simple we created an aggregation target:
targetAll(dependencies=[target1,target2,target3,…])we thought we can filter out ‘integration-test’ from all tests by using
./pants test targetAll --tags=-integration-testHowever, target1 is still executed, so we thought the filter on
tag
will not work with the sub targets.
do you have any recommendations about how tag
should be used in this situation?wide-energy-11069
01/08/2020, 6:23 PM--cache-test-junit-ignore.
Anything changed recently, e.g. additional layer of caching? https://gist.github.com/wisechengyi/d4bd03691395d5037ca5913aec45de1e#file-gistfile1-txt-L20-L24witty-crayon-22786
01/08/2020, 6:35 PMwitty-crayon-22786
01/08/2020, 6:35 PMbest-nightfall-7221
01/08/2020, 7:10 PM./pants --jvm-options="-Xmx1g" options | grep shader.jvm_options
shader.jvm_options = ['-Xmx256m', '-Xmx3g', '-XX:+UseParallelGC'] (from CONFIG_DEFAULT in pants.ini)
https://www.pantsbuild.org/options.html#command-line-flags mentions its possible for global options, but I guess not default options?best-nightfall-7221
01/09/2020, 6:36 PMearly-needle-54791
01/09/2020, 7:07 PM--timeout
or --test-pytest-timeouts=False
seems to helpfancy-queen-20734
01/09/2020, 9:33 PMfancy-queen-20734
01/09/2020, 9:33 PMdamp-quill-59187
01/09/2020, 10:34 PMDeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses.
And hoping to clean up the output a bit so it isn't as noisy. Has anyone run into this before?witty-crayon-22786
01/09/2020, 10:36 PMaverage-vr-56795
01/10/2020, 1:01 AMcalm-artist-46894
01/10/2020, 5:18 AMcompatibility="CPython>=2.7,<3"
and it depends on python requirement more-itertools
(no version provided). Pants will install the latest version of more-itertools
despite it is not compatible with Python 2.7. This is expected behavior for version 1.12?
(I know I can pin the version but would like to confirm my observation)plain-sundown-25537
01/10/2020, 7:02 AMfancy-queen-20734
01/10/2020, 11:11 PMtest_platform
. I could add a deprecate conditional call in export, but I’m not sure if that’s the right approach, because it might be noisy. Alternatively, we could just leave it in until there’s more needed changes to export, and remove it as part of doing that.hundreds-father-404
01/13/2020, 12:49 AM./pants
script that we distribute to uses.
Note that only new users or prior users who explicitly re-download the script would be impacted.happy-kitchen-89482
01/13/2020, 7:39 PMrapid-crayon-8232
01/14/2020, 2:08 PM[GLOBAL]
pants_version: 1.24.0.dev2
print_exception_stacktrace: True
pants_bootstrapdir: '%(buildroot)s/.cache/pants'
pants_configdir: '%(buildroot)s/.config/pants'
rapid-crayon-8232
01/14/2020, 4:49 PMlocal_store_dir
is v1.24.0.dev2
. when setting the local_store in pants.ini, it should be set without the ' ', because otherwise, it creates a folder with ' in the name, example:
[GLOBAL]
pants_version: 1.24.0.dev2
print_exception_stacktrace: True
pants_bootstrapdir: '.cache/pants'
pants_configdir: '.cache/pants/config'
local_store_dir: '.cache/pants/config/lmdb_store'
will create a folder named '.cache
with subsequent subfolders
local_store_dir: .cache/pants/config/lmdb_store
fixes the issuewide-wall-52265
01/14/2020, 6:19 PMduplicate file
warningslemon-elephant-51969
01/16/2020, 4:45 PM./pants filemap
doesnt return anything for mepolite-garden-50641
01/17/2020, 12:18 AMplain-sundown-25537
01/17/2020, 4:11 PMipython_requirements: ['ipython~=5.8.0; python_version<3']
?quiet-answer-28112
01/17/2020, 5:40 PM./pants -ldebug binary src/target
shows a mix of HTTP 200 and HTTP 401 replies from cloudrepo:
17:32:43 [DEBUG] urllib3.connectionpool:pid=80884: <https://xxxx.mycloudrepo.io:443> "GET /repositories/prod/test-lib/ HTTP/1.1" 200 1029
17:32:43 [DEBUG] urllib3.connectionpool:pid=80884: <https://xxxx.mycloudrepo.io:443> "GET /repositories/prod/test-lib/test-lib-0.1.0rc2.tar.gz HTTP/1.1" 401 52
happy-kitchen-89482
01/21/2020, 3:25 PMgenerate-pants-ini
goal, see PR description for why I think that's right: https://github.com/pantsbuild/pants/pull/8993 Posting here in case it's controversial.echoing-manchester-70122
01/21/2020, 6:50 PMechoing-manchester-70122
01/21/2020, 6:50 PMechoing-manchester-70122
01/22/2020, 12:33 AMechoing-manchester-70122
01/22/2020, 12:33 AMERROR: Unrecognized command line flags on scope 'test.pytest': --options.
(Use --print-exception-stacktrace to see more error details.)
calm-artist-46894
01/22/2020, 12:37 AM1.23.0
Trying to run unit test with compatibility="CPython>=2.7,<3"
and start seeing issues like this today:
Failed to execute PEX file, missing linux_x86_64-cp-27-cp27mu compatible dependencies for:
importlib-metadata
zipp
With verbose:
pex: Failed to resolve a requirement: The 'zipp>=0.5' distribution was not found and is required by importlib-metadata
pex: Activating PEX virtual environment from /home/zxiong/cruise/mlp-ark/.pants.d/test/pytest-prep/CPython-2.7.15/88508bc93f076e9344b70c0dbc1c3bca526914f7 :: Resolving unittest2>=1.1$0; python_version < "3"
pex: Unresolved requirements:
pex: - importlib-metadata
pex: - zipp
pex: Distributions contained within this pex:
pex: - more_itertools-5.0.0-py2-none-any.whl
pex: - pathlib2-2.3.5-py2.py3-none-any.whl
pex: - configparser-4.0.2-py2.py3-none-any.whl
pex: - six-1.14.0-py2.py3-none-any.whl
pex: - pytest_mock-1.10.4-py2.py3-none-any.whl
pex: - argparse-1.4.0-py2.py3-none-any.whl
pex: - linecache2-1.0.0-py2.py3-none-any.whl
pex: - py-1.8.1-py2.py3-none-any.whl
pex: - scandir-1.10.0-cp27-cp27mu-linux_x86_64.whl
pex: - zipp-0.0.0-py2-none-any.whl
pex: - coverage-5.0.3-cp27-cp27mu-manylinux1_x86_64.whl
pex: - traceback2-1.4.0-py2.py3-none-any.whl
pex: - flaky-3.6.1-py2.py3-none-any.whl
pex: - funcsigs-1.0.2-py2.py3-none-any.whl
pex: - atomicwrites-1.3.0-py2.py3-none-any.whl
pex: - pluggy-0.13.1-py2.py3-none-any.whl
pex: - contextlib2-0.6.0.post1-py2.py3-none-any.whl
pex: - wcwidth-0.1.8-py2.py3-none-any.whl
pex: - importlib_metadata-1.4.0-py2.py3-none-any.whl
pex: - unittest2-1.1.0-py2.py3-none-any.whl
pex: - pytest-4.6.9-py2.py3-none-any.whl
pex: - attrs-19.3.0-py2.py3-none-any.whl
pex: - mock-3.0.5-py2.py3-none-any.whl
pex: - packaging-20.0-py2.py3-none-any.whl
pex: - pytest_timeout-1.3.4-py2.py3-none-any.whl
pex: - pyparsing-2.4.6-py2.py3-none-any.whl
pex: - pytest_cov-2.8.1-py2.py3-none-any.whl
Note that the included zipp version is zipp-0.0.0-py2-none-any.whl
zipp released version 2.0.0 2 days ago which only supports python 3. Could this be related?
Any recommendation for how to do further investigation?