nodejs / nodejs/node-core-utils

Cancelled GitHub CI rerun after success is treated as failure

未关闭
#633 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

主要语言
JavaScript
星标
313
派生
137
平均合并
2 天 8 小时
30 天内合并 PR
24

描述

PR: https://github.com/nodejs/node/pull/43085
Action rerun attempt: https://github.com/nodejs/node/actions/runs/2320332585/attempts/7
git-node land output: https://github.com/nodejs/node/pull/43085#issuecomment-1126858386

At the moment of landing, the latest run of that action was cancelled, there were 5 prior successful runs, and GitHub UI reported everything as green.
However, ncu treated it as Last GitHub CI failed error, which is either wrong (not sure if easily fixable, as it requires failproof checking previous attempts) or confusing (Last GitHub CI cancelled might be a better error message).

Details: in PRChecker.checkGitHubCI(), commit.checkSuites.nodes[2] for this case was

  {
    app: { slug: 'github-actions' },
    conclusion: 'CANCELLED',
    status: 'COMPLETED'
  }

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

从 PRChecker.checkGitHubCI() 开始,检查如何解释 commit.checkSuites.nodes,并使用关联的 PR、操作尝试和 git-node land 输出作为复现上下文。验证在之前的运行均成功后,最新的 GitHub Actions 运行被取消时的行为。完成的标准是,报告的 CI 状态和错误消息准确反映该情况,并且有覆盖该情况的测试。

由索引模型根据 Issue 内容生成。

评估

技术栈
javascript
领域
cli
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
冷清
描述清晰度
基本清楚
新手友好度
55/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。