polite-vase-75369
12/11/2020, 7:33 PMwitty-crayon-22786
12/11/2020, 8:11 PMpolite-vase-75369
12/14/2020, 4:23 PMpythonstyle
. I’ll attach the actual stack trace as a response to this message. I added some debugging to the pants python code, and it looks like it is resolving dependencies to the root site-packages directory rather than the individual one per each dependency [pantsbuild.pants.contrib.python.checks.checker 1.27.0 (/Users/lawrencefinn/.cache/pants/setup/bootstrap-Darwin-x86_64/pants.4g9T7C/install/lib/python3.6/site-packages), pyflakes 2.1.1 (/Users/lawrencefinn/.cache/pants/setup/bootstrap-Darwin-x86_64/pants.4g9T7C/install/lib/python3.6/site-packages), pycodestyle 2.4.0 (/Users/lawrencefinn/.cache/pants/setup/bootstrap-Darwin-x86_64/pants.4g9T7C/install/lib/python3.6/site-packages), six 1.15.0 (/Users/lawrencefinn/.cache/pants/setup/bootstrap-Darwin-x86_64/pants.4g9T7C/install/lib/python3.6/site-packages)]
. Not sure what to do here, maybe i have some dumb flag?magnificent-vr-79843
12/15/2020, 12:26 AMTo force your tests to run again, rather than reading from the cache, run ./pants test --force path/...
I am getting Unrecognized command line flags on scope 'test': --force
Any ideas what can be wrong there?late-lawyer-50596
12/15/2020, 11:06 PMUnmatched glob
warnings. I tried adding ignore_pants_warnings = [".*"]
to pants.toml
but no luck. I also looked at the files_not_found_behavior
option but it only takes [warn, error]
and no ignore
. Are there any ways to completely silence the unmatched glob warnings?user
12/16/2020, 4:30 PMsalmon-barista-63163
12/16/2020, 6:42 PMwitty-crayon-22786
12/16/2020, 7:35 PMsalmon-barista-63163
12/16/2020, 8:19 PMpants run
commands from within a single pants run
process without issue. With the v2 engine we are CPU and memory bound and the native OS will start killing random processes (as expected) when we reach the ceiling.
A little background on how this server works:
application server: main application process running with ./pants run
child server: Receives a request to start a "task" or series of "tasks" = multiple ./pants run sub-processes executed in parallel. These subprocesses then exit gracefully after they are completed.
The way this works, we can receive sub process commands to execute dozens of pants run
“task” commands at a single time.
Some things I have tried that do not have effect on performance:
1. pantsd on or off
2. Concurrency limits set in global pants options
I am looking for some guidance here as we have tried everything that comes to mind without changing how this application runs. (That is out of our scope at this time as the main concern here is getting to pants 2.0.0) We are currently on pants 1.30.stale-artist-91164
12/16/2020, 10:26 PMpolite-zebra-76126
12/17/2020, 2:05 PMrefined-dusk-58376
12/17/2020, 9:07 PMjolly-midnight-72759
12/17/2020, 9:12 PMhundreds-father-404
12/17/2020, 10:11 PMAre the pants scripts versioned? It might be helpful to know when it is a good idea to update this.@jolly-midnight-72759 it’s in GitHub at https://github.com/pantsbuild/setup. Normally, it’s a good idea to update the
./pants
script to get any improvements. We eagerly error if the version of the script isn’t compatible with a certain Pants version.salmon-barista-63163
12/18/2020, 12:28 AMsalmon-barista-63163
12/18/2020, 4:28 PMcircleci
8 CPU
16 RAM
I am trying to run tests via pytest or behave. In this environment we start up our servers and run the tests. we have about 8 webservers running (with pants) and we kick off the tests. I am getting out of memory errors and process killed issues when running. If you have been following what i have been posting about i am having all sorts of performance issues. I am running pants 2.0.1rc4 (with a twist from a release that was cut for me yesterday). There is no way the performance of v2 can be this much worse than v1 as a whole. At this point im thinking im missing or overlooking something. Any suggestions?stale-artist-91164
12/18/2020, 8:19 PMincalculable-analyst-9027
12/22/2020, 6:33 AMpolite-vase-75369
12/22/2020, 7:06 PMclean-night-52582
12/23/2020, 1:20 AMipdb
I tried adding https://www.pantsbuild.org/docs/python-test-goal#running-tests-interactively so added pytest_plugins.add = *[*"ipdb"*]
got* OSError: pytest: reading from stdin while output is captured! Consider using '-s'
acceptable-guitar-79854
12/26/2020, 2:09 PM./pants
(the virtualenv thingy). I tried prepending $venv_path/src
to PYTHONPATH but then it complains about appdirs
(pants) cristian@Cristian-XPS13:~/workspace$ ./pants --version
Traceback (most recent call last):
File "/home/cristian/.cache/pants/setup/bootstrap-Linux-x86_64/virtualenv-20.2.2/src/virtualenv/__main__.py", line 77, in <module>
run_with_catch() # pragma: no cov
File "/home/cristian/.cache/pants/setup/bootstrap-Linux-x86_64/virtualenv-20.2.2/src/virtualenv/__main__.py", line 58, in run_with_catch
from virtualenv.config.cli.parser import VirtualEnvOptions
ModuleNotFoundError: No module named 'virtualenv'
./pants: line 293: /home/cristian/.cache/pants/setup/bootstrap-Linux-x86_64/2.0.0_py38/bin/python: No such file or directory
(pants) cristian@Cristian-XPS13:~/workspace$ ./pants --version
Traceback (most recent call last):
File "/home/cristian/.cache/pants/setup/bootstrap-Linux-x86_64/virtualenv-20.2.2/src/virtualenv/__main__.py", line 77, in <module>
run_with_catch() # pragma: no cov
File "/home/cristian/.cache/pants/setup/bootstrap-Linux-x86_64/virtualenv-20.2.2/src/virtualenv/__main__.py", line 58, in run_with_catch
from virtualenv.config.cli.parser import VirtualEnvOptions
File "/home/cristian/.cache/pants/setup/bootstrap-Linux-x86_64/virtualenv-20.2.2/src/virtualenv/__init__.py", line 3, in <module>
from .run import cli_run, session_via_cli
File "/home/cristian/.cache/pants/setup/bootstrap-Linux-x86_64/virtualenv-20.2.2/src/virtualenv/run/__init__.py", line 6, in <module>
from ..app_data import make_app_data
File "/home/cristian/.cache/pants/setup/bootstrap-Linux-x86_64/virtualenv-20.2.2/src/virtualenv/app_data/__init__.py", line 9, in <module>
from appdirs import user_data_dir
ModuleNotFoundError: No module named 'appdirs'
calm-alarm-89082
12/28/2020, 9:29 PMwitty-crayon-22786
12/29/2020, 5:31 AMloud-stone-83419
12/29/2020, 4:52 PMhigh-egg-2153
12/30/2020, 8:51 PM./pants run accounts_report/app.py
I am getting the following error:
from pkg_resources import get_distribution, parse_version
ModuleNotFoundError: No module named 'pkg_resources'
Some details:
Python 3.8.6
pip 19.3.1
Manjaro Linux
Any help would be greatly appreciated.witty-crayon-22786
12/31/2020, 2:24 AMhappy-kitchen-89482
01/03/2021, 1:19 AMjolly-midnight-72759
01/03/2021, 9:36 PMpants list ::
it exits with status 1. When I do for p in $(fd -t d -d 1 .) ; do echo $p ; ./pants list ${p}:: ; done
(i.e. for every directory run, .pants list ${DIRNAME}::
) and also .pants list :
I get a list of directories and it exits with status 0. I have print stack trace set to to true and also ran with -ldebug
. No additional output was provided.
Help with debugging would be appreciated.jolly-lamp-97248
01/04/2021, 3:59 AMloud-stone-83419
01/04/2021, 11:00 AM