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 audit result error result ce #2879

Merged
merged 5 commits into from
Jan 17, 2025
Merged

Conversation

iwanghc
Copy link
Collaborator

@iwanghc iwanghc commented Jan 16, 2025

关联的 issue

#2860

描述你的变更

新增audit_execution_error类型表示审核规则执行报错
审核规则执行报错将错误信息记录到audit result中,防止报错的审核规则被跳过无感知

确认项(pr提交后操作)

Tip

请在指定复审人之前,确认并完成以下事项,完成后✅


  • 我已完成自测
  • 我已记录完整日志方便进行诊断
  • 我已在关联的issue里补充了实现方案
  • 我已在关联的issue里补充了测试影响面
  • 我已确认了变更的兼容性,如果不兼容则在issue里标记 not_compatible
  • 我已确认了是否要更新文档,如果要更新则在issue里标记 need_update_doc

@iwanghc iwanghc force-pushed the add_audit_result_error_result_ce branch from cf58bb1 to 4e5bfc9 Compare January 17, 2025 08:43
@@ -291,11 +301,13 @@ func ConvertAuditResultFromDriverToModel(dar *driverV2.AuditResult) *AuditResult
newAr := &AuditResult{
Level: string(dar.Level),
RuleName: dar.RuleName,
ExecutionFailed: dar.ExecutionFailed,
Copy link
Collaborator

Choose a reason for hiding this comment

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

遗留到之后处理,这种变量命名失去了原有对象的含义

@winfredLIN winfredLIN merged commit b0c7a61 into main Jan 17, 2025
3 checks passed
@iwanghc iwanghc deleted the add_audit_result_error_result_ce branch February 6, 2025 02:10
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.

2 participants