From 3eccd91ebb15fb9711d9a87a6322302e8971b0cc Mon Sep 17 00:00:00 2001 From: xiaoxia Date: Tue, 28 Jul 2026 09:00:34 +0800 Subject: [PATCH] =?UTF-8?q?fix(ci):=20AI=20Code=20Review=20fail-open=20-?= =?UTF-8?q?=20LLM=E5=A4=B1=E8=B4=A5/=E5=BC=82=E5=B8=B8=E6=97=B6=E4=B8=8D?= =?UTF-8?q?=E9=98=BB=E5=A1=9E=E5=90=88=E5=B9=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/ci_code_review.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/ci_code_review.py b/scripts/ci_code_review.py index 1ec5e8330..c67bf88d9 100644 --- a/scripts/ci_code_review.py +++ b/scripts/ci_code_review.py @@ -715,7 +715,7 @@ def main(): if not review_result: logger.error("LLM 审查失败") - sys.exit(1) + sys.exit(0) # fail-open: LLM调用失败不阻塞合并 # 7. 加上审查时间和标识(便于识别是自动审查) from datetime import datetime @@ -773,7 +773,7 @@ def main(): except Exception as e: logger.exception(f"审查脚本发生未预期的异常: {e}") - sys.exit(1) + sys.exit(0) # fail-open: 异常不阻塞正常开发 if __name__ == "__main__":