https://pantsbuild.org/ logo
#general
Title
# general
b

bitter-ability-32190

08/29/2022, 4:05 PM
I notice that each daemon restart re-runs the relevant `experimental_shell_command`each time. We're downloading from network, so this can be expensive. Any pointers on debugging what might've changed in the key?
e

enough-analyst-54434

08/29/2022, 4:21 PM
The quickest stop should be
-ldebug
for 2 runs. I'm pretty sure the whole Process struct is printed out and that contains all the inputs. Not super-convenient, but I think that gives you all the info you need.
b

bitter-ability-32190

08/29/2022, 4:25 PM
I'll try that. Also just checked and my exit code is
0
so we can rule out process failure
Looks like
TOOLS
env var isn't sorted 😠
😮 1
@witty-crayon-22786 caught another one 😅
w

witty-crayon-22786

08/29/2022, 4:38 PM
mm… a
set
?
i actually started on a mypy lint for this over vacation, and made decent progress
it’s not fully working, but the idea is to 1. ban all
set
iteration, which 2. doesn’t occur in a “safe” position: https://github.com/pantsbuild/pants/compare/main...stuhood:pants:stuhood/set-iteration-check (1) is trivial… was still working on (2)
c

curved-television-6568

08/29/2022, 4:48 PM
does sets iterate in an undefined order?
w

witty-crayon-22786

08/29/2022, 4:48 PM
yes. random per startup.
dict
is deterministic
1
c

curved-television-6568

08/29/2022, 4:49 PM
bummer.