bitter-ability-32190
05/05/2022, 6:14 PM./pants --no-pantsd -ldebug --stats-log fmt --only=black ::
(I only retrofitted black for PoC) shows local_cache_requests_uncached: 1048
(vs 14 on main
)
When I then run ./pants --no-pantsd -ldebug --stats-log fmt --only=black src/python/pants/backend/python/lint/black/rules.py
I don't see any processes being run for black
(there are uncached requests/processes for getting the ICs).
https://github.com/thejcannon/pants/tree/synthcacheprocbitter-ability-32190
05/05/2022, 6:16 PMbitter-ability-32190
05/05/2022, 6:24 PM<http://cache.rs|cache.rs>
command runner is responsible for taking the batch and querying the cache for each process
object. It collects the uncached process objects to be merged and ran-as-one (TBD on whether <http://cache.rs|cache.rs>
or <http://bounded.rs|bounded.rs>
does the merging-and-running. PoC has it in bounded
)
⢠To merge we basically just combine the input digests into one and chain all the files to append to the "core" argv
⢠If the process was successful, store the individual process runs in the cache (TBD on the output info)
⢠(TBD collate the uncached batch run + cached results into a final result object)hundreds-father-404
05/05/2022, 7:53 PMI've had 2 doctors tell me I should focus getting more sleep, so there goes my hobby time.please do take care of yourself!! I've had to practice this a lot too this past month. Programming is a particularly addicting hobby w/ the sense of accomplishment š±
happy-kitchen-89482
05/05/2022, 8:48 PMhappy-kitchen-89482
05/05/2022, 8:49 PMbitter-ability-32190
05/05/2022, 8:54 PMbitter-ability-32190
05/05/2022, 8:56 PMhappy-kitchen-89482
05/06/2022, 1:12 AMbitter-ability-32190
05/06/2022, 1:14 AMbitter-ability-32190
05/06/2022, 1:15 AMbitter-ability-32190
05/06/2022, 1:16 AMbitter-ability-32190
05/06/2022, 1:18 AMhappy-kitchen-89482
05/06/2022, 1:46 AMbitter-ability-32190
05/06/2022, 3:53 AMwitty-crayon-22786
05/19/2022, 12:08 AMwitty-crayon-22786
05/19/2022, 12:13 AM@rule
API can be simple enough to make it worthwhile, including making splitting of outputs simple⦠i donāt know of any linters with enough JSON output to split safely, but our built in tools like dependency extraction could probablywitty-crayon-22786
05/19/2022, 12:14 AMwitty-crayon-22786
05/19/2022, 12:16 AMwitty-crayon-22786
05/19/2022, 12:16 AMwitty-crayon-22786
05/19/2022, 12:17 AMpytest
is probably not one of the ones where this is the case⦠tests can definitely have sideffects on one another. so would need to be disabled by default.witty-crayon-22786
05/19/2022, 12:18 AMtest
goal)witty-crayon-22786
05/19/2022, 12:22 AM@rule
code to be written in a readable and cache-friendly waywitty-crayon-22786
05/19/2022, 12:23 AMimmutable_inputs
stable and used for PEXes would drop a lot of input overhead)bitter-ability-32190
05/19/2022, 12:34 AMhappy-kitchen-89482
05/19/2022, 6:21 AMhappy-kitchen-89482
05/19/2022, 6:21 AMhappy-kitchen-89482
05/19/2022, 6:21 AMbitter-ability-32190
05/19/2022, 8:20 AM