Repository navigation
[不合併] develop rebase 到 v1.4.244 的 CI 驗證 - #94
audichuang wants to merge 356 commits into
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011LdpV7UCim1xUWLWDpgSsT
上游新增的 TAB_ID_RULES 以 Record<TabContentType> 列舉分頁種類,fork 的 git-graph 分頁沒有登記會讓 tc 失敗;它不是終端機,id 照原樣保留。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
負載高的全套測試裡,resetModules 後重新 import 花了 723ms,超過 200ms 的 timer 延遲,timer 在清除前就觸發。改成只算 restore 之後的觸發;拿掉清除時兩個測試仍會失敗。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
runs-on 改讀 repo variable FORK_RELEASE_RUNNER(設 orca-release 走 macmini,未設退回 macos-15); self-hosted 直接用登入鑰匙圈裡已信任的簽章身分,只有 GitHub 機器才匯入 p12、sudo 信任憑證、清理暫時鑰匙圈。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
macmini 實測 dryrun:pnpm store 上傳 6.5 分鐘、每個檔案向 Apple 時間戳伺服器簽章約 1 秒(共 6.7 分鐘), 都比 build 本身久。fork 不做 notarization,憑證效期到 2036,時間戳沒有用處。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
每個 release tag 存的快取,下一個 tag 讀不到(GitHub cache 只給同一個 ref 與預設分支),每次 hosted 白花 2.5 分鐘上傳; fork-dmg 用不到 git 歷史,完整 checkout 改成淺層,release 說明需要的 annotated tag 另外抓。 release 說明改成獨立步驟讓 dryrun 也會跑到;fork-release-dryrun-hosted-* 固定跑 GitHub 機器,讓退回路徑有得測。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…te 分區 - Changed files 樹狀的資料夾列也能右鍵複製路徑與 Copy Full Source - repo 切換器改成一列一個 worktree,帶 repo 的 badge 色塊,選單密度與其他選單一致 - branch 篩選把 local 與各 remote 分成區塊,remote 區省略重複前綴 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PCAZ1XcuRQXFvNrgYFgP8G
- 分頁列右上角加 Git Graph 按鈕(只在最右上那組,已開則聚焦) - 資料夾多 repo 側欄改成單一清單 + 底部固定面板,repo 色塊、branch 獨立灰字、0 不顯示、動作 hover 才出現,分成有變更/沒有變更兩組 - Git Graph 工具列:repo 切換器移到最左並加 repo 色條,新增 User / Paths 篩選鈕與清除 - commit 雙擊或 Enter 開全部差異,詳細窗格標題列加按鈕 - 變更檔案右鍵加 Show File History Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PCAZ1XcuRQXFvNrgYFgP8G
- 沒設 badge 顏色的 repo 依加入順序配黃金角色相,側欄、切換器、Git Graph 色條一致 - 選中 repo 的名稱與色塊回到面板工具列,不再另佔一列重複 upstream - Git Graph 搜尋框只顯示自由文字,author/path 由篩選鈕呈現 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PCAZ1XcuRQXFvNrgYFgP8G
- Show File History 一併納入 remote branch,不再漏掉只在 remote 的歷史 - 篩選 token 改成分段重組,引號內的值原樣保留並支援跳脫,不再互相改寫 - 多 repo 清單:方向鍵直接切換選取、再點目前 repo 不收起面板、背景刷新不會弄丟焦點、hover 動作不蓋住變更數 - repo 切換器搜尋改成子字串比對,會真的縮小清單 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PCAZ1XcuRQXFvNrgYFgP8G
- Git Graph e2e 改用 Commits 區頭按鈕的 data 屬性,避開分頁列同名按鈕 - 多 repo e2e 把 Changes 區塊限定在選中 repo 的面板,選中 repo 名稱改比對內層文字 - Paths 篩選鈕與最近路徑用 whitespace-pre,連續空格照實顯示 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PCAZ1XcuRQXFvNrgYFgP8G
- 沒選 commit 時詳細區收成窄邊,branch 標籤限寬,非目前分支訊息提高對比 - Git Graph 分頁的篩選與側邊欄 Commits 分開,預設 All branches,存在分頁狀態上,換 repo 只丟掉已選分支 - 分頁第一次載入自動選中目前分支最新的 commit;篩選沒結果時提供清除篩選與看全部分支 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PCAZ1XcuRQXFvNrgYFgP8G
… Source Control 開啟 - 資料夾工作區側邊欄與 Git Graph 分頁共用選中 repo;方向鍵切換時分頁延遲 250ms 跟上,避免每鍵重載 - Git Graph 工具列加「在 Source Control 開啟」;Commits 右鍵加 Show in Git Graph,找不到會往下多讀或提供清除篩選 - 分頁篩選以分頁狀態為準,A→B→A 不會帶回舊篩選;關閉分頁時清掉暫存;detached HEAD 自動選對 commit Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PCAZ1XcuRQXFvNrgYFgP8G
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PCAZ1XcuRQXFvNrgYFgP8G
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PCAZ1XcuRQXFvNrgYFgP8G
- 側邊欄切 repo 讓 Graph 跟上時保留鍵盤焦點,只有主動開啟或回到分頁才聚焦 Graph - 記住的 commit 選取改為依分頁保存,關閉分頁時清掉,重開會選目前分支最新 commit - 詳細區標題列加 Hide details,選了 commit 也能收成窄邊並記住 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PCAZ1XcuRQXFvNrgYFgP8G
- openGitGraphTab 送出一次性的聚焦請求,Graph 已在前景時也會聚焦選中的 commit 列 - 從右鍵選單或對話框觸發時短暫守住焦點,避免選單關閉把焦點還給側邊欄;側邊欄跟隨換 repo 不送請求 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PCAZ1XcuRQXFvNrgYFgP8G
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PCAZ1XcuRQXFvNrgYFgP8G
…rk-check-lint v1.4.237's lint script adds check:host-list-render-ratchet and check:mobile-shared-dependency-versions; fork renderer components and lockfile edits can trip either. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ipCode restore v1.4.236 makes path-based requestEditorSaveQuiesce take an autosave hold and return its release. The fork's multi-owner discard and ClipCode restore ignored it, so autosave of a restored file stayed off until reload. Both now go through requestEditorSaveQuiesceAll and release in finally. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…d ClipCode delete Since v1.4.236 a path quiesce takes an autosave hold that the caller must release. No test noticed when the fork's two-owner discard (repo + folder) or ClipCode restore's delete branch dropped that release, or when requestEditorSaveQuiesceAll kept the holds it took before another owner refused. Cover single and bulk discard after git succeeds, after git fails, and on a partial quiesce failure, plus the restore delete branch. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…hold release; unblock guarded-write scan - conflict-review-folder-owner.test.tsx: one review tab per repo in a folder, conflicts tracked under the repo key, the conflict file and the overview reads carry the repo's gitWorktreeId. - folder discard: holds stay taken while git is still running (deferred git), not only after the mocked call returns. - clipcode-restore-plan: pick the preview bucket without the `? 'overwrite'` text that editor-save-guarded-write-paths.test.ts reads as an overwrite-consent grant. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…-check fork-check-lint ran a hand-picked subset of upstream `pnpm lint`, and the rebase step only compared what a new release added, so checks from earlier releases stayed missing. Running them all turned up three fork violations, fixed here: - layout-writer ratchet: the fork's Git Graph tab writes editor layout the way upstream's own editor-tab openers still do; list it in the renderer baseline like them. - max-lines: the fork's gitWorktreeId field pushed workspace-session.ts to 301 lines; move upstream's buildSanitizedTabsByWorktree to its own file (provenance comment at the top). - WSL-move localStorage census: register the two fork modules that use localStorage. fork-lint-parity.mjs now fails when upstream lint has a step fork-check-lint neither runs nor excludes with a reason. fork-check-source-scans runs the src tests that read source text, which `vitest --changed` never selects because they import nothing the fork changed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
fork-source-scan-tests now scans every upstream unit root through discoverUnitFiles (so UNIT_EXCLUDE applies), recognises async fs reads, globs and repo-relative literals, skips six upstream tests that fail on macOS hosts at v1.4.237 too (Linux CI still runs them), and exits non-zero on an empty selection; the make recipe stops before vitest when it does. fork-lint-parity reads the recipe from the exact prerequisite line, strips '@', ignores comments, and both scripts are importable with vitest coverage. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
make fork-check-e2e runs the folder multi-repo e2e plus every spec the fork added or changed since FORK_BASE; fork-check-full reuses it, and a new "fork e2e specs" job runs it under Xvfb so "Fork PR checks passed" requires it, including on the unattended rebase PRs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
As a -j prerequisite, fork-check-e2e's Electron native rebuild could race the vitest run; a sub-make after fork-check keeps them sequential. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Tests that read package.json, Makefile, the pnpm workspace files or a tsconfig by repo-relative name were missed (10 more files, all green). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Guards such as export-let-function-initializer-ban and ssh-remote-powershell read source only via scanSourceTree, so the direct-fs check never picked them and --changed never reaches them. Treat scanSourceTree and readAllowlist calls as file reads; four more guards now run in fork-check-source-scans. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… git owner
The folder tab's overview read spreads upstream's active-tab load options ({ wakeWslDistro })
into the git-owner options; objectContaining let dropping that spread pass.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…r repo directory The dialog forwards initialCwd to its start hook, which passes it to the agent tab launch; no test covered that chain for an interactive Start. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…esh wake a stopped WSL distro Upstream stablyai#34222 rejects git:status on a stopped WSL distro unless the request carries wakeWslDistro, which useGitStatusPolling sets on the active workspace's first status. The folder panel's repo refresh is a parallel path: its open and manual sweeps now wake, polls and change nudges stay gated. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…the conflict dialog's repo cwd The WSL wake test now types its request (anti-slop rejects a bare object parameter) and checks that a save nudge stays gated. A conflict start without a saved agent opens the dialog with use-ai's editor, which upstream stablyai#31310 spreads over the panel's worktreeId and initialCwd props; pin that it carries the folder workspace and the repo directory. Two git-owner tests that guard seams join the seam list. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
上游 v1.4.243(stablyai#34053)新增 macOS helper orca-process-footprint,fork 的 Makefile computer-use target 沒建它;ad-hoc 的 PR 建置缺 helper 不會紅,只有 Developer ID 正式建置會丟錯,v1.4.243-fork.1 因此發版失敗。新增 fork-mac-helpers.mjs(進 fork-check-lint):上游 build:mac:release 跑的每個 build:*-macos,computer-use target 都要有,下次上游再加 helper 會在本機閘門與 PR CI 就紅。
- FORK.md:說明 fork-mac-helpers 檢查與 ad-hoc 建置抓不到缺 helper 的盲點; upstream-red 不跑單元測試,release commit 同步 .github/ 時第一輪 CI 會紅的處理方式。 - auto-rebase skill:審查修正 commit 推上去前先跑 make -k fork-check-static。
審查指出 fork-mac-helpers 依賴上游 build:*-macos 的命名慣例。新增 fork-verify-mac-helpers.cjs,在 make fork-dmg 打包後讀 builder config 的 mac.extraFiles,任何 MacOS/ helper 缺檔就紅,PR CI 的 ad-hoc 建置也會擋下。 另外 fork-mac-helpers 忽略 target 裡的註解行,並收掉只在內部用的 export。
auto-rebase skill 寫「修好後重跑 workflow 即可」,但 rerun 建的仍是 tag 指的 同一個 commit。v1.4.243-fork.1 缺 helper 就是靠修正 PR 合併後發 fork.2 解決; skill 與 FORK.md Release 改寫成這個做法,並要求筆記寫明立刻發 N+1。
…te keys Upstream stablyai#22056 gates catalog keys no source references; these two have had no caller since the Git Graph branch list moved to Local/remote sections. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… title Upstream stablyai#34610 requires a title for every static keybinding id (keybinding-title-copy.ts satisfies Record<StaticKeybindingActionId, ...>). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…u, tr and zh-Hant locales Upstream v1.4.244 adds four locales; fork-locale-parity requires every fork key in each. Only fork keys are inserted, at en.json's position. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Covers useEditorPanelFileContentLoader's options.gitWorktreeId when no open tab carries an owner; removing that fallback turns the new case red. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
本機閘門開始 |
…e folder workspace A detected agent launched for a folder's repo must open in the folder workspace at the repo directory; reverting worktreeId to the active worktree turns the new case red. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
e623c2d to
da3e789
Compare
|
盲審開始(head da3e789) |
|
CI 第 1 輪(run 40818009744,head da3e789):只有 |
…eletion The unstaged branch of loadDiff sets originalMissing/modifiedMissing next to upstream's new tooLarge line; removing those two lines turns the new case red. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
第 5 步修正輪 1 開始:補 file-diff.ts unstaged 刪除的 missingSides 測試(C1 的缺口落在上游新增的 tooLarge 行旁) |
|
第 2 輪審查開始(head 7134339) |
…r had Guards originalMissing in loadDiff's unstaged branch on its own; forcing it to false turns the new case red. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
第 5 步修正輪 2 開始:Claude r2 指出 unstaged 分支的 originalMissing 單獨改錯不會紅,補一例 |
|
第 3 輪審查開始(head f25cc32):Codex 同 thread 與新 Claude 審查者只看補的一例 |
|
CI:head f25cc32 的 run 40822028537(Fork PR Checks,attempt 1)全綠,15 個 job、 |
審查結果(盲審,head da3e789 → 修正後 f25cc32)
發現與處理
Mutation 證明(合格的 MANUAL)range-diff 12 個
importer-sweep 人工確認(B)上游改 本機: |
|
發版開始 v1.4.244-fork.1 |
|
v1.4.244-fork.1 已發佈:https://github.com/audichuang/orca/releases/tag/v1.4.244-fork.1 (release run 40823825182 綠,Homebrew cask 1.4.244-fork.1)。develop = main = f25cc32;舊 develop 備份 backup/develop-v1.4.243-20261029T041800Z。 |
只用來在 rebase 後的 develop 上跑 Fork PR Checks,不會合併。base 是指向上游 v1.4.244 的暫時分支
ci-base/v1.4.244(對 develop 開會因兩份歷史衝突而跑不了 CI),驗完就刪。這次是 MANUAL(有手動解的衝突、照筆記丟掉 7 個 cherry-pick、7 個額外 commit),由 auto-rebase 依 FORK.md「Unattended merges」判斷能否自動移動develop;不能的話會在留言寫出移動指令。Summary
=、12!、8<、7>。rerere 沒有重放舊解法;locale 檔由 merge driver 合好,沒有停下來。<:f4d98b74e3…8b64ec281a(上游 main 的 7 個 CI commit)刻意丟掉的 7 個 cherry-pick:4e3b0c1fbd(ci: run hourly and daily dev builds on free hosted runners stablyai/orca#34585)、f87f545202(ci: move secondary, scheduled and contract workflows to GitHub-hosted runners stablyai/orca#34568)、5791e58c0c(ci: narrow churny cache keys and move PR-local cache saves to main stablyai/orca#34600)、d5d565db6a(ci: keep hourly and daily macOS builds on Blacksmith stablyai/orca#34640)、e6469b6a48(ci: seed hosted Linux packaging and mobile bundle caches on main, and stop PR-local saves stablyai/orca#34672)、8b5087529e(ci(adhoc): package Mac architectures on 6-vCPU runners stablyai/orca#34673)、bca26276e6(ci: restore main's Vitest transform cache in PR unit shards stablyai/orca#34512)。v1.4.244 已含這 7 個上游 commit;用標題在v1.4.243..OLD_DEVELOP各找到剛好一個,rebase -idrop。丟完後config/scripts/orcad-windows-prebuild-cache.mjs與 v1.4.244 相同。fontKeywordTypeface/fontKeywordTypography譯文 →rebase --skip。known-resolutions.md,canary 2026-10-29 對上游 main c66d873 解好;c66d873ff5 在 v1.4.244 之後,衝突檔逐一與 canary 檔比對):d6918c7a1d…/f231d1cde6…(buildDiffResult第 6 個位置參數tooLarge):照做。最終 diff-result.ts、file-diff.ts、submodule-diff.ts、commit-diff.ts、git-diff-compare-types.ts、DiffSectionBody.tsx 與 canary 檔逐位元組相同。c1262516b9…(sonner.tsx import):照做,與 canary 檔相同。9015f13735…/ef6e661449…/70a6f7d184…(flaky-test-pattern-baseline.txt):照做,採 v1.4.244 檔、插回 fork 的 19 行,與 canary 檔相同(這個檔 v1.4.244 與 c66d873 相同)。1c58ed636c…(keybinding-title-copy.ts 要每個快捷鍵的標題):照做,額外 commit。76d4b01969…(死 keyGitHistoryGraph.branches/.remote):照做,en-runtime-required.json 衝突採 vNEW 側;刪 key 是額外 commit。8d908764dc…(上游自己的 revert):不用處理。b62f9bf624…/52a43ed99e…/4b1967bdd8…/fe3eb45b85…(上游新增 zh-Hant、ru、tr、de):照做,用 canary 譯文表插 173 個 fork key × 4 語系;FORK.md 的語系數改成 eleven。額外 commit。options?.gitWorktreeId」:照做,補測試(額外 commit)。worktreeId: launchWorktreeId」:照做,補測試(額外 commit)。GitDiffBinaryResult兩欄都留(上游tooLarge?在前、forkmissingSides?在後);file-diff.ts 宣告tooLarge與originalMissing/modifiedMissing都留。tooLarge = false, skipRenderLimit = false(中間態);file-diff.ts 呼叫filePath, tooLarge, skipRenderLimit。Promise.resolve<GitBlobReadResult>({ … exists: false }),fork 的missingSides區塊自動合入。DiffTooLargeNotice+Suspense;渲染tooLarge ? <DiffTooLargeNotice /> : isImage ? <Suspense>…。GitDiffReadOptions;參數tooLarge = false, readOptions: GitDiffReadOptions = {};file-diff.ts 呼叫tooLarge, options。./git-diff-read-options;submodule-diff.ts 呼叫innerPath, tooLarge, options。Evidence
上游基準(
fork-upstream-red.mjs v1.4.244,upstream-red.md全文;唯一的紅check:path-literal-ratchet是 fork-check-lint 本來就排除的步驟,起因是 v1.4.244 的 f37e6b2 把 pr.yml 同步到上游 main、列了 v1.4.244 還沒有的fish-wsl-cwd-report.node-pty.test.ts,不用處理):Upstream v1.4.244 (b8ec5c8): static checks on the clean release
check:path-literal-ratchet (fork-check-lint skips it: EXCLUDED)
origin/main commits after v1.4.244 touching the files it names (cherry-pick candidates):
另外在乾淨 v1.4.244 跑了讀
pr.yml的 27 個 config/scripts 測試:13 個紅都是 macOS bash 3.2 的差異(mapfile: command not found、MOBILE_CI_ARGS[@]: unbound variable),在 macOS 上沒有訊號,以 Linux CI 為準。make fork-footprint(上一次 v1.4.243:production 181 files +1665 -619,test 8、locale 8 files +1751、baseline 3、other 4):production 多 1 個檔(keybinding-title-copy.ts 的 Open Git Graph 標題,上游 stablyai#34610 要求),行數持平;locale 多 3 個檔、+954 行是上游新增 4 個語系後補的 fork 譯文。
本機閘門:
make -k fork-check-static第 1 輪只有 changed-code quality gate 紅(新測試的[] as string[]),改成具型別的區域變數後 amend 進同一個 commit(da3e789505);第 2 輪全綠(tc、quality、上游 lint 35 步與 fork lint)。make fork-check-seams83 檔 484 測試全綠。Mutation(兩個「fork 自身問題」的測試 commit,只改 fork 測試檔):拿掉
useEditorPanelFileContentLoader.ts的options?.gitWorktreeId ??→× reads through the requested git owner when no open tab carries one;recovery-launch.ts的worktreeId: launchWorktreeId改回activeWorktreeId→× starts a detected agent in the folder workspace at the repo directory。CI 與審查結果見留言。
Merge Danger
不合併。
develop只由 auto-rebase 第 6 步以--force-with-lease=develop:1eab89dab5移動到 CI 驗過的 head;驗證期間有 PR 合進 develop 時 lease 會失敗、這次作廢重來。🤖 Generated with Claude Code