Skip to content
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

Add errors to enhance model import error logging #681

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

riyaa14
Copy link
Contributor

@riyaa14 riyaa14 commented Feb 13, 2025

Description

This PR fixes Meshery #13574

Notes for Reviewers
Added new errors to meshkit/files/errors.go, that are useful for error logging while processing model artifacts. Currently, file errors defined here are specific to design import, we need to extend error messages to support better error logging in model import.

Signed commits

  • Yes, I signed my commits.

Signed-off-by: Riya Garg <riyag1452003@gmail.com>
Signed-off-by: Riya Garg <riyag1452003@gmail.com>
Signed-off-by: Riya Garg <riyag1452003@gmail.com>
@riyaa14 riyaa14 force-pushed the model-import-errors branch from 3b69606 to c30c5a9 Compare February 16, 2025 21:52
@@ -32,9 +32,9 @@ var ValidIacExtensions = map[string]bool{
".tar": true,
".tar.gz": true,
".tar.tgz": true,
".zip": true,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why are we removing zip files?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I noticed that zip isn't working for both designs and models, this can confuse the user if we say zip is supported. I confirmed this on slack here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Server] Enhance error logging in model import
2 participants