ci: warn PR authors about slow ci-sim runs - #1031
Merged
zhangstevenunity merged 4 commits intoJul 29, 2026
Merged
Conversation
mouliangyu
marked this pull request as ready for review
July 29, 2026 02:35
A5 板测失败
失败用例
|
A3 板测失败
失败用例
|
A3 板测失败详情:PR #1031syncall_binding
comm_p2p_binding_variants
comm_p2p
|
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.
背景
ci-sim运行时间增长时,目前只能由作者主动查看 workflow,缺少一个不会阻塞门禁的持续提醒机制。修改
ci-sim完成后由受信任的workflow_runwatchdog 统计vpto-sim-validation从started_at到completed_at的实际执行时间,不包含 runner 排队时间。ci-slowlabel,并在 PR Conversation 中创建或更新一条 bot 评论提醒作者;后续恢复到预算内时移除 label,并将同一条评论更新为 resolved,避免多次提交产生重复评论。CI_SIM_SOFT_TIMEOUT_MINUTES调整。ci-sim门禁结果。actions/github-script注入的 Octokit 调用 GitHub API,观察逻辑保留在独立 JavaScript 文件中,避免手动维护认证、REST URL、分页和重试。这是任务完成后的软告警,不会在运行达到预算时中止任务或实时发表评论。
验证
node --check .github/scripts/ci_sim_duration_warning.js.work/tools/actionlint .github/workflows/watchdog.ymlgit diff --check2h 27m 43s超过 90 分钟预算,并计划添加ci-slow、创建评论,未写入任何状态。