Skip to content

定时全量失败自动开 issue,转绿自动关 - #3428

Merged
ranxianglei merged 1 commit into
masterfrom
2026-10-16_sched-red-issue
Oct 16, 2026
Merged

ranxianglei merged 1 commit into
masterfrom
2026-10-16_sched-red-issue

Conversation

@ranxianglei

Copy link
Copy Markdown
Owner

干什么用

定时全量(30 分钟智能 cron)挂了 → 自动开一个跟踪 issue;下一次定时全量转绿 → 自动把开着的红 issue 全关掉。代替邮件通知(owner 选择不开邮件)。

规则

  • 红灯时:开 issue,标题 定时全量测试失败: <短sha>(标题不带 "ci",不然调度 bot 不认),正文列出失败腿名 + run 链接;同一 head 已有开着的 issue 就评论不重复开
  • 转绿时:关闭所有开着的红 issue 并留评论
  • 只对 schedule 事件生效;push/pull_request 的红自有 required checks 把关
  • issue 作者是 github-actions[bot],label scheduled-red(首次运行自动创建)

注意一个坑

用 GITHUB_TOKEN 开的 issue 不会触发仓库里的 GitHub Actions workflow(防递归)。如果调度 bot 是用 Actions 监听 issue 事件实现的,它看不到这些 issue;如果是外部服务(webhook/ework)就没问题。已知的话忽略这条。

验证

  • bash 语法 + 三条分支(红/绿/cancelled)本地模拟通过
  • YAML 解析通过

…auto-closes it

Owner opted out of email notifications (2026-10-16): a red scheduled
run opens issue '定时全量测试失败: <shortsha>' (title avoids 'ci' — the
triage bot does not auto-dispatch titles containing it), a later green
scheduled run closes every open one. Red ticks on the same head comment
on the existing issue instead of stacking new ones.
@github-actions

Copy link
Copy Markdown
Contributor

📦 Built Package Artifact

Branch: 2026-10-16_sched-red-issue (c00b295)

Option A — Install this exact build (recommended)

npm install -g billion-context@0.0.4030-pr.3428.04f1556

This exact version is immutable and reproducible. The rolling pr tag tracks the newest test build across all PRs.

Option B — Download artifact

  1. Download the artifact from the Actions run
  2. Extract the tarball and install:
tar xzf billion-context-pr3428.tgz
npm install -g package

Install instructions are refreshed on each push.

@ranxianglei
ranxianglei merged commit 384bdf6 into master Oct 16, 2026
38 checks passed
@github-actions

Copy link
Copy Markdown
Contributor

📦 Merged Build Published

This merge to master was published as 0.0.496-master.384bdf6 (rolling master tag).

npm install -g billion-context@0.0.496-master.384bdf6  # this exact build
npm install -g billion-context@master  # always the newest merged build

npm view billion-context@master prints the current version at any time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant