-
-
Notifications
You must be signed in to change notification settings - Fork 644
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Turn nailgun initialization message down to debug #21865
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, this is good, since those messages give the impression that the nailgun startup is expensive, but actually it's the solver that is taking the time that those messages seem to be hanging on...
It is maybe a special case, but having nailgun enabled or not can affect hermeticity of compiled output #21146. Another time it has been helpful was to indicate misconfigured memory_usage parameters. Not saying it should stay, just that there has been cases where it was actually nice-to-have. Edit: I agree it's a bit weird in between those logs, especially without a "Nailgun pool initialized". |
Ah, that is an unfortunate bug, but seems somewhat suboptimal to be noisy to help flag one bug in a tool. 🤔
Ah, I'm surprised by this, so I'd love more info. Do you happen to remember more about how this log line helped with that? |
Yes that’s fair, it just came to mind on the nailgun topic. (I actually think nailgun should even be considered to be dropped, since it’s deprecated also)
Sure! It was a misconfiguration of |
Ah, I see. That prompts me to think of another way to tackle the logging-is-usually-irrelevant would be to phase out the usage of Nailgun, e.g. turn https://www.pantsbuild.org/prerelease/reference/global-options#process_execution_local_enable_nailgun from #20603 looks related to this too.
Ah, yes, I see. |
I think the intention with these log lines is logging expensive operations. However, the
NailgunPool::new
operation itself isn't expensive, and so doesn't need to be logged (sometimes twice) on every start-up.As a fairly-expert Pants user, I'm not sure what information one should get from knowing that there's potentially 16 processes managed by nailgun, and other less-expert users likely have even less use for it!
Fixes #21863 , revisits #20946 (comment) (particularly the last paragraph).