From 855369f5cb2fa62198d83d0c3509c19cfb90863e Mon Sep 17 00:00:00 2001 From: dongjie110 <17621827400@163.com> Date: Thu, 22 May 2025 01:53:32 +0000 Subject: [PATCH] fix code check some unpredictable error and return FAILED Signed-off-by: dongjie110 <17621827400@163.com> --- src/ac/acl/openlibing/check_code.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ac/acl/openlibing/check_code.py b/src/ac/acl/openlibing/check_code.py index e457095..7a65210 100644 --- a/src/ac/acl/openlibing/check_code.py +++ b/src/ac/acl/openlibing/check_code.py @@ -150,6 +150,10 @@ class CheckCode(BaseCheck): # 只有codecheck完成且codecheck检查的代码中存在bug,返回检查项失败的结果,以detail结尾,会显示具体的代码bug所在位置。 if response_content.get("state") == "no pass": return FAILED + elif response_content.get('code') == '500': + logger.error("response content detail : %s", response_content) + logger.error("Maybe an unpredictable error has occurred. Please contact the CI administrator.") + return FAILED else: logger.error("code check failed, info : %s", response_content.get('msg')) -- Gitee