Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

CI: a superseded dispatched run's pending status can overwrite the newer run's result (typescript.yml, python.yml)

未关闭 适合新手
#5,223 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
82/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
github-actions, typescript
领域
ci-cd

调研方向

首先,将 typescript.yml 和 python.yml 中的 dispatch-status-pending 与 dispatch-status 中检查是否存在更新运行的逻辑进行比较,然后找到这些 job 运行的 pending 脚本。将相同的检查添加到 pending 路径,并按照 issue 中的描述,使用 stub gh 运行 pending 脚本。完成标准是:存在更新的已 dispatch 运行时,不发布 pending 状态,并且测试覆盖该情况。

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

描述

chore v2

In typescript.yml and python.yml, the dispatch-status-pending job posts its (dispatched) status as pending without first checking for a newer dispatched run on the same commit. The dispatch-status result job does check (#5178), and it posts nothing when a newer run exists.

How it happens

  1. Run A is dispatched on commit X, and then run B.
  2. B finishes and posts success (or failure).
  3. A's pending job runs after that and posts pending. Two ways this can happen:
    • A is re-run after B finished. A re-run keeps its run ID, so it is still the older run.
    • A's pending job starts late, which the ordering allows when the two runs are not in one concurrency group.
  4. A's result job finds B, the newer run, and exits without posting.

The status stays pending until someone dispatches the workflow again.

Expected

The pending job runs the same newer-run check as the result job and posts nothing when it finds one. A test runs the pending script against a stub gh to pin this.

Found by Copilot on #5222. That PR fixes the two reporters it adds (dco.yml, everything-mcp-diff.yml). This issue covers the two existing ones, which that PR leaves alone.

主要语言
TypeScript
星标
91.4k
派生
11.8k
平均合并
6 小时 39 分钟
30 天内合并 PR
146

环境准备

从这里开始

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

modelcontextprotocol/servers 的其他 Issue

查看 modelcontextprotocol/servers 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

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