Repository navigation
chore(ci): 节省 runner 时间:路径判断、并发取消、出口探测 - #51
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
问题
self-hosted runner 时间被三类开销浪费:
npm ci+ 全站构建,但 CI 对这些改动没有验证价值;checkout三次重试各等 2 分钟以上,一次故障白跑约 7 分钟。改动
concurrency:同一 PR 连推只保留最新一次任务。timeout-minutes: 20兜底。.github/**、README.md、LICENSE*时跳过安装和构建,但 job 仍以成功状态上报build检查(保持必需检查可合并)。验证
已在 rdk_s_doc 完成 pilot:#149 合入前后分别验证了探测快速失败(83 秒 vs 原 7 分钟)、元数据 PR 跳过构建(
doc-quality/npm ci/build均 skipped、job 绿)、以及 Deploy 带探测正常运行。🤖 Generated with Claude Code