aloof-angle-91616
07/24/2020, 4:31 AMwitty-crayon-22786
07/24/2020, 4:31 AMhundreds-father-404
07/24/2020, 4:31 AMaloof-angle-91616
07/24/2020, 4:31 AMhundreds-father-404
07/24/2020, 4:32 AMwrite
. Asher pointed out it’s helpful for people who don’t speak English as their first language. And it fits with using simpler terms for things like AddPrefix
and RemovePrefix
But willing to use another word, of coursealoof-angle-91616
07/24/2020, 4:33 AMaloof-angle-91616
07/24/2020, 4:33 AMwitty-crayon-22786
07/24/2020, 4:34 AMhundreds-father-404
07/24/2020, 4:36 AMworkspace.write_digest()
. There’s no longer a top-level type such as WriteDigest
hundreds-father-404
07/24/2020, 4:36 AMwrite_digest_to_build_root
as well. I think I prefer that?witty-crayon-22786
07/24/2020, 4:44 AMworkspace.write_digest
is greatwitty-crayon-22786
07/24/2020, 4:45 AM@rules
when they think that they are going to need them.hundreds-father-404
07/24/2020, 9:58 PMSnapshotSubset
to DigestSubset
? In https://www.pantsbuild.org/v2.0/docs/rules-api-file-system, almost everything uses Digest
and I’m presenting it as “The core building block is a Digest”
Snapshot
only augments Digest
with information possibly useful to you.aloof-angle-91616
07/24/2020, 9:59 PMhundreds-father-404
07/24/2020, 9:59 PMhundreds-father-404
07/24/2020, 10:00 PMSnapshot
, instead of digest.
I’m rewriting the 3 intrinsics that currently do that. The engine will automatically upcast those digests to snapshots if the rule author wantsaloof-angle-91616
07/24/2020, 10:04 PMDigest -> Snapshot
operation too long, it is possible to cache that specific action persistently with an extra ShardedLmdb, so i wouldn't worry about the performance implications of this at allaloof-angle-91616
07/24/2020, 10:04 PMhundreds-father-404
07/24/2020, 10:51 PMDigest
at these call sites. We were only requesting Snapshot
because the engine forced ithundreds-father-404
07/24/2020, 11:07 PMawait Get(DigestContents, PathGlobs)
.witty-crayon-22786
07/24/2020, 11:30 PMwitty-crayon-22786
07/24/2020, 11:31 PMSnapshot <- Digest <- Paths <- PathGlobs
DigestContents <-
hundreds-father-404
07/24/2020, 11:32 PMhundreds-father-404
07/29/2020, 12:51 AMTo set environment variables, use the parameter. You generally should not read fromenv: Mapping[str, str]
because this reduces reproducibility. Instead, hardcode the value or use a [os.environ
option](doc:rules-api-subsystems).Subsystem
hundreds-breakfast-49010
07/29/2020, 8:22 AMlift_
methods defined rather haphazardly in <http://nodes.rs|nodes.rs>
hundreds-father-404
07/29/2020, 6:27 PM./script.sh
file via CreateDigest
to be able to locate any arbitrary binary on the PATH
. It looks like “Text file busy” is when multiple processes are trying to modify the same file. I don’t know how that could happen with the engine, where each Process
is its own tmpdir?hundreds-father-404
07/29/2020, 6:39 PMpex
, rather than something like ./pex
.fast-nail-55400
07/29/2020, 7:30 PMwitty-crayon-22786
07/29/2020, 8:43 PMEngine traceback
currently includes only rules with human readable names. should it include all of them?aloof-angle-91616
07/29/2020, 8:49 PMawait Get(...)
and also provides a python-level traceback with exact line numbers — it does this by raising the exception from the Get() generator instead of early exiting from the engine, and preserving the stack for the traceback. the PR also keeps the engine traceback, which is displayed below the python-level traceback.
would the ability to have a python-level traceback exception with line numbers/etc be useful? if so, i can clean up that PR.