hundreds-father-404
10/14/2021, 5:11 PM./pants test src/py
, do you expect it to only run tests in src/py
? 🧵enough-analyst-54434
10/16/2021, 6:02 PMmelodic-thailand-99227
10/17/2021, 5:36 AM./pants dependencies
doesn’t seem to have this optionhelpful-jackal-12093
10/17/2021, 4:11 PMpants tailor
ignores fixtures/marks in pytest (//:pytest-asyncio
if there’s a test that uses @pytest.mark.asyncio
) , would it be possible detect this automatically
4. we have a pyproject.toml
that has an addopts
for example addopts ="-p no:dash"
, pytest fails because it doesn’t recognize this, we needed to add --
in the beginning of addopts
, is this intended or a bug?helpful-jackal-12093
10/17/2021, 4:27 PMBuilding requirements.pex with 75 requirements: aiobotocore==1.4.2; ...
Takes most of the timeaverage-vr-56795
10/17/2021, 9:50 PMException in thread Thread-2:
Traceback (most recent call last):
File "/opt/hostedtoolcache/Python/3.7.12/x64/lib/python3.7/threading.py", line 926, in _bootstrap_inner
self.run()
File "/home/runner/work/pants/pants/src/python/pants/engine/streaming_workunit_handler.py", line 264, in run
self.poll_workunits(finished=False)
File "/home/runner/work/pants/pants/src/python/pants/engine/streaming_workunit_handler.py", line 257, in poll_workunits
context=self.context,
File "/home/runner/.cache/pants/named_caches/pex_root/venvs/short/696b29ac/lib/python3.7/site-packages/toolchain/pants/buildsense/reporter.py", line 182, in __call__
finished=finished,
File "/home/runner/.cache/pants/named_caches/pex_root/venvs/short/696b29ac/lib/python3.7/site-packages/toolchain/pants/buildsense/reporter.py", line 208, in handle_workunits
self._build_state.queue_workunits(self._call_count, work_units_map)
File "/home/runner/.cache/pants/named_caches/pex_root/venvs/short/696b29ac/lib/python3.7/site-packages/toolchain/pants/buildsense/state.py", line 85, in queue_workunits
self._workunits_chunks_queue.put_nowait((call_num, workunits, timestamp))
File "/opt/hostedtoolcache/Python/3.7.12/x64/lib/python3.7/queue.py", line 190, in put_nowait
return self.put(item, block=False)
File "/opt/hostedtoolcache/Python/3.7.12/x64/lib/python3.7/queue.py", line 136, in put
raise Full
queue.Full
average-vr-56795
10/18/2021, 8:16 PMpants.backend.python.goals.run_pex_binary.create_pex_binary_run_request
"no really, the python
you'd find by running which python
is a python"? Right now it's only finding a different onefast-nail-55400
10/18/2021, 8:48 PMfast-nail-55400
10/18/2021, 9:25 PMStarting new nailgun server with cmd
log lines which seems excessive.fast-nail-55400
10/18/2021, 10:05 PMaverage-vr-56795
10/18/2021, 10:59 PMModuleNotFoundError: No module named 'pants.bin'
when trying to build a cross-platform pex of pants?
Running PANTS_PEX_RELEASE=STABLE ./build-support/bin/release.sh build-universal-pex
at 2.8.0.dev5 I'm getting:
[=== 00:44 Checking prebuilt wheels for 2.8.0.dev5+git3ee3288e ===]
All 2 pantsbuild.pants packages were fetched and are valid.
/Users/dwh/.cache/pants/named_caches/pex_root/installed_wheels/a62f822b62a14ee4072eb45dc8505f01ca805f7b/pex-2.1.51-py2.py3-none-any.whl/pex/commands/command.py:412: PEXWarning: The pex root has been set via PEX_ROOT but --disable-cache is also set. Ignoring PEX_ROOT and disabling caches.
"Ignoring {via} and disabling caches.".format(via=set_via)
Built /Users/dwh/src/github.com/pantsbuild/pants/dist/deploy/pex/pants.2.8.0.dev5.pex
Traceback (most recent call last):
File "/Users/dwh/.cache/pants/named_caches/pex_root/unzipped_pexes/6fc821a7c78f8fce0d8ae58c091013a1d21db5c8/.bootstrap/pex/pex.py", line 476, in execute
exit_value = self._wrap_coverage(self._wrap_profiling, self._execute)
File "/Users/dwh/.cache/pants/named_caches/pex_root/unzipped_pexes/6fc821a7c78f8fce0d8ae58c091013a1d21db5c8/.bootstrap/pex/pex.py", line 401, in _wrap_coverage
return runner(*args)
File "/Users/dwh/.cache/pants/named_caches/pex_root/unzipped_pexes/6fc821a7c78f8fce0d8ae58c091013a1d21db5c8/.bootstrap/pex/pex.py", line 432, in _wrap_profiling
return runner(*args)
File "/Users/dwh/.cache/pants/named_caches/pex_root/unzipped_pexes/6fc821a7c78f8fce0d8ae58c091013a1d21db5c8/.bootstrap/pex/pex.py", line 532, in _execute
return self.execute_entry(self._pex_info.entry_point)
File "/Users/dwh/.cache/pants/named_caches/pex_root/unzipped_pexes/6fc821a7c78f8fce0d8ae58c091013a1d21db5c8/.bootstrap/pex/pex.py", line 668, in execute_entry
return self.execute_pkg_resources(entry_point)
File "/Users/dwh/.cache/pants/named_caches/pex_root/unzipped_pexes/6fc821a7c78f8fce0d8ae58c091013a1d21db5c8/.bootstrap/pex/pex.py", line 699, in execute_pkg_resources
runner = entry.resolve()
File "/Users/dwh/.cache/pants/named_caches/pex_root/unzipped_pexes/6fc821a7c78f8fce0d8ae58c091013a1d21db5c8/.bootstrap/pex/vendor/_vendored/setuptools/pkg_resources/__init__.py", line 2481, in resolve
module = __import__(self.module_name, fromlist=['__name__'], level=0)
ModuleNotFoundError: No module named 'pants.bin'
Traceback (most recent call last):
File "/Users/dwh/.cache/pants/named_caches/pex_root/unzipped_pexes/b9fbddc60b329b36bd6656142ccba79f43ae4b6e/.bootstrap/pex/pex.py", line 476, in execute
exit_value = self._wrap_coverage(self._wrap_profiling, self._execute)
File "/Users/dwh/.cache/pants/named_caches/pex_root/unzipped_pexes/b9fbddc60b329b36bd6656142ccba79f43ae4b6e/.bootstrap/pex/pex.py", line 401, in _wrap_coverage
return runner(*args)
File "/Users/dwh/.cache/pants/named_caches/pex_root/unzipped_pexes/b9fbddc60b329b36bd6656142ccba79f43ae4b6e/.bootstrap/pex/pex.py", line 432, in _wrap_profiling
return runner(*args)
File "/Users/dwh/.cache/pants/named_caches/pex_root/unzipped_pexes/b9fbddc60b329b36bd6656142ccba79f43ae4b6e/.bootstrap/pex/pex.py", line 532, in _execute
return self.execute_entry(self._pex_info.entry_point)
File "/Users/dwh/.cache/pants/named_caches/pex_root/unzipped_pexes/b9fbddc60b329b36bd6656142ccba79f43ae4b6e/.bootstrap/pex/pex.py", line 679, in execute_entry
return self.execute_module(entry_point, alter_sys)
File "/Users/dwh/.cache/pants/named_caches/pex_root/unzipped_pexes/b9fbddc60b329b36bd6656142ccba79f43ae4b6e/.bootstrap/pex/pex.py", line 691, in execute_module
runpy.run_module(module_name, run_name="__main__", alter_sys=alter_sys)
File "/usr/local/Cellar/python@3.7/3.7.12_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/runpy.py", line 205, in run_module
return _run_module_code(code, init_globals, run_name, mod_spec)
File "/usr/local/Cellar/python@3.7/3.7.12_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/runpy.py", line 96, in _run_module_code
mod_name, mod_spec, pkg_name, script_name)
File "/usr/local/Cellar/python@3.7/3.7.12_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/Users/dwh/src/github.com/pantsbuild/pants/.pants.d/tmpyxyw4scb/build-support/bin/_release_helper.py", line 1121, in <module>
main()
File "/Users/dwh/src/github.com/pantsbuild/pants/.pants.d/tmpyxyw4scb/build-support/bin/_release_helper.py", line 1107, in main
build_pex(fetch=True)
File "/Users/dwh/src/github.com/pantsbuild/pants/.pants.d/tmpyxyw4scb/build-support/bin/_release_helper.py", line 732, in build_pex
subprocess.run([sys.executable, str(dest), "--version"], check=True)
File "/usr/local/Cellar/python@3.7/3.7.12_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/subprocess.py", line 512, in run
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['/usr/local/opt/python@3.7/bin/python3.7', '/Users/dwh/src/github.com/pantsbuild/pants/dist/deploy/pex/pants.2.8.0.dev5.pex', '--version']' returned non-zero exit status 1.
fast-nail-55400
10/20/2021, 11:10 PMtest_compile_multiple_source_files
in src/python/pants/backend/java/compile/javac_test.py
working with same package dependency inference. That test creates two files in the same package but they do not refer to each other’s types, so they should end up in separate `CoarsenedTarget`’s. However, it appears the shared dependency of the coursier_lockfile
is being found to link them together, and so they end up in a single CoarsenedTarget. Is this expected?witty-crayon-22786
10/21/2021, 4:55 AMhelpful-jackal-12093
10/21/2021, 7:37 AM./pants
without arguments takes about 1sfast-nail-55400
10/21/2021, 2:13 PMException: Error linking /home/runner/.cache/pants/named_caches/coursier -> /tmp/process-executionJfc3dg/.cache for local execution: Os { code: 17, kind: AlreadyExists, message: "File exists" }
bitter-ability-32190
10/21/2021, 5:30 PMastroid
issue link, which powers pylint
. The overall approach isn't dissimilar from `mypy`'s initial implementation (per-module JSON stored in a cache dir. Look at byte-length+mtime to know whether to re-parse).
Happy to take future requests to make it pants
-compatibleancient-vegetable-10556
10/21/2021, 5:38 PMBUILD
file that I can’t replicate on my M1 (pwith py3.9) or on a linux box (with py3.7). There’s no real error in the CI output other than what the file is. How can I diagnose this?hundreds-father-404
10/21/2021, 7:19 PM./pants fix
replacing tailor
and parts of update-build-files
...should we add this goal in Pants 2.8 and switch autoflake and pyupgrade to use it, rather than fmt
? Seems like we need to get that right before stabilizing those new features in Pants 2.8fast-nail-55400
10/22/2021, 12:03 AMwitty-crayon-22786
10/22/2021, 12:05 AMwitty-crayon-22786
10/22/2021, 4:53 PMwitty-crayon-22786
10/22/2021, 9:56 PMgzip
isn’t as common as tar
or unzip
, so i’m thinking of having https://github.com/pantsbuild/pants/pull/13335 use the Python gzip
modulewitty-crayon-22786
10/24/2021, 4:48 PMfast-nail-55400
10/25/2021, 3:37 PMwitty-crayon-22786
10/25/2021, 8:28 PMgo
more of a focus for you this week?fast-nail-55400
10/26/2021, 2:32 PM./pants lint check src/python/pants/backend/java::
on latest main
(plus my PR for third-party package dep inference):
ValueError: Failed to locate Java for JDK `adopt:1.11`:
setrlimit to increase file descriptor limit failed, errno 22
Downloading <https://github.com/coursier/jvm-index/raw/master/index.json>
Downloaded <https://github.com/coursier/jvm-index/raw/master/index.json>
Downloading <https://github.com/AdoptOpenJDK/openjdk11-binaries/releases/download/jdk-11%2B28/OpenJDK11-jdk_x64_mac_hotspot_11_28.tar.gz>
/bin/bash: /bin/java: No such file or directory
ancient-vegetable-10556
10/26/2021, 8:10 PMancient-vegetable-10556
10/26/2021, 9:34 PMwitty-crayon-22786
10/26/2021, 10:42 PMgo
): in particular, ./pants dependencies --transitive
would actually do what users have always asked for, and show transitive thirdparty dependencies as well (with working peek
)witty-crayon-22786
10/27/2021, 5:49 AM