已合并
[fix] Use regex to exact match compile comment #5659
WSs_321创建于 8月4日
[fix] Use regex to exact match compile comment #5659
已合并
WSs_321创建于 8月4日
WSs_321成员
8月4日

【合入来源】

如有社区issue,请关联issue链接
请勿携带内部流程信息(需求链接、问题单、内部issue等)

关联issue:https://gitcode.com/Ascend/op-plugin/issues/352

【修改方案】

将 .gitcode/workflows/PR-pipeline_op-plugin.yml 中 pull_request_comment 触发条件由 comments: [ 'compile' ] 改为正则精确匹配 comments: [ '^compile$' ],仅当评论内容完全等于 compile 时才触发流水线,避免子串匹配导致的其他评论误触发。

【资料变更】

不涉及

【接口变更】

不涉及

【功能验证】

在 PR 评论 compile 验证流水线正常触发;评论包含其他内容(如 compile xxx)时不触发。

【CheckList】

PR提交人对以下CheckList自检项进行全量自检,自检通过或不涉及,均修改 [ ] 为 [x]

likedislike
Pull Request已成功合入, 合并人@ascend-robot
(感谢 WSs_321 的贡献)
WWSs_321成员
8月4日 创建了 pull request,commit 60f76c49
atomgit-bot
atomgit-bot
8月4日 评论:

变更摘要

此 PR 将 PR 流水线工作流中 pull_request_comment 事件的评论匹配方式从普通字符串匹配改为正则表达式精确匹配,确保只有严格等于 compile 的评论才会触发工作流,避免包含 compile 子串的其他评论(如 recompile)误触发。

主要改动

  • .gitcode/workflows/PR-pipeline_op-plugin.yml 评论匹配精确化: 将 comments 触发条件从 'compile' 改为 '^compile$',使用正则锚点确保仅完全匹配 compile 的评论才会触发 CI 流水线。
likedislike
不准确?
atomgit-bot
atomgit-bot
8月4日 评论:

代码审查

✅ 未发现问题

likedislike
不准确?
ascend-robotascend-robot成员
8月4日 添加了label:ascend-cla/yes
ascend-robot
ascend-robot成员
8月4日 评论:

Thanks for your pull-request.
The full list of commands accepted by me can be found at here。
You can get sig-info at here


PR Approval Progress

✅ Congratulations! All modules have met the lgtm and approve requirements.

Module Approval Details

module lgtm status approve status
repo-Ascend/op-plugin ✅ 吴环宇, huangjingwei (2/2) ✅ 吴环宇 (1/1)

💡 Tip:

  • Committer can comment /approve or /lgtm
  • Commenting /approve implies both code review (lgtm) and intent to merge (approve)

CLA Signature Pass

WSs_321, thanks for your pull request. All authors of the commits have signed the CLA. 👍

likedislike
ascend-robotascend-robot成员
8月4日 添加了label:needs-issue
ascend-robot
ascend-robot成员
8月4日 评论:

Linking Issue Notice

@WSs_321 , the pull request must be linked to at least one issue.
If an issue has already been linked, but the needs-issue label remains, you can remove the label by commenting /check-issue .

likedislike
WWSs_321成员
8月4日 修改标题为 “[fix] Use regex to exact match compile comment”,原标题为“Use regex to exact match compile comment”
ascend-robot
ascend-robot成员
8月4日 评论:

ascend docs pipeline is running...

likedislike
ascend-robotascend-robot成员
8月4日 添加了label:docs-ci-pipeline-running
WSs_321成员
8月4日 评论:

compile

likedislike
WWSs_321成员
8月4日 预合并成功(commit_id: 9b727968bb908238b0c6894ddb4558b5a7ad29a6)
ascend-robotascend-robot成员
8月4日 添加了label:ci-pipeline-running
ascend-robot
ascend-robot成员
8月4日 评论:

✅ 跳过 docs ci 检查,没有需要检查的文档文件

likedislike
ascend-robotascend-robot成员
8月4日 删除了label:docs-ci-pipeline-running
ascend-robotascend-robot成员
8月4日 添加了label:docs-ci-pipeline-success
ascend-robot
ascend-robot成员
8月4日 评论:

ascend docs pipeline is running...

likedislike
ascend-robotascend-robot成员
8月4日 删除了label:docs-ci-pipeline-success
ascend-robotascend-robot成员
8月4日 添加了label:docs-ci-pipeline-running
ascend-robot
ascend-robot成员
8月4日 评论:

✅ 跳过 docs ci 检查,没有需要检查的文档文件

likedislike
ascend-robotascend-robot成员
8月4日 删除了label:docs-ci-pipeline-running
此处折叠了5条事件消息 查看更多
ascend-robotascend-robot成员
8月4日 添加了label:ci-pipeline-passed
ascend-robot
ascend-robot成员
8月4日 评论:
流水线 PR-pipeline_op-plugin#3072 [ commitID:b6fa0aa9 ] 已完成
>>>代码风格自动修复执行成功(无修复内容)
阶段 任务名 状态 详情
编译构建 Build_master_ARM ✅ >>>
Build_v2_7_1_ARM ✅ >>>
Build_v2_9_0_ARM ✅ >>>
Build_v2_10_0_ARM ✅ >>>
Build_v2_11_0_ARM ✅ >>>
Build_v2_12_0_ARM ✅ >>>
Build_master_x86 ✅ >>>
Build_v2_7_1_x86 ✅ >>>
Build_v2_9_0_x86 ✅ >>>
Build_v2_10_0_x86 ✅ >>>
Build_v2_11_0_x86 ✅ >>>
Build_v2_12_0_x86 ✅ >>>
恶意代码检查 Antipoison ✅ >>>
编码安全与规范检查 codecheck_pre-commit ✅ >>>
pre-commit ✅ >>>
开源片段检查 SCA ✅ >>>
开发者测试 UT_master_ARM_01 ✅ >>>
UT_v2_7_1_ARM ✅ >>>
UT_v2_9_0_ARM ✅ >>>
UT_v2_10_0_ARM ✅ >>>
UT_v2_11_0_ARM ✅ >>>
UT_v2_12_0_ARM ✅ >>>
UT_master_ARM_cpp 🛑 >>>
流水线 PR-pipeline_op-plugin ✅ >>>
此流水线已支持下列评论快捷指令,仅PR创建者和白名单成员[wujinyuan1, Hhuangjingwei, Lliangsongwei, Yyashi999, Cculechan, DDring, Wwuyouqi1, LL1919_snow, Qqq_52711437, WW, wss_321]评论有效
  • compile : 运行流水线
  • retry : 重试流水线所有失败子任务
  • retry <任务名> : 仅重试指定失败子任务
  • stop : 停止流水线
likedislike
WWSs_321成员
8月4日 预合并成功(commit_id: ecd848283db2772f42e22cea99fced2a08f99953)
Jingwei Huang
Jingwei Huang成员
8月4日 评论:

/lgtm

likedislike
dilililiwhy
dilililiwhy成员
8月4日 评论:

/approve

likedislike
ascend-robotascend-robot成员
8月4日 添加了label:approvedlgtm
ascend-robotascend-robot成员
8月4日 关闭了关联的issue
ascend-robotascend-robot成员
8月4日 合入了pull request