已合并
下线codecheck #1099
下线codecheck #1099
已合并
cui_jiahao创建于 14 天前
cui_jiahao成员
14 天前

当前PR是否有AI参与:

[x] 否

[ ] 是
__1. AI Agent 平台:
__2. AI 模型:
__3. Prompt上下文 :

PR功能描述 / 为什么需要这个合入**:

该PR关联的issue

(格式为fixes #<issue号>, 或者resolves #<issue号>): fixes #

希望检视人员了解:

改动类型 / Change Type

测试信息 / Testing

检查清单 / Checklist

likedislike
Pull Request已成功合入, 合并人@CANN-robot
(感谢 cui_jiahao 的贡献)
Ccui_jiahao成员
14 天前 创建了 pull request,commit 92543f39
atomgit-bot
atomgit-bot
14 天前 评论:

变更摘要

本 PR 的核心是「下线」对公共仓库中 codecheck 工作流的跨仓库引用,将其改为仓库本地维护:在 cann-ops-competitions_action.yml 中把 JOB_codecheckcodecheck_action.ymluses 引用从外部地址 cann/.gitcode/.gitcode/workflows/codecheck_action.yml@master 改为本地相对路径 .gitcode/workflows/codecheck_action.yml,同时新增本地工作流文件 codecheck_action.yml,内容与原公共工作流保持一致,从而解除该流水线对公共仓库 codecheck 工作流的依赖。

主要改动

  • 切换 codecheck 工作流引用来源:在 .gitcode/workflows/cann-ops-competitions_action.yml 中,将 JOB_codecheckuses 由外部仓库引用 cann/.gitcode/.gitcode/workflows/codecheck_action.yml@master 改为本地相对路径 .gitcode/workflows/codecheck_action.yml,使流水线不再依赖公共仓库的远端工作流。

  • 新增本地 codecheck_action.yml 工作流:新增文件定义了 codecheck_action 可复用工作流,声明 precommit_image_versioncodecheck_image_version 两个必填 inputs,作为本仓库内自包含的 codecheck 实现。

  • 内置 JOB_precommit 检查任务:工作流中包含 JOB_precommit 任务,依次执行 checkout、从 OBS(ascend-ci bucket)下载 pr_filelist_precommit.txt、调用 cann/.gitcode/actions/precommit@master 执行 precommit 检查,并在 always() 条件下将 pre-commit*.txt 结果上传回 OBS,运行于指定的容器镜像之上。

  • 内置 JOB_check_pr 检查任务:工作流中包含 JOB_check_pr 任务,执行 checkout 后从 OBS 下载 pr_filelist.txtpr_filelist_mod.txt,再调用 cann/.gitcode/actions/check-pr@master 完成 PR 文件检查,同样运行在指定的容器镜像环境中。

likedislike
CANN-robotCANN-robot成员
14 天前 添加了label:cann-cla/yes
cui_jiahao成员
14 天前 评论:

compile

likedislike
Ccui_jiahao成员
14 天前 update merge request[project id: 9516645, iid: 1099, commit_id: aa84a882e1b50e000c3f8a640c8ad333a2c8206e] virtual merging success
此处折叠了43条消息 查看更多
Larry成员
13 天前 评论:

/approve
/lgtm

likedislike
CANN-robotCANN-robot成员
13 天前 添加了label:approved
tanghaoran
tanghaoran成员
13 天前 评论:

/lgtm

likedislike
CANN-robotCANN-robot成员
13 天前 添加了label:lgtm
CANN-robotCANN-robot成员
13 天前 合入了pull request