Skip to content

[ac#1124] gate-files 登记簿的精确条数补到 17 —— alpha 的 CI 恒红 - #1127

Merged
jinjunnn merged 1 commit into
alphafrom
fix/1124-gate-files-count
Aug 25, 2026
Merged

[ac#1124] gate-files 登记簿的精确条数补到 17 —— alpha 的 CI 恒红#1127
jinjunnn merged 1 commit into
alphafrom
fix/1124-gate-files-count

Conversation

@jinjunnn

Copy link
Copy Markdown
Owner

问题

alpha 的 CI 今天三次 failure(07:55 / 08:49 / 09:51),根因是一条登记没跟上代码。

19fdd845a(PR #1107,#1106 修复,04:11 合)给 packages/ui-mac/src/main/cloud-mcp-oauth.test.ts 加了 126 行 / 7 条用例,同一 commit 没有触碰 scripts/gate-files.tsv。登记 10、实际 17

.github/workflows/alpha-ci.yml:289bash scripts/assert-gate-files.sh ⇒ 这条红就是 CI 红。

恒红闸门的代价不是少拦一个坏输入,而是它训练每个人忽略这道闸 —— 而 assert-gate-files 恰恰是「判据文件不得被静默删空 / 悄悄改条数」的唯一机器判据(#844:下界留余量时有用例被删不会红,所以它判精确条数)。

改动

用脚本自己的写回口径 bash scripts/assert-gate-files.sh --update,只改那一行的数字(10 → 17)。不动任何测试、不动任何生产代码 —— 新增的 7 条用例本身合法(PR #1107 的变异复验点名过「摘注入 doom 分支 ⇒ cloud-mcp-oauth.test.ts 4 fail」)。

验证

  • 修前:bash scripts/assert-gate-files.shexit 1,── bun exit=0 · 实际通过 17 条 · 登记精确条数 10
  • 修后:exit 0
  • diff 一行,只有行首数字变了

同源

alpha-platform#392同一天、同一形态的另一例(新增判据 → 忘同步登记 → CI 恒红 → 无人察觉)。两次都是本地判绿后 --admin 合并的,而本地跑的门集合与 CI 的门集合不完全一致 —— 要不要为此立闸,已写进 #1124 交 owner 裁。

Fixes#1124

🤖 Generated with Claude Code

https://claude.ai/code/session_01QHDS2BFKuzm9uNH1svU2oj

`19fdd845a`(PR #1107,`#1106` 修复,2026-08-25T04:11:48Z 合)给
`packages/ui-mac/src/main/cloud-mcp-oauth.test.ts` 加了 126 行 / 7 条用例,
**同一 commit 没有触碰 `scripts/gate-files.tsv`**(实查 `git show 19fdd84 --stat --
scripts/gate-files.tsv` 为空)。登记 10、实际 17。
`.github/workflows/alpha-ci.yml:289` 跑 `bash scripts/assert-gate-files.sh`
⇒ 这条红就是 CI 红的原因(今天 07:55 / 08:49 / 09:51 三次 alpha-ci failure)。
恒红闸门的代价不是少拦一个坏输入,而是它训练每个人忽略这道闸 —— 而
assert-gate-files 恰恰是「判据文件不得被静默删空/悄悄改条数」的唯一机器判据
(`#844`:下界留余量时有用例被删不会红,所以它判的是精确条数)。
用脚本自己的写回口径 `--update`,只改那一行的数字。
不动任何测试、不动任何生产代码 —— 新增的 7 条用例本身合法
(PR #1107 的变异复验点名过「摘注入 doom 分支 ⇒ cloud-mcp-oauth.test.ts 4 fail」)。
修后 `bash scripts/assert-gate-files.sh` exit 0。
同源:`alpha-platform#392` 同一天同一形态(新增判据 → 忘同步登记 → CI 恒红 → 无人察觉)。
Fixes#1124
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QHDS2BFKuzm9uNH1svU2oj
@jinjunnn
jinjunnn merged commit 351a81f into alphaAug 25, 2026
Sign up for freeto 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.

[BUG][P1] assert-gate-files 在 alpha 上恒红 —— PR #1107 加了 7 条用例没同步登记簿,CI 今天三次 failure

1 participant

@jinjunnn