fast-nail-5540007/16/2021, 9:19 PM
from https://github.com/pantsbuild/pants/runs/3089689188?check_suite_focus=true. I had added a PyPi package to the lockfile in that PR. Does the lockfile have to be generated with Python 3.7? (I had run it with Python 3.8.)
stderr: Failed to resolve requirements from PEX environment @ /tmp/process-executionRnfOYF/lockfile.pex. Needed manylinux_2_31_x86_64-cp-37-cp37m compatible dependencies for: 1: importlib-metadata>=0.12; python_version < "3.8" Required by: pluggy 0.13.1 pytest 6.2.4 But this pex had no 'importlib-metadata' distributions.
hundreds-father-40407/16/2021, 10:57 PM
https://github.com/pantsbuild/pants/runs/3090103212?check_suite_focus=true#step:9:468 Can I revert your change to unblock @wide-energy-11069 from doing the release?
Exception: String("Cannot strip prefix chroot/dist from root directory (Digest with hash Fingerprint<0e3f69284c886c8b9b330122c22ed47e469e2f9020c9938fdf6d15c24471aeae>) - root directory didn't contain a directory named chroot but did contain directory named: dist")
curved-television-656807/19/2021, 10:54 AM
command due to the result already being present in the cache. I spent a good amount of time head scratching why after some refactorings it didn’t run no more… haha.
witty-crayon-2278607/19/2021, 8:22 PM
witty-crayon-2278607/19/2021, 10:26 PM
witty-crayon-2278607/20/2021, 12:50 AM
rc tomorrow: let me know if there is anything else bound for the branch soon
rough-minister-5825607/20/2021, 1:56 AM
might be useful to get proper
[omerta pants2wheel (master)]$ git show -s --date="format:%Y.%-m%d.%H%M%S" --format="%cd+%h" HEAD 2021.719.214135+f345b57c9c997
and range pin behavior.
fast-nail-5540007/20/2021, 3:18 PM
enough-analyst-5443407/20/2021, 5:46 PM
doesn't work due to
./pants lock ::
afaict (due to the
req) and running with
completes, but produces surprising results (with only a pex 2.1.42 -> 2.1.43 change, two other requirements, pystache and types-requests - are removed completely from the lockfile). Afaict there is no script or doc or comment in the generated lockfile that give a hint at what command to run to generate the lockfile.
./pants lock src:: tests::
hundreds-father-40407/20/2021, 9:59 PM
hundreds-father-40407/20/2021, 10:54 PM
curved-television-656807/21/2021, 5:50 AM
. In https://www.pantsbuild.org/docs/style-guide#prefer-dataclasses there’s described how to mutate input parameters during init, but no mention of
? https://docs.python.org/3/library/dataclasses.html?highlight=initvar#init-only-variables Uhm.. reading up on it again, is it to circumvent the limitation described in there regarding frozen instances.. ?
There is a tiny performance penalty when using `frozen=True`:cannot use simple assignment to initialize fields, and must use
curved-television-656807/21/2021, 12:39 PM
ancient-vegetable-1055607/21/2021, 6:16 PM
witty-crayon-2278607/21/2021, 11:27 PM
witty-crayon-2278607/22/2021, 12:25 AM
fast-nail-5540007/22/2021, 1:55 AM
hundreds-father-40407/22/2021, 6:37 PM
curved-television-656807/22/2021, 6:46 PM
average-vr-5679507/22/2021, 6:47 PM
hundreds-father-40407/22/2021, 8:13 PM
hundreds-father-40407/22/2021, 8:30 PM
, suggesting the arg gets ignored. (But weirdly,
./pip_compile.pex --pip-args '--platform=fake'
hundreds-father-40407/27/2021, 6:00 PM
witty-crayon-2278607/28/2021, 5:58 PM
hundreds-father-40407/28/2021, 6:48 PM
w/ exit code -6 (sigabrt iirc). I don't see a ticket, want me to create one or you're aware of this? https://github.com/pantsbuild/pants/runs/3184651247?check_suite_focus=true#step:11:499
hundreds-father-40407/28/2021, 8:23 PM
rapid-bird-7930007/28/2021, 9:57 PM
the solution for the above error was to upgrade pip but this is not obvious to most developers. My troubleshooting for pants errors usually goes like this: 1. what’s your python version 2. clear pants cache 3. try upgrading pip 4. try a virtualenv 5. if none above work just run lint checks directly to unblock (not ideal) Developers environments are widely different, most of the time it’s a battle of python versions and path issues. I’m not sure if there are any good solutions for this but I wanted to share some of experiences so far. Any suggestions to improve our consistency across environments would be greatly appreciated.
16:29:49.96 [INFO] Starting: Building isort.pex with 2 requirements: isort[pyproject]>=5.5.1,<5.6, setuptools 16:30:01.34 [INFO] Completed: Building isort.pex with 2 requirements: isort[pyproject]>=5.5.1,<5.6, setuptools 16:30:01.34 [ERROR] Exception caught: (pants.engine.internals.scheduler.ExecutionError) File "/Users/developer/.cache/pants/setup/bootstrap-Darwin-x86_64/2.5.1rc3_py38/lib/python3.8/site-packages/pants/bin/local_pants_runner.py", line 234, in _run_inner return self._perform_run(goals) File "/Users/developer/.cache/pants/setup/bootstrap-Darwin-x86_64/2.5.1rc3_py38/lib/python3.8/site-packages/pants/bin/local_pants_runner.py", line 173, in _perform_run return self._perform_run_body(goals, poll=False) File "/Users/developer/.cache/pants/setup/bootstrap-Darwin-x86_64/2.5.1rc3_py38/lib/python3.8/site-packages/pants/bin/local_pants_runner.py", line 190, in _perform_run_body return self.graph_session.run_goal_rules( File "/Users/developer/.cache/pants/setup/bootstrap-Darwin-x86_64/2.5.1rc3_py38/lib/python3.8/site-packages/pants/init/engine_initializer.py", line 135, in run_goal_rules exit_code = self.scheduler_session.run_goal_rule( File "/Users/developer/.cache/pants/setup/bootstrap-Darwin-x86_64/2.5.1rc3_py38/lib/python3.8/site-packages/pants/engine/internals/scheduler.py", line 530, in run_goal_rule self._raise_on_error([t for _, t in throws]) File "/Users/developer/.cache/pants/setup/bootstrap-Darwin-x86_64/2.5.1rc3_py38/lib/python3.8/site-packages/pants/engine/internals/scheduler.py", line 489, in _raise_on_error raise ExecutionError( Exception message: 1 Exception encountered: Engine traceback: in select in pants.core.goals.fmt.fmt in pants.backend.python.lint.python_fmt.format_python_target in pants.core.goals.fmt.enrich_fmt_result in custom_isort.rules.isort_fmt in custom_isort.rules.setup_isort in pants.backend.python.util_rules.pex.create_venv_pex (isort.pex) in pants.backend.python.util_rules.pex.build_pex (isort.pex) in pants.engine.process.fallible_to_exec_result_or_raise Traceback (most recent call last): File "/Users/developer/.cache/pants/setup/bootstrap-Darwin-x86_64/2.5.1rc3_py38/lib/python3.8/site-packages/pants/engine/process.py", line 253, in fallible_to_exec_result_or_raise raise ProcessExecutionFailure( pants.engine.process.ProcessExecutionFailure: Process 'Building isort.pex with 2 requirements: isort[pyproject]>=5.5.1,<5.6, setuptools' failed with exit code 1. stdout:
witty-crayon-2278607/28/2021, 11:35 PM