Skip to content

ci(fork): auto-rebase 在閘門前先列出上游自己紅的 static 檢查 - #87

Merged
audichuang merged 3 commits into
developfrom
ci-fork/upstream-baseline-report
Oct 27, 2026
Merged

audichuang merged 3 commits into
developfrom
ci-fork/upstream-baseline-report

Conversation

@audichuang

Copy link
Copy Markdown
Owner

為什麼

auto-rebase 原本要等本機閘門紅了,才知道上游 release 自己就過不了某項檢查(v1.4.242 的 check:test-file-runners),然後到乾淨的 tag 上重跑那一步、手動在上游 main 找修正。run 141 為此多跑一輪 static。

改了什麼

  • config/scripts/fork-upstream-red.mjs <tag> <dir> <out>:在乾淨的上游 tag worktree 跑 pnpm tc、上游 pnpm lint(每一步)與 check:daemon-protocol-crossing,寫出 <out>.md/.json:哪些上游自己就紅、各自的輸出、<tag>..origin/main 裡碰過那些檔的 commit(cherry-pick 候選)。fork-check-lint 本來就跳過的步驟(EXCLUDED)會標出來。
  • auto-rebase skill:第 1 步讀完筆記就在背景跑它(跟 rebase 並行,冷啟動約 40 秒);第 2 步在第一輪閘門前讀報告、貼進 PR、先 cherry-pick 上游修正。閘門裡紅、報告裡沒有的步驟就是 fork 要修的。
  • FORK.md「Who checks what」記一行。

只是報告,不豁免任何檢查:FORK.md 明訂 fork-check 不加自動豁免,CI 仍是唯一 gate。範圍只有 static;整套單元測試、e2e 仍照原本的「CI 紅 → 重跑一次 → 乾淨 vNEW 對照」。

驗證

🤖 Generated with Claude Code

https://claude.ai/code/session_01C9qFZaYoGq8pJo8Qr6WVoh

audichuang and others added 3 commits October 27, 2026 11:07
The auto-rebase only learned that a release fails one of its own checks
after its local gate went red (v1.4.242's check:test-file-runners), then
re-ran the step on a clean tag and searched upstream main by hand.

fork-upstream-red.mjs runs pnpm tc, upstream's pnpm lint and
check:daemon-protocol-crossing on a clean worktree at the tag and writes
which fail, their output, and the upstream main commits since that touch
the files they name. The auto-rebase starts it beside the rebase (about a
minute cold) and cherry-picks upstream's fixes before the first gate
round. It is a report only: no check reads it to pass.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01C9qFZaYoGq8pJo8Qr6WVoh
@audichuang
audichuang merged commit fc95154 into develop Oct 27, 2026
15 checks passed
@audichuang
audichuang deleted the ci-fork/upstream-baseline-report branch October 27, 2026 03:48
audichuang added a commit that referenced this pull request Oct 27, 2026
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