Hey! Quick Q: ```Please run with `--plugins=hdrhis...
# general
h
Hey! Quick Q:
Copy code
Please run with `--plugins=hdrhistogram` if you would like histogram summaries to be shown at the end of the run, or permanently add `[GLOBAL].plugins = ['hdrhistogram']`. This will cause Pants to install the `hdrhistogram` dependency from PyPI.
a warning? I don't want to run with hdrhistogram and don't want the warning either.
w
What command are you running?
Im guessing stats or stats-log or something?
f
We should just include it in the Pants internal lock file. I believe my attempt to do so was rejected when that support landed as being too many deps. But printing out that message still seems silly to me.
Or make stats support be a backend and have hdrhistogram be a requirement of that “stats” backend.
w
Yeah, the issue here is that we have a warning for something that should be mandatory
We absolutely do have wayyyy too many deps, but the warning is incongruous with the solution/workaround
(for the message) Its the "if you would like" which could be changed, because you can't have a warning that asks if you want something. Should either not be a warning, or should say "we expect" - and if we expect it, then we should just already have it
f
> We absolutely do have wayyyy too many deps, but the warning is incongruous with the solution/workaround I generally agree with the “too many deps” point, but would argue this dependency is a core part of the monitoring experience and so is justified.
b
In answering the original question, I believe one can silence specific warnings with https://www.pantsbuild.org/stable/reference/global-options#ignore_warnings
Re hdrhistogram as an explicit dependency, I've filed https://github.com/pantsbuild/pants/issues/22189 and opened https://github.com/pantsbuild/pants/pull/22190
That PR is merged now and will work its way through the release pipeline to come out in 2.27.0, so thank you, Benny, for your contribution to Pants! Asking questions to prompt improvements!
h
Thanks a lot all! I think this is certainly a better situation. I think either removing the message, or adding the dep would be good.