-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
plots/metrics/params(?): stop throwing exceptions #5525
Comments
Candidate to convert from issue -> discussion? |
We have had a couple people in Discord try to use |
Agree! In general commands that print any kind of report should try to recover from individual errors and still give a report with some
For now (if there's consensus on the proposal) I'd suggest breaking this into several
Can you maybe explain how existing commits can break |
Here's the discord context:
I know @skshetry is working on unifying some of the UI. Unclear on whether that would allow us to consolidate this into one issue that can be addressed across all of these commands. |
This comment has been minimized.
This comment has been minimized.
I would be against splitting it into several issues (at least not for |
@pared One specific use case here is where one of the commits in the diff has no dvc.lock. Can we make sure that diff doesn't throw an exception in that case? |
Ill inspect that use case and add it to solution requirements. |
@dberenbaum It seems that lack of |
Fixed by #5984 |
After writing fix for #5490 It seems to me that we should be handling exceptions thrown during
plots/metrics/params
differently.For some time now we have been drifting towards approach that communicates problems with warnings instead of exceptions. And in case of
plots/metrics/params
commands it does make sense, as its ok for those commands to do "as much as possible" (eg, show all metrics besides that faulty one, instead of crippling whole command and not allowing user to see anything). This approach is also not ideal, every now and then I have discussion with @dmpetrov on whyplots/metrics
flood terminal with warnings in some cases, which reminds me of time when we used a lot ofwarn
calls in other parts of code, and had the same problem.I think that we should gather the exceptions preventing us from displaying particular
file
at particularrevision
and return them as part of result and let the error handling happen after doing as much as possible. Errors can still be logged to debug, and in case ofdvc plots/metrics
command we could issue single warning, like "10 out of 1000 plots could not be shown. Use -v to see why".The text was updated successfully, but these errors were encountered: