mysterious-waiter-14207
07/18/2022, 6:42 AMwitty-crayon-22786
07/18/2022, 2:58 PM-ldebug
logs for two successive runs with --no-pantsd
where the second one misses should show you the fingerprints for the processes that are being invoked. If you're comfortable including snippets here (or DMing), I can take a look../pants paths --from=$file1 --to=$file2
mysterious-waiter-14207
07/18/2022, 5:55 PMwitty-crayon-22786
07/18/2022, 5:55 PMIt happens both with upstream version and pants_from_source, pants_from_source should also be cached right?yes, both should be cached, although different versions of Pants will have different cache keys
paths
as mentioned above… it will tell you why a dependee needs to be recompiled./pants dependees $changed-file
to see what depends on a filemysterious-waiter-14207
07/18/2022, 5:57 PMwitty-crayon-22786
07/18/2022, 5:58 PM--no-pantsd
actually recompile things on the second runmysterious-waiter-14207
07/19/2022, 9:16 AMScalaPlugins
produced unordered arguments.witty-crayon-22786
07/19/2022, 6:39 PMmysterious-waiter-14207
07/19/2022, 7:07 PMwitty-crayon-22786
07/19/2022, 7:39 PMresources
that should be loaded in a particular order… or a classpath entry that you want to take precedence over anothermysterious-waiter-14207
07/19/2022, 7:42 PMwitty-crayon-22786
07/19/2022, 7:45 PMSnapshot
and Digest
sort, and merging them dedupes identical entries (and explode for same-name-different-content), so it doesn’t actually result in more copies of anythingClasspathEntry
ordering and duplicates is really just to affect the arguments for the processesmysterious-waiter-14207
07/19/2022, 7:46 PMwitty-crayon-22786
07/19/2022, 7:47 PMmysterious-waiter-14207
07/19/2022, 7:47 PMwitty-crayon-22786
07/19/2022, 7:47 PMmysterious-waiter-14207
07/19/2022, 7:48 PMwitty-crayon-22786
07/19/2022, 7:48 PMA:B:A
is equivalent to A:B
, since the first matching class is the one that is used.mysterious-waiter-14207
07/19/2022, 7:49 PMwitty-crayon-22786
07/19/2022, 7:50 PMmysterious-waiter-14207
07/19/2022, 7:52 PMwitty-crayon-22786
07/19/2022, 7:52 PMmysterious-waiter-14207
07/19/2022, 7:58 PMwitty-crayon-22786
07/19/2022, 8:02 PMdict
ordering is preserved, but set
is randomized per run. so sets are fine unless they are iterated over. particularly if that ends up being the issue here, i’ll want to follow up to add a lint á la https://github.com/pantsbuild/pants/issues/14195#issuecomment-1114087237mysterious-waiter-14207
07/19/2022, 8:04 PMwitty-crayon-22786
07/19/2022, 8:18 PM