Skip to content

ci(darwin): macOS runner 从 macos-14 换成 macos-15 - #2637

Merged
deepcoldy merged 1 commit into
masterfrom
ci/macos-15-runner
Oct 31, 2026
Merged

deepcoldy merged 1 commit into
masterfrom
ci/macos-15-runner

Conversation

@deepcoldy

@deepcoldy deepcoldy commented Oct 31, 2026 •

Copy link
Copy Markdown
Owner

改了什么

GitHub 的 macos-14 runner 镜像将于 2026-11-02 下线,下线前会做计划性的停用演练(brownout)。演练期间,跑在 macos-14 上的 job 还没开始执行就会被取消,GitHub 的注释原文是:

This job failed because of a scheduled macOS 14 runner image brownout. macOS 14 runner images will be retired on November 2, 2026.

master 和 #2624 的 bun-binary-darwin 都已经因此被取消过。按维护者定的方案 A,所有 macOS runner 统一换成 macos-15,它和 macos-14 一样是 arm64:

文件 job 改动
.github/workflows/ci.yml bun-binary-darwin runs-on: macos-14 → macos-15
.github/workflows/release.yml desktop(Electron 签名与公证) 同上
.github/workflows/release.yml bun-binaries 的 darwin 腿(matrix os) 同上
.github/workflows/release.yml sign-darwin-binaries(Developer ID 签名) 同上

另外同步了两处描述「当前用哪个 runner」的注释。记录历史实测的注释(「3.18.14 时 macos-14 runner 放过了坏签名」之类)原样保留,因为它们说的是当时的 runner。

核对项

  • Xcode、工具链版本有没有写死:没有。两个工作流里都没有 xcode-select、DEVELOPER_DIR、setup-xcode 或 SDK 版本,用的是 runner 默认的 Xcode;xcrun stapler、codesign、spctl 都按名字调用。electron-builder.yml 只设了 hardenedRuntime、entitlements 和 x64ArchFiles,没有设最低系统版本或 SDK。
  • 产物名、缓存键里有没有带 runner 名:没有。产物名是 botmux-macos 和 bun-binaries-${{ matrix.artifact }}(取值 darwin),与 runner 无关;两个工作流都没有用 actions/cache,也没有任何 key 引用 runner.os 或 matrix.os。
  • 交叉编译的覆盖不变:macos-15 仍是 arm64,所以 darwin-x64 仍然是交叉编译出来的,ci.yml 那段注释里说的 v3.19.0 签名缺陷,仍然只会在这个组合下复现、也仍然会被拦住。test/release-darwin-codesign-gate.test.ts 有一条用例检查「ci 的 darwin runner 与 release 的一致」,按关系比较,没有写死名字,改后照常通过。

合入前的 darwin 构建实测

现有的 release.yml workflow_dispatch 不能用来做这次实测,原因有三:

  • 它会 checkout 已有的 tag,不会构建本分支的代码;
  • 随后的 refresh-desktop-assets 会把 macOS 产物替换到已有的 GitHub Release 上;
  • 它需要 macos-signing 环境审批,并且会提交 Apple 公证。

所以单独建了一个不合入的探针分支 ci/macos-15-runner-probe。它基于本分支,只把 release.yml 换成只构建 darwin 的版本:

  • 从本分支的 bun-binaries darwin 腿和 desktop job 原样取出构建步骤,runner 用 macos-15;
  • 不碰 tag、npm 和 GitHub Release,不用签名 secrets,不提交公证,不用 environment;
  • 产物只作为 workflow artifact 保留。

用 gh workflow run release.yml --ref ci/macos-15-runner-probe 触发。

实测结果:run 41210228695 全绿,runner 镜像为 macos-15-arm64。

job 结果
probe-darwin-bun-binaries(原 bun-binaries 的 darwin 腿) success。两个二进制 codesign --verify --strict 都通过(valid on disk / satisfies its Designated Requirement),其中 darwin-x64 是交叉编译的;skia native 两者都在;host-arch smoke 全部通过(codesign、capabilities、version、selfcheck、plugin service/supervisor、self-spawn、dashboard、http、frontend、self-destruct guard);产出 artifact bun-binaries-darwin(约 152 MB)
probe-desktop-unsigned(原 desktop 的构建部分) success。electron-builder 产出 Botmux-…-mac-universal.dmg 与 .zip;Botmux.app/Contents/MacOS/Botmux 是含 x86_64 和 arm64 两种架构的 universal Mach-O;产出 artifact botmux-macos-probe-unsigned(约 675 MB,保留 3 天)

探针没有覆盖的部分:Developer ID 签名、Apple 公证与 stapler 校验(需要 macos-signing 环境)、sign-darwin-binaries job。这些会在下一次真实发版时第一次在 macos-15 上执行。

没有发布、没有打 tag、没有上传 release:探针分支的 release.yml 里没有对应步骤,也没有 secrets 和 environment。探针分支已删除。

签名与公证

维护者确认这次不验签名和公证:CI 全绿、不签名的 darwin 探针跑通即可合入。Developer ID 签名和公证会在下次发版时第一次在 macos-15 上跑,那次发版要留意 darwin 的签名步骤,即 sign-darwin-binaries 和 desktop 两个 job 里的签名、公证与 stapler 校验。

影响面

  • 只改 CI 和发版工作流的 runner 镜像,不改代码,用户侧行为不变。
  • 发版:下一次打 tag 时,darwin 的 CLI 二进制、Developer ID 签名和 Electron 桌面包都会在 macos-15 上构建。签名和公证这两步要用 macos-signing 环境里的证书和 Apple 凭据,这次探针没有覆盖,会在第一次真实发版时首次在 macos-15 上执行。
  • 没有改到其它任务组的文件。

测试

npx vitest run test/release-darwin-codesign-gate.test.ts test/release-ancestry-pin.test.ts test/ci-musl-gate.test.ts \
  test/ci-unit-shards.test.ts test/ci-glibc-baseline-gate.test.ts test/release-draft-until-assets.test.ts \
  test/binary-self-update.test.ts test/test-hygiene.test.ts
#  Test Files 8 passed, Tests 187 passed

本 PR 自己的 CI 里,bun-binary-darwin 就是在 macos-15 上跑的,这一项的结果也就是 PR 侧的实测。

来源:维护者确认的方案 A;11-02 前需要合入。

🤖 Generated with Claude Code

GitHub 的 macos-14 runner 镜像 2026-11-02 下线,下线前已在做计划性停用演练,
bun-binary-darwin 等 job 因此被直接取消。ci.yml 的 bun-binary-darwin 与 release.yml
的 desktop、bun-binaries 的 darwin 腿、sign-darwin-binaries 统一换成 macos-15(同为
arm64,darwin-x64 仍是交叉编译,ci 与 release 的 runner 继续一致)。工作流里没有写死
Xcode / SDK 版本,产物名与缓存键也不含 runner 名。

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@deepcoldy
deepcoldy merged commit ebf9695 into master Oct 31, 2026
15 checks passed
@deepcoldy

Copy link
Copy Markdown
Owner Author

已合入 ebf9695(15:36Z)。合后核验:主干提交标题带 (#2637)、正文为空;落地树与「合并前 master + 审过的 head 800ab48」的合并树一致;该 head 上 15 项检查全绿(含 macos-15 上的 bun-binary-darwin);主干 ci.yml 已无 macos-14,release.yml 三处均为 macos-15;master CI 已在新提交上开跑。合入前的 darwin 构建实测见 PR 描述(run 41210228695,探针分支已删)。未发版、未部署。

@deepcoldy
deepcoldy deleted the ci/macos-15-runner branch October 31, 2026 16:45
deepcoldy pushed a commit that referenced this pull request Oct 31, 2026
同步 #2637:darwin 编译/签名门的 macOS runner 从退役的 macos-14 换成
macos-15(ci.yml / release.yml runs-on + 注释,release-darwin-codesign-gate
测试跟随)。纯 CI 改动,与本 PR src/test 零交集;master 上 darwin 已在
macos-15 实跑成功,消除此前 macos-14 供给侧取消。

Co-Authored-By: Claude Code <[email protected]>
@github-actions

Copy link
Copy Markdown

@deepcoldy 合入 master 后的 Midscene E2E 失败:Feishu live Midscene 失败。

这次运行覆盖 378fb04…ebf9695be(3 个提交),同批合入的还有 #2634 #2627,失败不一定由本 PR 引起。

用例 跑道 状态 失败信息
Claude basic bot flow feishu-core-claude failed waitFor timeout: Based on the screenshot, the middle column displays a welcome message "欢迎加入群组" (Welcome to the group) and system notifications about group creation and settings, rather than a list o…
Kimi basic bot flow feishu-core-clis failed waitFor timeout: Based on the screenshot, in the main content area (right panel), there is a stream card from "Kimi" located above the text bubble containing "ACK-e2e-kimi-1793466100212". This card c…
Gemini basic bot flow feishu-core-clis failed waitFor timeout: Based on the screenshot, the main content area displays a topic conversation. I am examining the messages from "Gemini".
Claude group reply mode new-topic starts a session per topic feishu-core-group-modes failed Failed to continue: The page remains completely blank after multiple wait attempts and a reload. Unable to find any UI elements including the "Topics" filter tab to click on.

@github-actions

github-actions Bot commented Nov 1, 2026

Copy link
Copy Markdown

🚀 Released in v3.56.0

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