wide-midnight-78598
04/06/2023, 7:36 PMThe `@rule_helper` decorator is no longer needed. `@rule` methods may call any other methods, and if they are `async` may also use `Get` and `MultiGet`.
native_engine.IntrinsicError: Get(TargetRootsToFieldSets, TargetRootsToFieldSetsRequest, TargetRootsToFieldSetsRequest(field_set_superclass=<class 'pants.core.goals.package.PackageFieldSet'>, goal_description='', no_applicable_targets_behavior=<NoApplicableTargetsBehavior.ignore: 'ignore'>, shard=0, num_shards=-1)) was not detected in your @rule body at rule compile time. Was the `Get` constructor called in a separate function, or perhaps dynamically? If so, it must be inlined into the @rule body.
ancient-vegetable-10556
04/06/2023, 7:52 PMstreaming_workunit_handler_integration_test
— known issue, or is this just on my branch? https://github.com/pantsbuild/pants/actions/runs/4631159201/jobs/8195999699wide-midnight-78598
04/06/2023, 8:57 PMpants_from_sources
on my plugins repo.wide-midnight-78598
04/07/2023, 2:54 PMproud-dentist-22844
04/07/2023, 7:30 PMsrc/python/pants/backends/python/goals/setup_py.py
called setup_py.py
instead of something like package_dists.py
?average-vr-56795
04/09/2023, 6:26 PMaverage-vr-56795
04/10/2023, 7:19 AMEnvironmentBehavior
deprecation? Defaulting to USES_ENVIRONMENTS
? Removing a default and requiring the property to be overridden in every Goal
subclass?bitter-ability-32190
04/10/2023, 11:42 AMbitter-ability-32190
04/10/2023, 3:35 PMruff lint
support
◦ Benchmark ruff
on one-file-per-process. Either way this thing is fast. But maybe this is even better? I think it'll depend on the speed of the scheduler honestly
◦ Add pyenv
env var support
◦ Fix a pyenv
IC selection bug. Tool ICs might be different than user ICs. We should try and pick one and only one if possible
◦ Deprecate/Remove SecondaryOwnerMixin
. This is hazardous
◦ Add CODEOWNERS
to the repobitter-ability-32190
04/10/2023, 6:12 PMlint
failure message(s): `(One or more formatters failed. Run pants fmt
to fix.)`
Anywho, food for thought 🙂wide-midnight-78598
04/10/2023, 7:00 PMbitter-ability-32190
04/10/2023, 7:28 PMpackage
for Python for AWS Lambda and Google Cloud, but it could be used anywhere and where it is resolved is very far removed from where it is used 😐proud-dentist-22844
04/10/2023, 11:02 PMpython_distribution
that provides its own setup.py
and then extract the dependencies from the .dist-info/METADATA
file. Or better yet, just run the PEP-517 backend method prepare_metadata_for_build_wheel
(without everything else involved in building a PEP-660 editable wheel), and extract the requirements from there. It'd be a python_requirements
target that gets its requirements from wheel metadata instead of defining the deps used to build the wheel.
I know it's kind of a wild idea. How many people write their own setup.py
? And would the ability to extract requirements from a setup.py
be useful?
-- Mayor of crazy town, signing off. 😜happy-kitchen-89482
04/11/2023, 1:46 AMwitty-family-13337
04/11/2023, 9:28 AMGenerateSourcesRequest
like:
class GenerateMySourcesRequest(GenerateSourcesRequest):
input = MySourceField
output = MyGeneratedSourceField
Should has_field(MyGeneratedSourceField)
return True
when invoked in the target objects that have MySourceField
as part of their core fields? Not really interesting on addressing the field of the generated sources, just trying to figure out a way of detecting targets that may generate code for a specific source field type.bitter-ability-32190
04/12/2023, 7:30 PMbitter-ability-32190
04/13/2023, 3:35 PMbitter-ability-32190
04/13/2023, 4:36 PME AttributeError: module 'hashlib' has no attribute '_Hash'
bitter-ability-32190
04/13/2023, 7:16 PMsparse-lifeguard-95737
04/13/2023, 8:19 PMsrc/python/pants/engine/streaming_workunit_handler_integration_test.py:streaming_workunit_handler_integration_test
is timing out even when every other test in the shard hits the remote cache. there are a few other tests timing out ~frequently but with enough retries they eventually seem to workbitter-ability-32190
04/14/2023, 3:45 PMCopy codenative_engine.IntrinsicError: Failed to create hardlink to /home/runner/.cache/pants/lmdb_store/immutable/files/<digest> at /tmp/pants-sandbox-O6nGOE/<path>: No such file or directory (os error 2)
proud-dentist-22844
04/15/2023, 12:21 AMprovides
come from in python_distribution(provides=...)
? Do any other targets do something similar?
I'm generating a config file for an nfpm_package
(deb, rpm, apk), and I need to figure out how I want people to provide the details needed for it (name
, version
, arch
, depends
, ...). I could go with individual fields or a catch-all field like provides
.
edit: oh. provides
has a special meaning for rpm/deb/etc so I'm not using thathappy-kitchen-89482
04/16/2023, 4:17 PMhappy-kitchen-89482
04/17/2023, 10:58 PMcurved-television-6568
04/18/2023, 7:44 PMbitter-ability-32190
04/19/2023, 6:50 PMRustPython
to our engine's deps.
Now let's say someone wanted to rewrite our Python dep parser script in Rust.
What do we think would yield the best perf in the average case?
1. An intrinsic which leverages the local_cache
to cache Digest -> results
◦ Doesn't support remote cache
2. Build a full executable and use that
3. An intrinsic without caching
I'm guessing 1 is enough because the code is likely faster than the latency of the network + overhead of the remote download codeproud-dentist-22844
04/19/2023, 8:04 PMnfpm
backend that can generate deb
, rpm
, apk
, and archlinux
packages:
https://docs.google.com/document/d/1b2ZvP_Ol6bOURHBaZYOD8gxixxHpV22S_zKiHKZw9iY/edit?usp=sharingfuture-oxygen-10553
04/20/2023, 3:18 PMIterable[str]
, which from my experience with subprocess.run
means it should be ["arg1", "arg2"]
, but this results in an error from Pex that the args should be a single string. I presume this behavior is intentional, but then does the pex_binary.args
need to be an iterable? Could it just be a single string? If it needs to be an iterable for typing, I can try to update the docsdry-analyst-73584
04/20/2023, 8:29 PMhappy-kitchen-89482
04/20/2023, 8:45 PM