[ac#1124] gate-files 登记簿的精确条数补到 17 —— alpha 的 CI 恒红 - #1127
Merged
Conversation
`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
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 freeto 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.
问题
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:289跑bash 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.ts4 fail」)。验证
bash scripts/assert-gate-files.shexit 1,── bun exit=0 · 实际通过 17 条 · 登记精确条数 10同源
alpha-platform#392是同一天、同一形态的另一例(新增判据 → 忘同步登记 → CI 恒红 → 无人察觉)。两次都是本地判绿后--admin合并的,而本地跑的门集合与 CI 的门集合不完全一致 —— 要不要为此立闸,已写进#1124交 owner 裁。Fixes#1124
🤖 Generated with Claude Code
https://claude.ai/code/session_01QHDS2BFKuzm9uNH1svU2oj