-
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
run/metrics: bad file format validation and error handling [qa] #4068
Comments
Actually, this is a very good idea! Let's do that!
We've made a conscious decision to just ignore bad formats, because the warnings would get unwieldy very fast. Mind that we've dropped support for csv/tsv/etc metrics, which means that history in some projects might be really bad. I really like your idea with |
Makes sense but the error is confusing/ feels like a bug because I'm seeing the metrics file in dvc.yaml Even if the type validation at Thanks! |
|
@efiop It seems my issue still remains (dvc 1.5.1+147450). I still see "no metric files in repository..." message. I guess it's because my file was absolutely empty. |
So an error message to encompass both cases could be
|
@nik123
Checked this script on @nik123 could you check this script on your machine? |
@pared . Here are my results:
My environment:
|
@nik123 so, it seems like the message from the script is proper one, right? |
@pared . Now I can't reproduce it neither. Probably I messed up something with my virtual environment haven't check error message carefully. Sorry. |
Closing, at the moment, we do show the filename but we don't parse as it's not a numeric value. $ dvc plots show
Path
metric.txt |
Bug Report
I get a strange error when trying to use
dvc metrics show
on a plaintext metrics file:Questions:
dvc run
try to check metrics/plots file formats and at least WARN about non-supported mime/types?metrics show
not even finding the metrics file, which is shown in thedvc.yaml
file?UPDATE: See #4068 (comment)
Please provide information about your setup
Output of
dvc version
:Additional Information (if any):
If applicable, please also provide a
--verbose
output of the command, eg:dvc add --verbose
.The text was updated successfully, but these errors were encountered: