Repository navigation
ci(release): avoid duplicate pnpm cache writes in joint releases - #5277
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
commit: |
#5278) * ci(release): skip the Electron PTY rebuild for standalone CLI installs * test(release): handle PTY test registration explicitly * ci(release): build native binaries alongside npm publication (#5280) * ci(release): build native binaries alongside npm publication * ci(release): compress native downloads in parallel by platform (#5281) * ci(release): compress native downloads in parallel by platform * ci(release): reuse the tested desktop renderer for stable installers (#5282) * ci(release): reuse the tested desktop renderer for stable installers * ci(release): share the verified CLI web bundle across native targets (#5283) * ci(release): share the verified CLI web bundle across native targets * ci(release): build only publishable npm workspace closures (#5284)
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 4f6c5ce635
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
|
@codex review |
|
Codex Review: Didn't find any major issues. Bravo. Reviewed commit: ℹ️ About Codex in GitHubCodex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback". |
The fork's release workflow is gated to MoonshotAI with publishing disabled, and its CI has no desktop-e2e/e2e-smoke/layered-qa workflows; record MoonshotAI#5277, MoonshotAI#5092, MoonshotAI#5088, MoonshotAI#5084, MoonshotAI#5309 and MoonshotAI#5264 accordingly.
Requirement or Bug
CLI 和 Desktop 同时发正式版时,同一操作系统和架构的两个打包任务使用相同的 pnpm 依赖缓存。在 Desktop 1.4.2 的 Intel Mac 构建中,安装包已经上传,任务却又花了 84 秒尝试保存缓存,最后因为 CLI 已占用同一个缓存键而失败。
Bug Reproduction Steps
查看一次缓存未命中的联合发版,对比 CLI 和 Desktop 两个 Intel Mac 任务的
setup-node日志:两者使用相同的缓存键,结束时也都尝试写入。Root Cause
两个任务都会在构建结束后独立打包并保存 pnpm 依赖缓存。GitHub Actions 的缓存一旦写入就不能覆盖,因此只有一个任务能保存成功。
Code Changes
发布计划包含新的 CLI 版本,或该版本的 Git 标签指向本次发布提交时,由 CLI 保存缓存。Desktop 仍从同一个缓存键恢复依赖,但不再重复写入。如果发布计划中保留的是旧提交已发布的 CLI 版本,则仍由 Desktop 保存缓存。
Behavior Changes and Affected Users
manifest.json。附件已齐全则不覆盖发布流程测试已通过,缓存键也已与 CLI 2.7.2 的实际写入日志核对。在 macOS 上使用该版本的真实 npm 元数据、带注解的 Git 标签和全部 37 个 GitHub 附件,以只读方式验证了重试逻辑。未触发正式发布。
Checklist