feat(release): configure initial 5% rollout on crash service - #401
Open
yaojin3616 wants to merge 1 commit into
Open
feat(release): configure initial 5% rollout on crash service#401yaojin3616 wants to merge 1 commit into
yaojin3616 wants to merge 1 commit into
Conversation
- Add configure-rollout.mjs script to manage platform rollout rules on crash service - Integrate initial 5% rollout step into release workflow - Add unit tests covering creation, update, and race condition conflict recovery
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
scripts/configure-rollout.mjs:对mac/mac-intel/windows三个平台幂等地在 crash service 上创建/更新灰度规则(默认 5%)。.github/workflows/release.yml的publishjob(tag push 时)ModelScope 镜像之后、飞书通知之前,新增 "Configure initial 5% rollout on crash service" 步骤;CRASH_ADMIN_TOKENsecret 缺失时跳过而非失败。Background
v0.8.2(tag 于 2026-09-11)合入了客户端接入
feat: 接入桌面端灰度更新与异常日志上报(#395),客户端会去dshdesktop.com/crash/v1/updates/check拉策略。但写策略那半只在feat/release-initial-rollout分支上,一直没合入主干、没开 PR。所以 v0.8.2 发布后 crash service 上没有任何 rollout 规则,灰度实际上没生效。Follow-up
CRASH_ADMIN_TOKEN,下一个 v* tag 起会自动执行。node scripts/configure-rollout.mjs 0.8.2 5补上规则。Test plan
npm test -- configure-rollout通过(本地已带单测)CRASH_ADMIN_TOKENsecretenabled=true, percentage=5🤖 Generated with Claude Code