版本发布准备
release-preparation
准备并创建 Duroxide 的发布拉取请求(PR),随后在合并且获得明确批准后创建其版本标签(tag)。适用于被要求准备发布、提升 crate 版本、起草发布说明、验证发布候选版本,或完成公开发布交接的场景。
- License 许可
- MIT
- 最近更新
- 2026-11-06
- Stars
- ★ 239
- Forks
- 63
01 前言 Front Matter
- name
- release-preparation
- description
- Prepare and open a Duroxide release pull request, then create its version tag after merge and explicit approval. Use when asked to prepare a release, bump the crate version, draft release notes, validate a release candidate, or complete the public release handoff.
02 资源文件 3
- 参考文档references/integrations.md15.8 KB
- 参考文档references/profiling.md13.0 KB
- 参考文档references/visualization.md14.5 KB
03 SKILL.md 正文
Duroxide Release Preparation
This source-owned skill prepares a release pull request and, after it is merged and separately approved, creates the version tag that hands the release to Microsoft-managed internal pipelines. Follow RELEASE_POLICY.md.
Boundaries
Never:
- Add or modify a package-publishing workflow.
- Run
cargo publish. - Create a GitHub Release.
- Add publishing credentials or document internal pipeline operations.
- Modify files under
docs/proposals/. - Merge the release pull request.
- Create, move, or push a release tag before the release pull request is merged
into
main. - Create or push a release tag without explicit user approval given after the merge.
Required Input
Version 0.1.31 is reserved for the race-cancellation semantic cutover. Do not
prepare a 0.1.31+ release or hotfix from an older branch without all queue,
positional-wait and exact continue-as-new carry-forward fixes. The subsequent
release PR uses 0.1.32; never change the semantic threshold to that release
number. See the reservation in RELEASE_POLICY.md.
Obtain the target semantic version from the user. Do not choose a major, minor, or patch bump without confirmation.
Obtain permission to commit, push the release branch, and create the pull request if the user's request did not explicitly authorize those actions.
Use the current date in YYYY-MM-DD format unless the user provides a release
date.
Preparation Steps
-
Read
RELEASE_POLICY.md,Cargo.toml, the top ofCHANGELOG.md, and the release notice near the top ofREADME.md. -
Inspect
git status, the latestv*tag, and changes since that tag. Preserve unrelated working-tree changes. -
Confirm the target version is valid semver and greater than the current
Cargo.tomlpackage version. -
Update the root
Cargo.tomlpackage version. Do not change the independentsqlite-stresspackage version. -
Keep
## [Unreleased]at the top ofCHANGELOG.mdand add the release section immediately below it:## [X.Y.Z] - YYYY-MM-DD **Release:** <https://crates.io/crates/duroxide/X.Y.Z> -
Move prepared entries from
Unreleasedinto the new section. Use the existing Keep a Changelog categories and derive notes only from verified repository changes. Preserve relevant pull request references and document breaking changes or migration requirements clearly. -
Update the
README.mdlatest-release notice with:- The target crates.io version URL.
- A concise summary grounded in the changelog.
- The changelog anchor used by the existing README format, for example
#0131---2026-09-07for version0.1.31.
-
Review the diff and ensure release preparation contains only intentional metadata, release notes, and any changes the user explicitly requested.
Validation
Run the repository's existing checks:
cargo fmt --all -- --check
cargo clippy --all-targets --all-features -- -D warnings -A clippy::uninlined_format_args
./run-tests.sh
cargo test --doc --all-features
cargo package --allow-dirty
cargo package --list --allow-dirty
./run-tests.sh is required because it runs nextest both with and without
feature flags. Do not replace it with a normal cargo test run.
Inspect the package file list for generated files, local artifacts, secrets, and other unintended content.
Create the Release Pull Request
After validation:
- Review the complete diff and ensure it contains only the intended release preparation changes.
- Commit with the title
chore(release): duroxide X.Y.Z. - Push the release branch.
- Create a pull request targeting
mainwith the same title. Follow the repository pull request template and include the validation results. - Report the pull request URL and stop. Do not merge it or create the tag.
Create the Post-Merge Tag
Run this phase only after the release pull request has merged and the user asks to complete the release handoff.
-
Refresh the pull request state,
origin/main, and remote tags. -
Verify all of the following:
- The release pull request is merged with
mainas its base. - Its merge commit is present on
origin/main. Cargo.toml,CHANGELOG.md, andREADME.mdat that commit contain the target version.- The
vX.Y.Ztag does not already exist locally or remotely.
- The release pull request is merged with
-
Ask for explicit approval to create and push
vX.Y.Z, naming the exact tag and merge commit SHA in the question. Approval given before the pull request merged does not satisfy this requirement. -
After approval, create a lightweight tag, matching existing Duroxide release tags:
git tag vX.Y.Z <merge-commit-sha> git push origin refs/tags/vX.Y.Z -
Report the pushed tag and stop. Do not publish the crate or create a GitHub Release; the internal pipeline owns those operations.
Completion Report
Report:
- The prepared version and release date.
- The files changed.
- The release-note summary.
- Validation failures, if any.
- The release pull request URL after preparation.
- The tag and tagged commit after the separately approved post-merge handoff.