Skip to content

ci(release): compress native downloads in parallel by platform - #5281

Merged
liruifengv merged 3 commits into
perf/stable-native-parallelfrom
perf/stable-native-compression
Nov 23, 2026
Merged

liruifengv merged 3 commits into
perf/stable-native-parallelfrom
perf/stable-native-compression

Conversation

@liruifengv

Copy link
Copy Markdown
Collaborator

Requirement or Bug

Stacked on #5280. Generating the native manifest took 3:28–3:54 in three official releases because the publisher recompressed all platforms serially.

Bug Reproduction Steps

Inspect the per-archive timestamps in 2.7.2.

Root Cause

Platform compression and global publication used one runner even though compression inputs are independent.

Code Changes

Six read-only Linux jobs each verify one ZIP checksum, then run the existing producer unchanged (zstd -19, tar.gz and sidecars). The publisher waits for every job and actual npm publication, merges exactly one fragment per supported target/tag and only uploads the public asset names. The matrix uses the native target registry. Extra runner minutes and artifact transfer trade for reduced wall time.

Behavior Changes and Affected Users

Behavior Before After Affected Escape hatch
Compression Sequential on last runner Parallel per target Release maintainers Revert this layer
Native downloads ZIP, zstd, tar.gz, hashes and manifest Same file formats and names; no partial manifest if a platform is missing CLI installers and CDN No migration
Canary and manual jobs Existing packaging Unchanged Testers None needed

Exercised archive generation, checksums, final merge and missing/mismatched inputs locally. No signed release dispatched.

Checklist

  • Read CONTRIBUTING; internal CI change.
  • Added merge coverage and kept existing native artifact tests.
  • Behavior table complete; no changeset or doc update needed.

@changeset-bot

changeset-bot Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 753aa34

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-23T09:27:20.844392Z 753aa34 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@pkg-pr-new

pkg-pr-new Bot commented Nov 23, 2026

Copy link
Copy Markdown
pnpm dlx https://pkg.pr.new/@moonshot-ai/kimi-code@6ef3392
npx https://pkg.pr.new/@moonshot-ai/kimi-code@6ef3392

commit: 6ef3392

…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)
@liruifengv
liruifengv merged commit 8672131 into perf/stable-native-parallel Nov 23, 2026
1 of 5 checks passed
@liruifengv
liruifengv deleted the perf/stable-native-compression branch November 23, 2026 09:21
liruifengv added a commit that referenced this pull request Nov 23, 2026
* 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)
liruifengv added a commit that referenced this pull request Nov 23, 2026
#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)

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 753aa34da3

ℹ️ 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".

Comment on lines +270 to +272
- name: Download Desktop renderer from the verified push CI
if: inputs.renderer-ci-run-id != ''
uses: actions/download-artifact@v8

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Declare the stable desktop renderer reuse

For stable releases, release.yml now supplies renderer-ci-run-id, so this branch packages the renderer built by the Linux CI job instead of rebuilding it on each target platform. The commit's behavior table only describes native compression/downloads and states that other packaging is unchanged, omitting the changed desktop release path, its affected desktop users/release maintainers, and its rollback or guard coverage; add this behavior to the table and document the cross-platform artifact assumption.

AGENTS.md reference: AGENTS.md:L89-L89

Useful? React with 👍 / 👎.

liruifengv added a commit that referenced this pull request Nov 24, 2026
* ci(release): avoid duplicate pnpm cache writes in joint releases

* test(release): mark cache fixture registration as intentional

* ci(release): skip the Electron PTY rebuild for standalone CLI installs (#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)

* fix(release): resume verified CLI native uploads on same-commit retries
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