apache / linkis

Apache Linkis builds a computation middleware layer to facilitate connection, governance and orchestration between the upper applications and the underlying data engines.
https://linkis.apache.org/
Apache License 2.0
3.29k stars 1.16k forks source link

[Feature][ErrorCode] Add error code matching #4924

Closed v-kkhuang closed 3 weeks ago

v-kkhuang commented 11 months ago

需求背景

部分错误信息未匹配到错误码,根据特定场景新增错误码

目标

1.错误码:43016
2.新增错误码:43017
3.新增错误码:43018
4.优化错误码匹配:21001

处理方案

1.错误码:43016 提示语:[模块 'xxxx' 没有属性 'xxxxx',请确认代码引用是否正常] 匹配正则:[AttributeError: '(\S+)' object has no attribute '(\S+)'] 2.错误码:43017 提示语:[存在参数无效或拼写错误,请确认 %s 参数正确性] 匹配正则:[KeyError: ((.+))] 3.错误码:43018 提示语:[ 文件地址( xxxx )错误,请确认路径是否存在] 匹配正则:[FileNotFoundError.*No such file or directory\:\s'(\S+)'] 4.错误码:21001
更改前:User (\S+) cannot submit applications to queue (\S+) 更改后:User (\S+) cannot submit applications to queue (\S+?)(?=\)


Requirement background

Some error messages did not match the error code, new error codes will be added based on specific scenarios

Goal

  1. Error code: 43016
  2. New error code: 43017
  3. New error code: 43018
  4. Optimize error code matching: 21001

    Processing plan

  5. Error code: 43016 Prompt: [Module 'xxxx' does not have attribute 'xxxxx', please confirm if the code reference is normal] Matching regular: [AttributeError: '( S+)' object has no attribute '( S+)']
  6. Error code: 43017 Prompt: [There are invalid parameters or spelling errors, please confirm the correctness of the% s parameters] Matching regular: [KeyError: ( (.+))]
  7. Error code: 43018 Prompt: [File address (xxxx) error, please confirm if the path exists] Matching regular: [FileNotFoundError. * No such file or
  8. Error code: 21001 Before making changes: User ( S+) cannot submit applications to queue ( S+) After change: User ( S+) cannot submit applications to queue ( S+?) (?= )
github-actions[bot] commented 11 months ago

:blush: Welcome to the Apache Linkis community!!

We are glad that you are contributing by opening this issue.

Please make sure to include all the relevant context. We will be here shortly.

If you are interested in contributing to our website project, please let us know! You can check out our contributing guide on :point_right: How to Participate in Project Contribution.

Community

WeChat Assistant WeChat Public Account

Mailing Lists

Name Description Subscribe Unsubscribe Archive
dev@linkis.apache.org community activity information subscribe unsubscribe archive