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

Refresh Error Codes #582

Open
leecalcote opened this issue Jan 14, 2025 · 4 comments
Open

Refresh Error Codes #582

leecalcote opened this issue Jan 14, 2025 · 4 comments
Labels
help wanted Extra attention is needed kind/bug Something isn't working kind/chore Necessary task language/go Golang related

Comments

@leecalcote
Copy link
Member

Current Behavior

$ make errorutil-analyze
go run github.com/layer5io/meshkit/cmd/errorutil -d . analyze --skip-dirs meshery -i ./helpers -o ./helpers
ERRO[0000] duplicate error code '11248', name: 'ErrUnmarshalSyntaxCode'
ERRO[0000] duplicate error code '11248', name: 'ErrTaggingPackageCode'
ERRO[0000] duplicate error code '11248', name: 'ErrCompressToTarGZCode'
ERRO[0000] duplicate error code '11246', name: 'ErrUnmarshalCode'
ERRO[0000] duplicate error code '11246', name: 'ErrWriteFilesCode'
ERRO[0000] duplicate error code '11245', name: 'ErrDecodeYamlCode'
ERRO[0000] duplicate error code '11245', name: 'ErrUnknownFormatCode'
ERRO[0000] duplicate error code '11245', name: 'ErrAuthenticatingToRegistryCode'
ERRO[0000] duplicate error code '11243', name: 'ErrUpdateEntityStatusCode'
ERRO[0000] duplicate error code '11243', name: 'ErrConnectingToRegistryCode'
ERRO[0000] duplicate error code '11187', name: 'ErrConvertToByteCode'
ERRO[0000] duplicate error code '11187', name: 'ErrDryRunHelmChartCode'
ERRO[0000] duplicate error code '11249', name: 'ErrUnmarshalTypeCode'
ERRO[0000] duplicate error code '11249', name: 'ErrPushingPackageCode'
ERRO[0000] duplicate error code '11247', name: 'ErrUnmarshalInvalidCode'
ERRO[0000] duplicate error code '11247', name: 'ErrAddLayerCode'
ERRO[0000] duplicate error code '11205', name: 'ErrRestConfigFromKubeConfigCode'
ERRO[0000] duplicate error code '11205', name: 'ErrExposeResourceCode'
ERRO[0000] duplicate error code name 'ErrUnmarshalUnsupportedValueCode'
ERRO[0000] duplicate error code name 'ErrGetSchemaCode'
ERRO[0000] duplicate error code name 'ErrUnmarshalInvalidCode'
ERRO[0000] duplicate error code name 'ErrUnmarshalTypeCode'
ERRO[0000] duplicate error code name 'ErrUnmarshalSyntaxCode'
ERRO[0000] duplicate error code name 'ErrUnmarshalUnsupportedTypeCode'
ERRO[0000] duplicate error code name 'ErrUnknownHostCode'
ERRO[0000] duplicate error code name 'ErrUnmarshalCode'
ERRO[0000] duplicate error code name 'ErrDecodeYamlCode'
WARN[0000] no error details found for error name 'ErrGetByIdCode' and code '11262'
ERRO[0000] duplicate error details for error name 'ErrUnmarshalCode' and code '11159'
ERRO[0000] duplicate code '11247' - skipping export
ERRO[0000] duplicate error details for error name 'ErrUnknownHostCode' and code '11255'
ERRO[0000] non-integer code 'no_code' - skipping export
ERRO[0000] duplicate code '11205' - skipping export
ERRO[0000] duplicate error details for error name 'ErrDecodeYamlCode' and code '11183'
ERRO[0000] duplicate error details for error name 'ErrUnmarshalUnsupportedValueCode' and code '11164'
ERRO[0000] duplicate code '11248' - skipping export
ERRO[0000] duplicate error details for error name 'ErrUnmarshalUnsupportedTypeCode' and code '11250'
ERRO[0000] duplicate error details for error name 'ErrGetSchemaCode' and code '11157'
ERRO[0000] duplicate error details for error name 'ErrUnmarshalUnsupportedValueCode' and code '11251'
ERRO[0000] duplicate code '11246' - skipping export
WARN[0000] no error details found for error name 'ErrUnknownHostInMapCode' and code '11260'
ERRO[0000] duplicate code '11245' - skipping export
ERRO[0000] duplicate code '11243' - skipping export
ERRO[0000] duplicate code '11187' - skipping export
ERRO[0000] duplicate error details for error name 'ErrUnmarshalTypeCode' and code '11162'
ERRO[0000] duplicate error details for error name 'ErrUnmarshalInvalidCode' and code '11160'
WARN[0000] no error details found for error name 'ErrGetDescriberFuncCode' and code '11189'
ERRO[0000] duplicate code '11249' - skipping export
ERRO[0000] duplicate error details for error name 'ErrUnmarshalSyntaxCode' and code '11161'
ERRO[0000] duplicate error details for error name 'ErrUnmarshalUnsupportedTypeCode' and code '11163'

Contributor Guides and Resources

@leecalcote leecalcote added help wanted Extra attention is needed kind/bug Something isn't working kind/chore Necessary task language/go Golang related labels Jan 14, 2025
@leecalcote
Copy link
Member Author

leecalcote commented Jan 14, 2025

@shanukun , help wanted.

@shanukun
Copy link

@leecalcote Isn't this supposed to be a meshkit issue?

@leecalcote
Copy link
Member Author

@shanukun the MeshKit errorutil needs to run against each individual Meshery component. Meshery Operator is in need of its set of error codes being analyzed / refreshed.

@leecalcote
Copy link
Member Author

You may or may not have seen this resource, so I'm pointing it out just in case - https://docs.meshery.io/project/contributing/contributing-error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed kind/bug Something isn't working kind/chore Necessary task language/go Golang related
Projects
None yet
Development

No branches or pull requests

2 participants