Repository navigation
feat: remove the 24-hour cap on update rollout delays - #5043
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: |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 1280c80298
ℹ️ 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. Already looking forward to the next diff. 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". |
…end drift-allow - bun scripts/upstream-ledger.mjs --refresh: 148 new pending rows covering the 2.7.0 tail and upstream/main. - Mark MoonshotAI#5043/MoonshotAI#5037/MoonshotAI#5049 ported (26f22db, 0d20273, d61aacc) and MoonshotAI#5042 equivalent (multiline feedback editor already shipped, localized). - Refresh MoonshotAI#4820 evidence: the machine-architecture blocker retired with the 2.7.0 merge. - drift-allow: add the missing translated/renamed upstream files (media.ts, node-local hostServices/rgLocator/runRg, executor validate.ts, remaining vitest configs) so upstream-drift stops flagging deliberate removals. Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
The 2.7.0 merge resolution had kept the clamped rollout copy, so plan delays beyond 24h were still capped and the compatibility alias survived (MoonshotAI#5043). Restore the upstream behavior: covered buckets honor their delay, uncovered buckets sit behind the longest configured delay with a 24h floor, and the Date-range guard stays. Port the SSH address hint that mentions the optional port suffix in both locales (MoonshotAI#5358) with its changeset.
Requirement or Bug
The CLI's staged update rollout clamps every configured batch delay to 24 hours, so the publish pipeline cannot stage a release over multiple days even when it deliberately wants to. This PR makes the client fully trust the rollout plan published in
latest.jsonby removing the hard cap. The publish-side validation is relaxed in a companion change in kimi-cli-cdn-sync (pushed directly to its main).Bug Reproduction Steps
N/A
Root Cause
N/A
Code Changes
The change is a single point in the existing rollout evaluation:
Configured delays are now honored exactly as published. The old constant survives only as the fallback for devices not covered by any batch (a plan whose percents sum below 100%), renamed to
UNCOVERED_ROLLOUT_DELAY_SECONDSto match its remaining role — it is a default for incomplete plans, no longer a ceiling on configured values.The publish-side counterpart (kimi-cli-cdn-sync
update-latest.sh, already on its main) relaxes the pre-publish manifest check from0..86400to>= 0, so plans beyond 24 hours can actually be published.Two edge cases surfaced in review are handled. The remainder fallback never undercuts the longest configured delay, so uncovered devices cannot update before a deliberately delayed batch. And the eligibility timestamp is built defensively: a configured delay beyond JavaScript's
Daterange yieldseligibleAt: null(the device simply stays held, exactly what the config says) instead of throwingRangeErrorand silently skipping the whole update preflight.Behavior Changes and Affected Users
latest.jsonconfigures a batch delay above 24h--fullkimi upgradeupdates immediately regardless of rolloutAffected modules:
apps/kimi-code/src/cli/update(rollout evaluation only; channel selection, install, and prompt flows untouched). Coverage intest/cli/update/rollout.test.ts: the cases that pinned the clamp now pin that long delays are honored end to end (rolloutDelayForBucketandisRolloutEligible), the remainder cases pin both the 24h default and the "remainder stays behind the longest configured delay" ordering, and a dedicated case pins that an out-of-range delay reportsheldwitheligibleAt: nullinstead of throwing. 34/34 pass.Checklist
/approve).gen-changesetsskill, or this PR needs no changeset.gen-docsskill, or this PR needs no doc update.