发布后收尾活动
post-release-activities
发布完成后需要执行的一系列系统化活动。
- License 许可
- MIT
- 所属仓库
- microsoft/testfx
- 最近更新
- 2026-11-14
- Stars
- ★ 1.1k
- Forks
- 315
01 前言 Front Matter
- name
- post-release-activities
- description
- Systematic activities that need to be performed after a release is done.
03 SKILL.md 正文
Post-release Activities Skill
When to Use This Skill
Use this skill when assigned an issue asking you to do the post-release activities. You will be given the branch name for the release. If that information is missing, ask for it and don't proceed with doing anything.
Steps to Follow
Step 1: Find the release version
The branch name only contains the major and minor parts of the version, but not the patch part. To find the full version:
- Look for
eng/Versions.propsfile in the given branch. - Find the value of
VersionPrefix.
Step 2: Tagging the branch
Create a tag for the branch using the version you found in Step 1. The tag name should be v{version} (replace {version} with the version you found in Step 1). After creating the tag, push it to the remote repository.
Step 3: Create a GitHub draft release
- Create a file
release-notes.mdand add the following content to it:See the release notes [here](https://github.com/microsoft/testfx/blob/main/docs/Changelog.md#{version})(replace{version}with the version you found in Step 1). - Run
gh release create v{version} --draft --title v{version} --notes-file release-notes.md.
Step 4: Open a PR to main updating the change log files
- Run the following command to get markdown of the changelog:
gh api --method POST -H "Accept: application/vnd.github+json" -H "X-GitHub-Api-Version: 2022-11-28" /repos/microsoft/testfx/releases/generate-notes -f 'tag_name=v{version}'(replace{version}with the version you found in Step 1). - Classify each entry as either an MSTest change or a Microsoft.Testing.Platform change.
- MSTest changes go to
docs/Changelog.mdand Microsoft.Testing.Platform changes go todocs/Changelog-Platform.md. - Classify further the changes of each product into categories like "Added", "Changed", "Fixed", etc.
- Update the changelog markdown files using the above instructions and following the existing format of those files.
- When not confident about the classification of a specific change, indicate in the PR description that it requires attention and manual review. This PR must target the
mainbranch, not the release branch.
Step 5: Create a PR to release branch to update patch version
Open a PR to the release branch to update the patch version in eng/Versions.props file. The new patch version should be one more than the patch version you found in Step 1.
Note that in this step, both TestingPlatformVersionPrefix and VersionPrefix must be updated.
Step 6: Create a PR to main to update minor version
Open a PR to the main branch to update the minor version in eng/Versions.props file. The new minor version should be one more than the minor version you found in Step 1, and the patch version should be reset to 0.
Note that in this step, both TestingPlatformVersionPrefix and VersionPrefix must be updated.
Step 7: Update public samples
Open a PR to the main branch to update the product versions of public samples to latest. Public samples are present in samples/public directory.
Step 8: Mark APIs and analyzers as shipped
- Run
eng/mark-shipped.ps1(requires PowerShell 7.0). - Move the contents of
src/Analyzers/MSTest.Analyzers/AnalyzerReleases.Unshipped.md(except the first two lines that start with;) tosrc/Analyzers/MSTest.Analyzers/AnalyzerReleases.Shipped.md. - In
src/Analyzers/MSTest.Analyzers/SuppressionReleases.md, move the rows for suppressors shipped in the release branch from## Unshippedto## Release {version}(using the full MSTest version found in Step 1). Create the release section with the existing table format if it does not exist, preserving each suppression ID, suppressed diagnostic ID, and notes. Leave suppressors not included in this release under## Unshipped, and remove that section if it becomes empty. If no suppressors were shipped from## Unshipped, leave the catalog unchanged.
Create a PR to main with these changes.
04 同仓库更多 Skills
dotnet-breaking-changes
Use before changing .NET/C# code whose callers you do not control: a NuGet library, or a repo with PublicAPI.Shipped/Unshipped.txt, ApiCompat, multiple TargetFrameworks, InternalsVisibleTo, or generated (.g.cs) partials. Green builds miss silent breaks from optional parameters, parameter names, sealing, const values, nullability, and #if. USE FOR: "without breaking existing callers"; adding a public method, overload, optional parameter, or interface member to a shipped library; renaming a public method or an internal helper a friend assembly uses; consolidating duplicated logic; changing a signature, nullability, default, or attribute; adding a target framework; RS0016/RS0017 or ApiCompat errors; "is this PR breaking?". For a rename, extract, or merge, also invoke csharp-refactoring. DO NOT USE FOR: an executable whose callers all live in one project; renaming a local variable or private member, even in a shipped library; formatting; framework/SDK/NuGet upgrades (use dotnet-upgrade).
TestFx 测试值证据应用
testfx-test-value-evidence
结合 TestFx 工具链、断言、并行安全、打包消费者(packed-consumer)和评审约定,应用项目内置的 test-value-evidence 技能。在实现或评审会改变行为的 TestFx PR 或提交时使用,包括仅修改源代码的变更。
TestFx 并行安全预检
testfx-parallel-safety-preflight
在实现或重构 TestFx 测试、生命周期代码、辅助函数、共享状态声明,或这些测试所覆盖的生产代码路径之前,检查并发性与隔离性。在缩小 DoNotParallelize 或 ResourceLock 的使用范围、更改并行化设置或引入异步工作线程之前使用;并针对最终 diff 重复检查。
TestFx 本地化校验
testfx-localization-validation
验证生成的 TestFx 本地化目录、资源 ID、占位符和锁定标记。适用于 RESX/XLF 变更、OneLoc PR、本地化构建失败、重复的目标文本或翻译单元,以及孤立的翻译条目。
TestFx 验收验证
testfx-acceptance-validation
使用打包后的消费者、包与缓存来源、精确的退出码和产物,以及选中测试与实际执行测试的证据,验证 TestFx 的交付路径及有效的 CI 执行。适用于验收回归、包/MSBuild/启动器/协议变更,或仅有跳过测试的 CI 结果;不适用于无关的纯单元测试或文档变更。
会话交付规范管控
session-delivery-hygiene
把控本地会话范围、持久化交付、实时 PR 状态、集成来源以及责任范围内的清理工作。在实施指导变更、修改或推送 PR、诊断包与产物不匹配,或交接实现工作之前使用。