wonderful-iron-54019
06/24/2020, 3:07 PMv1 goals. Is there a good place to go to see what v2 goals are enabled on each version?hundreds-father-404
06/24/2020, 3:23 PM./pants --v1 --no-v2 goals and then ./pants --no-v1 --v2 goals to see what is offered by each
Many goals like fmt and lint have both a v1 and v2 implementation, so when you run ./pants --v1 --v2 fmt, it will attempt to use both.
Is it ever using v2 for Python, other than fmt and lint? You might be missing adding pants.backend.python to backend_packages2wonderful-iron-54019
06/24/2020, 3:30 PMhundreds-father-404
06/24/2020, 3:33 PMpants.backend.python is not activated for v2.
When adding pants.backend.python to v2, you’ll want to remove it from backend_packages. See https://pants.readme.io/docs/how-to-upgrade-to-the-v2-engine for some new docs I wrote last week on how to upgrade to v2wonderful-iron-54019
06/24/2020, 3:35 PMwonderful-iron-54019
06/24/2020, 3:35 PMwonderful-iron-54019
06/24/2020, 4:50 PM[test.pytest]
extra_pythonpath = "%(buildroot)s
fail_fast = true
chroot = truewonderful-iron-54019
06/24/2020, 4:51 PMwonderful-iron-54019
06/24/2020, 4:51 PMpytest blockwonderful-iron-54019
06/24/2020, 4:51 PMwonderful-iron-54019
06/24/2020, 4:53 PM./pants test src:: just spun up like 67 pytest processes, which is excellent, but some of these are also using pyspark exceutionswonderful-iron-54019
06/24/2020, 4:54 PMwonderful-iron-54019
06/24/2020, 4:55 PMwitty-crayon-22786
06/24/2020, 5:02 PMwitty-crayon-22786
06/24/2020, 5:03 PMwitty-crayon-22786
06/24/2020, 5:03 PM--process-execution-local-parallelism=<int>
default: 16
Number of concurrent processes that may be executed locally.witty-crayon-22786
06/24/2020, 5:04 PMwonderful-iron-54019
06/24/2020, 5:04 PMwitty-crayon-22786
06/24/2020, 5:04 PMwonderful-iron-54019
06/24/2020, 5:04 PMwitty-crayon-22786
06/24/2020, 5:07 PM--python-setup-resolver-jobs=<int>
default: None
The maximum number of concurrent jobs to resolve wheels with.
see https://github.com/pantsbuild/pants/issues/9964 for more info, but you’ll probably want to lower it to 2 or 4witty-crayon-22786
06/24/2020, 5:07 PMwonderful-iron-54019
06/24/2020, 5:08 PMwitty-crayon-22786
06/24/2020, 5:09 PMpytest is configured directly as pytestwitty-crayon-22786
06/24/2020, 5:09 PM./pants help pytestwonderful-iron-54019
06/24/2020, 5:10 PMwitty-crayon-22786
06/24/2020, 5:10 PMwitty-crayon-22786
06/24/2020, 5:10 PMwitty-crayon-22786
06/24/2020, 5:11 PM--chroot flag is the baked in default nowwonderful-iron-54019
06/24/2020, 5:11 PMwitty-crayon-22786
06/24/2020, 5:13 PMextra_pythonpath = "%(buildroot)s bit … might be problematicwonderful-iron-54019
06/24/2020, 5:13 PMwitty-crayon-22786
06/24/2020, 5:13 PMwonderful-iron-54019
06/24/2020, 5:14 PMwonderful-iron-54019
06/24/2020, 5:14 PMwitty-crayon-22786
06/24/2020, 5:14 PMwitty-crayon-22786
06/24/2020, 5:14 PMwonderful-iron-54019
06/24/2020, 5:15 PMwitty-crayon-22786
06/24/2020, 5:15 PMwitty-crayon-22786
06/24/2020, 5:16 PMwitty-crayon-22786
06/24/2020, 5:16 PMwonderful-iron-54019
06/24/2020, 5:16 PMwonderful-iron-54019
06/24/2020, 5:17 PMwitty-crayon-22786
06/24/2020, 5:17 PMpython_tests_with_lovely_helperswitty-crayon-22786
06/24/2020, 5:17 PMwonderful-iron-54019
06/25/2020, 2:09 PMpython_library targets without having to modify build fileswonderful-iron-54019
06/25/2020, 2:20 PMdef python_library(**kwargs):
# do stuff
python_library(**kwargs)
doesn't infinitely recurse as i would expect!wonderful-iron-54019
06/25/2020, 2:21 PMwonderful-iron-54019
06/25/2020, 2:32 PMwonderful-iron-54019
06/25/2020, 2:40 PMpython_library or a "recursive" python_tests but if i define both i hit maximum recursion depth limits 🤔average-vr-56795
06/25/2020, 3:00 PMwonderful-iron-54019
06/25/2020, 3:00 PMaverage-vr-56795
06/25/2020, 3:01 PMwonderful-iron-54019
06/25/2020, 3:13 PMwonderful-iron-54019
06/25/2020, 3:14 PMwitty-crayon-22786
06/25/2020, 3:14 PMwitty-crayon-22786
06/25/2020, 3:16 PMwonderful-iron-54019
06/25/2020, 3:17 PMwonderful-iron-54019
06/25/2020, 3:17 PMwitty-crayon-22786
06/25/2020, 3:51 PMwitty-crayon-22786
06/25/2020, 3:51 PMwonderful-iron-54019
06/25/2020, 3:51 PMwonderful-iron-54019
06/25/2020, 3:52 PMwitty-crayon-22786
06/25/2020, 3:52 PMwitty-crayon-22786
06/25/2020, 3:52 PMwonderful-iron-54019
06/25/2020, 3:54 PMpylint src does not pick them up since they dont have a __init__.py defined in their folder, however, ./pants lint src:: is surfacing a wholle bunch of lint errors in there we didn't know were therewonderful-iron-54019
06/25/2020, 3:55 PM./pants lint over pylint even tho AFAIK i've included our config and pinned the versionwitty-crayon-22786
06/25/2020, 3:57 PM./pants help-advanced.wonderful-iron-54019
06/25/2020, 3:57 PMsimilar lines across different targets, even tho that doesn't happen in pylint src and its my understanding that since those targets are isolated in different runtimes it should never trigger something like thatwitty-crayon-22786
06/25/2020, 3:58 PMwonderful-iron-54019
06/25/2020, 3:58 PMwonderful-iron-54019
06/25/2020, 3:59 PMwonderful-iron-54019
06/25/2020, 3:59 PMwonderful-iron-54019
06/25/2020, 3:59 PMextra_requirements but that ledd to some resolution errorswitty-crayon-22786
06/25/2020, 4:00 PMwonderful-iron-54019
06/25/2020, 4:00 PMwonderful-iron-54019
06/25/2020, 4:02 PMwonderful-iron-54019
06/25/2020, 4:02 PMhundreds-father-404
06/25/2020, 4:02 PMwonderful-iron-54019
06/25/2020, 4:03 PMwonderful-iron-54019
06/25/2020, 4:04 PMdef python_library(**kwargs):
sources = kwargs.get("sources", [])
sources.append("!**/db_migrations")
kwargs["sources"] = sources
return python_library(**kwargs)wonderful-iron-54019
06/25/2020, 4:04 PM