fluid-release

作者: microsoft

Fluid Framework 客户端发布组 — 次要版本、补丁版本以及发布后类型测试更新。涵盖发布准备、分支管理、版本升级等。

npx skills add https://github.com/microsoft/fluidframework --skill fluid-release

Fluid Framework Client Release

Release workflow for the client release group. Supports two modes: interactive (default) and autonomous.

Environment Detection

Check the CI environment variable at the start of every session:

  • CI=true: Running in a GitHub Actions workflow. Use only origin (no upstream). Use CI-safe commands (see CI-safe alternatives). Never prompt for input. Log blockers and phase completions to workflow output for human review.
  • CI unset or false: Running locally. Use upstream/origin detection as described in Key Context.

Mode Selection

At the start of every release session, ask the user:

Would you like to run in interactive or autonomous mode?

In CI (CI=true), always use autonomous mode — do not prompt.

Interactive Mode (default)

Run commands autonomously but pause before creating PRs, pushing branches, or triggering builds. Ask for version confirmation at key points. This is the current behavior.

Autonomous Mode

Run the entire selected phase end-to-end without pausing. Auto-detect the release state from the schedule and repo (see below). If the user provides version info upfront, skip the version questions entirely.

Requirements:

  • Version info upfront: The user must provide all version numbers before starting (current release version and/or next version, depending on phase). Do not prompt for versions mid-flow. If the user doesn't provide versions, detect them from the schedule and repo state (see below).
  • No confirmation pauses: Create PRs, push branches, and run flub release without asking. Include clear commit messages and PR descriptions.
  • Phase-scoped execution: Each phase runs to completion, then reports what the user needs to do next (e.g., "queue the ADO release build", "queue the ADO publish pipeline", or "wait for npm feeds, then re-invoke for type test updates").
  • Fallback to issues: If any step fails (permission errors, CI-safe command failures, git push rejected, or any other error that prevents progress), stop and open a GitHub issue in microsoft/FluidFramework describing what was completed, what failed, and what remains. Use the title format Release <VERSION>: <brief description> and label it with release-blocking. Include the exact commands remaining so a human can finish using the skill in interactive mode.

Auto-detecting release state (autonomous mode and CI)

Auto-detect the release state from the schedule and repo. Read the release schedule and run the detection steps below. In interactive mode, this detection also runs when the user gives a generic request like "do the release" without specifying a version or phase.

Step 1: Identify the most recent release.

# Get the latest client release tag
git tag -l 'client_v2.*' --sort=-version:refname | head -1

Step 2: Identify the next scheduled release.

Compare today's date against the schedule. The next release is the earliest scheduled entry whose proposed date is >= today and whose version is greater than the most recently released version. Also check if a release is overdue (proposed date < today but no tag exists).

Step 3: Check if a release is in progress.

# Check for release-prep branches for the next version
git ls-remote --heads upstream 'release-prep/<NEXT_VERSION>/*'
# Check for the release branch
git ls-remote --heads upstream 'release/client/<NEXT_MAJOR>.<NEXT_MINOR>'
# Check for a release tag
git tag -l 'client_v<NEXT_VERSION>'
# Check for open PRs
gh pr list --repo microsoft/FluidFramework --search "release-prep/<NEXT_VERSION>" --state all

For a release branch with no completed release, also inspect ADO pipeline state:

  1. Find the Build - client packages (definition 12) run for the release branch tip with releaseBuildOverride: release.
  2. If that run succeeded, find the Publish - client packages (definition 219) run that selected it as the candidate and used publishToPublicNpm: true.
  3. If ADO pipeline state cannot be queried, do not infer which action is next. Report that a human must identify whether the release build or publish pipeline has completed.

Step 4: Determine the phase and act.

StateAction
No release-prep branches, no release branchStart minor release prep (Steps 1-5)
Release-prep branches/PRs exist, some not mergedResume minor release prep from where it left off
Release branch exists, no successful release buildResume release execution — queue the ADO release build
Successful release build exists, no successful public publish runResume release execution — queue the ADO publish pipeline using that build as the candidate
Successful public publish run exists, exact GitHub/npm release not yet availableWait for publication to propagate; investigate the publish run if it does not appear
Exact GitHub/npm release verified, no patch bump PRResume release execution — do the patch bump (Step 7)
Release tag exists, patch bump done, no type test PRsStart type test updates (Steps 8-9)
All phases completeReport that the release is fully done and show the next scheduled release

Present the detected state and chosen action to the user (or in the issue body). Example:

Detected state: 2.91.0 is scheduled for 03/16/26. No release-prep branches found. The most recent release is 2.90.0. Action: Minor release prep needed for 2.91.0 (next version on main: 2.92.0).

Release Schedule

The release schedule is in references/release-schedule.md. It contains proposed dates, release versions, and the corresponding "main" version after each release. Use this to determine version numbers and timing in autonomous mode.

Workflow Selection

Ask the user which phase they need (or auto-detect in autonomous mode — see above):

PhaseWhen to useCI-automatable?Reference
Minor release prepStarting a new minor release from main (Steps 1-5)Yes (Steps 1-4 create PRs; Step 5 is a human step)minor-release-prep.md
Release executionRunning and publishing the release build + patch bump (Steps 6-7). Also used for patch releases on existing branches.Partially (Step 6 = human queues ADO build and publish pipelines; Step 7 = CI-automatable)release-execution.md
Type test updatesDay after release: update baselines on main and release branch (Steps 8-9)Yes (must be resilient to failure if npm packages not yet available)type-test-updates.md

For patch releases, skip directly to release execution on an existing release branch.

Human steps (cannot be automated)

These steps require human action and should be clearly reported in CI workflow logs:

  1. Merge release-prep PRs in the correct order (version bump last) after CI creates them
  2. Create the release branch (Step 5) — requires elevated permissions on the release/ branch prefix
  3. Queue the ADO release build (Step 6) — choose the "release" option in ADO
  4. Queue the ADO publish pipeline (Step 6) — after the release build succeeds, select it as the candidate and enable public npm publication
  5. Announce the release in the Fluid Framework "General" Teams channel

Key Context

  • The repo uses pnpm as the package manager
  • flub is the Fluid build CLI (pnpm flub ... or pnpm exec flub ...)
  • Version scheme: The version numbering is not a simple incrementing pattern (it is NOT always multiples of 10). When suggesting a next version, default to incrementing the minor version by 1 (e.g., 2.90.0 -> 2.91.0). Trust the version the user provides unless it is more than 7-8 minor versions away from the current version (which likely indicates an error).
  • Release branch naming: release/client/<major>.<minor> (e.g., release/client/2.90)
  • The release branch is created from the commit before the version bump on main
  • There is no lerna.json in this repo
  • Git remote preference: When pushing branches, prefer pushing to upstream if one is configured for the repo. Check with git remote -v if unsure. Only fall back to origin if no upstream remote exists. Exception: In CI (CI=true), always use origin — there is no upstream.
  • Working branch naming: Do NOT use the release/ prefix for working branches because release/ is protected on upstream. Use the standard naming convention below — these branches double as progress markers.

CI-safe Command Alternatives

Some flub commands require interactive TTY input. In CI, use these alternatives:

Interactive commandCI-safe alternative
flub bump client --bumpType patchpnpm -r --include-workspace-root exec npm pkg set version=<VERSION> followed by pnpm install --no-frozen-lockfile
flub bump client --exact <VERSION> --no-commitpnpm -r --include-workspace-root exec npm pkg set version=<VERSION>
flub release -g client -t patchNot needed in CI. The release build is queued manually by a human in ADO. CI only handles prep and post-release phases.

After using npm pkg set to bump versions, also run pnpm -r run build:genver to update packageVersion.ts files, and pnpm install --no-frozen-lockfile to update the lockfile.

Non-interactive flub commands that are safe in CI (no TTY required): flub generate releaseNotes, flub generate changelog, flub typetests, flub release prepare.

Working Branch Convention

Working branches follow a numbered naming scheme under release-prep/<VERSION>/:

StepBranch name
1release-prep/<VERSION>/1-tag-asserts
2release-prep/<VERSION>/2-compat-gen
3release-prep/<VERSION>/3-release-notes
4release-prep/<VERSION>/4-bump-<NEXT_VERSION>

Example for releasing 2.90.0 with next version 2.91.0: release-prep/2.90.0/1-tag-asserts, release-prep/2.90.0/4-bump-2.91.0

Detecting Prior Progress

Before starting any phase, check for existing progress by looking at branches and PRs:

# Check for existing release-prep branches on upstream
git ls-remote --heads upstream 'release-prep/<VERSION>/*'
# Check for open release-prep PRs
gh pr list --repo microsoft/FluidFramework --search "release-prep/<VERSION>" --state all

If branches or PRs already exist, skip completed steps and resume from where the process left off.

Before Starting

Run pnpm flub release prepare client to check readiness. Then check for release blockers:

gh issue list --repo microsoft/FluidFramework --label release-blocking --state open
gh pr list --repo microsoft/FluidFramework --label release-blocking --state open

If either command returns results, stop and report the blockers to the user. In autonomous mode, do not proceed past this check if blockers exist. Also remind the user to check ADO for release-blocking issues (cannot be queried via CLI).

Blocker handling (autonomous and CI): If the agent is blocked at any point (release blockers, missing release tag, npm packages not available, permission errors, or any other issue that prevents progress), open a GitHub issue in microsoft/FluidFramework describing what was completed, what failed, and what human action is needed. Use the title format Release <VERSION>: <brief description> and label it with release-blocking. Include the exact commands remaining so a human can finish using the skill in interactive mode. Then exit gracefully.

Behavior by Mode

Commands (both modes)

Run these autonomously in both modes: policy-check:asserts, layerGeneration:gen, flub generate releaseNotes, flub generate changelog, build:genver, flub typetests, flub release prepare

For version bumps, use flub bump locally or CI-safe alternatives in CI (see CI-safe alternatives).

PR Conventions

Use the build: conventional commit prefix for all release PR titles (e.g., build: tag untagged asserts for 2.90.0 release).

Checkpoints

ActionInteractiveAutonomous
Creating PRsPause and confirmCreate automatically with descriptive titles/bodies
Pushing branchesPause and confirmPush automatically
Running flub releasePause and confirmRun automatically
Version determinationAsk user to confirmUse version provided upfront or auto-detect
Announcing releasesRemind userRemind user (never auto-announce)
ADO release/publish pipeline queuingInstruct userInstruct user (cannot be automated)

Autonomous Mode: Phase Completion Reports

At the end of each autonomous phase, provide a summary:

  1. What was done — list all PRs created, branches pushed, commands run
  2. What to do next — specific manual steps needed (e.g., queue ADO build, merge PRs in order)
  3. When to continue — timing guidance for the next phase (e.g., "after PRs merge" or "tomorrow, after npm feeds update")

Autonomous Mode: Fallback to Issues

If any step in autonomous mode fails (permission errors, command failures, git push rejected, etc.), stop and open a GitHub issue in microsoft/FluidFramework with:

  1. What was completed — PRs created, branches pushed, commands run successfully
  2. What failed — the specific error and which step it occurred at
  3. What remains — the exact commands for remaining steps, ready to copy-paste
  4. How to finish — remind the human to use the fluid-release skill in interactive mode (claude "do the release")

Use the title format Release <VERSION>: <brief description of failure> and label it with release-blocking.

Read the appropriate reference file for the phase the user selects, then guide them through it step by step.

来自 microsoft 的更多技能

oss-growth
microsoft
OSS增长黑客角色
agent-framework-azure-ai-py
microsoft
使用Microsoft Agent Framework Python SDK(agent-framework-azure-ai)构建Azure AI Foundry代理。在创建使用AzureAIAgentsProvider的持久化代理、使用托管工具(代码解释器、文件搜索、网络搜索)、集成MCP服务器、管理对话线程或实现流式响应时使用。涵盖函数工具、结构化输出和多工具代理。
development
airunway-aks-setup
microsoft
在AKS上设置AI Runway——从裸集群到运行模型。涵盖集群验证、控制器安装、GPU评估、提供商设置和首次部署。适用场景:“设置AI Runway”、“接入AKS集群”、“安装AI Runway”、“airunway设置”、“将模型部署到AKS”、“在AKS上进行GPU推理”、“在AKS上配置KAITO”、“在AKS上运行LLM”、“在AKS上使用vLLM”、“在AKS上设置模型服务”、“AI Runway控制器”。
devops
appinsights-instrumentation
microsoft
使用Azure Application Insights对Web应用进行插桩的指南。提供遥测模式、SDK设置和配置参考。适用场景:如何对应用进行插桩、App Insights SDK、遥测模式、什么是App Insights、Application Insights指南、插桩示例、APM最佳实践。
devops
applicationinsights-web-ts
microsoft
使用Application Insights JavaScript SDK(@microsoft/applicationinsights-web)为浏览器/Web应用添加检测。用于真实用户监控(RUM)——页面视图、点击、AJAX/fetch依赖项、异常、自定义事件,以及与后端OpenTelemetry追踪关联的浏览器端GenAI代理追踪。涵盖SDK加载器脚本和npm设置、框架扩展(React、React Native、Angular)、点击分析、遥测初始化器,以及从浏览器发出的代理/工具/模型跨度所遵循的OTel GenAI语义约定。
devops
azure-ai-anomalydetector-java
microsoft
使用适用于 Java 的 Azure AI 异常检测器 SDK 构建异常检测应用程序。在实现单变量/多变量异常检测、时间序列分析或 AI 驱动的监控时使用。
development
azure-ai-language-conversations-py
microsoft
使用azure-ai-language-conversations Python SDK实现对话语言理解(CLU)。当使用ConversationAnalysisClient分析对话意图和实体、构建NLP功能或将语言理解集成到应用程序中时使用。
development
azure-ai-ml-py
microsoft
Azure Machine Learning SDK v2 for Python。用于机器学习工作区、作业、模型、数据集、计算资源和管道。 触发词:“azure-ai-ml”、“MLClient”、“工作区”、“模型注册表”、“训练作业”、“数据集”。
development