发布指南
按以下顺序准备、评审并发布 Apache Seata™ (incubating)。以 ASF 发布政策、孵化器发布指南和分发政策为准。
发布需要 Seata 社区投票通过及 IPMC 批准。在此之前,制品只是供开发者评审的候选版本。不要将其发布到正式分发目录、Maven Central 或公开的 GitHub Release,也不要将其宣传为正式发行版。
1. 准备发布
在 dev@seata.apache.org 明确范围与发布经理,确定发布分支、版本、候选编号、完整提交号和发布说明。检查阻塞发布的问题,未披露安全修复应通过私有渠道协调。
签名与访问权限
按 ASF 发布签名指南准备签名密钥,将公钥加入项目 KEYS 文件并核对完整指纹。与有权限的发布者协调更新开发和正式分发目录的 KEYS,保留已有密钥。
保护私钥,使用口令或签名代理。不要将未加密私钥导出到工作区,也不要将凭据与口令放入受版本控制的 Maven 配置。
开始前确认 ASF 分发 SVN 及 Maven 暂存服务(如使用)的访问权限。凭据与仓库配置应遵循最新的 ASF Maven 发布指南。
从选定提交构建
使用发布版本对应的 POM profile、Maven wrapper 和构建说明。当前开发分支 BUILDING.md仅供参考,不能替代旧版本自身的前置要求。
记录 JDK、Maven、操作系统与执行命令,打包前运行适用的测试。带 -DskipTests 或 -Dmaven.test.skip=true 的命令不能证明测试已经通过。
当前开发版本的测试与完整打包分开执行:
./mvnw -version
./mvnw clean test
# 使用 BUILDING.md 中完整发行包要求的 JDK。
./mvnw -T 4 clean install -Prelease-seata -DskipTests
确认所需模块与制品齐全。源码包和便利二进制包必须来自同一个候选提交。使用不可变的候选标签并记录完整 SHA,不要移动标签来替换正在评审的候选版本。
2. 签名并暂存候选版本
归档文件名必须包含 incubating。以下示例使用 apache-seata-VERSION-incubating-src.tar.gz 和 apache-seata-VERSION-incubating-bin.tar.gz,实际应与经确认的打包配置输出一致。
在仅包含待处理制品的干净目录中操作,执行前替换明确标示的占位符。
# Set these to the selected version and full signing-key fingerprint.
release_version='REPLACE_WITH_VERSION'
signing_key='REPLACE_WITH_FULL_FINGERPRINT'
for kind in src bin; do
artifact="apache-seata-${release_version}-incubating-${kind}.tar.gz"
test -f "$artifact" || exit 1
gpg --armor --local-user "$signing_key" --detach-sign "$artifact" || exit 1
shasum -a 512 "$artifact" > "$artifact.sha512" || exit 1
gpg --verify "$artifact.asc" "$artifact" || exit 1
shasum -a 512 -c "$artifact.sha512" || exit 1
done
两个归档都需要独立的 ASCII-armored 分离签名与 SHA-512 校验和。检查生成的六个文件,不要复用上一次构建的签名。
暂存供评审
在开发分发目录下,为每次候选版本使用独立目录,如 VERSION-RC1。以下示例仅复制两个归档及对应验证文件:
# Use the version set above and a new candidate number.
rc_number='1'
candidate="${release_version}-RC${rc_number}"
svn checkout --depth=empty \
https://dist.apache.org/repos/dist/dev/incubator/seata seata-dist-dev
mkdir "seata-dist-dev/$candidate"
for kind in src bin; do
artifact="apache-seata-${release_version}-incubating-${kind}.tar.gz"
cp "$artifact" "$artifact.asc" "$artifact.sha512" \
"seata-dist-dev/$candidate/" || exit 1
done
svn add "seata-dist-dev/$candidate"
svn status seata-dist-dev
svn commit "seata-dist-dev/$candidate" -m "Stage Seata $candidate"
发起投票前,确认 KEYS 更新已提交且可以访问。如果候选版本包含 Maven 制品,应按选定版本的发布 profile 将其上传至暂存仓库,并关闭暂存仓库供评审;此时不要执行 Release。在投票邮件中记录仓库 URL 与标识。
保留可评审的发布说明草稿,但不要提前创建面向用户的公开 GitHub Release。关联候选提交对应的 CI 结果。
3. 验证候选版本
评审者应独立下载暂存制品,确认下载地址指向本次投票的候选版本,而不是此前的发行版。
校验和与签名
curl --fail --location --output KEYS \
https://downloads.apache.org/incubator/seata/KEYS
gpg --import KEYS
# Set this to the version in the vote, in the candidate download directory.
release_version='REPLACE_WITH_VERSION'
for kind in src bin; do
artifact="apache-seata-${release_version}-incubating-${kind}.tar.gz"
shasum -a 512 -c "$artifact.sha512" || exit 1
gpg --verify "$artifact.asc" "$artifact" || exit 1
done
通过独立可信的来源核对签名指纹。“签名有效”只能验证该密钥的签名,不能单独证明签名者身份。不要为了消除警告而将密钥设置为最终信任。
源码包
- 核对版本、
incubating命名及适用的孵化器 DISCLAIMER。 - 按 ASF 法律指引检查 LICENSE、NOTICE、第三方源码与依赖许可。
- 在适用位置检查 ASF 文件头,并保留必需的第三方声明。
- 确认源码包包含构建所需材料,不含意外编译产物、凭据、日志或本地构建输出。
- 与记录的标签及 SHA 比较,解释有意排除的打包内容。
- 解压到干净目录,遵循包内构建说明,记录实际执行的测试、结果与限制。
便利二进制包
验证校验和、签名及其与候选源码的对应关系。检查实际捆绑依赖,不能只看源码 POM;二进制包需要自身准确的 LICENSE 与 NOTICE 覆盖。
对双重许可依赖,应记录允许采用的许可选项并履行相应义务,不能简单认为选择“最宽松”的许可就足够。公开发布前,结合项目讨论及 ASF 法律指引解决不明确之处。
4. 完成两阶段投票
本指南采用顺序投票:先 Seata 社区,再孵化器。每次投票至少持续 72 小时。未达到有约束力票数门槛时,应继续等待或取消投票;时间届满本身不代表批准。
| 投票阶段 | 邮件列表 | 通过条件 |
|---|---|---|
| 孵化项目社区 | dev@seata.apache.org | 至少三个 PPMC +1,且 PPMC +1 多于 -1 |
| 孵化器 PMC | general@incubator.apache.org | 至少三个 IPMC +1,且 IPMC +1 多于 -1 |
任何人都可以评审和投票。PPMC 身份本身不使 IPMC 发布投票具有约束力。发布投票采用带最低赞成票数的多数规则,不是一票否决制;但仍需调查缺陷,解决阻塞发布的法律或技术问题。
发送前替换以下全部占位符。第二次投票应附社区投票及结果链接,使用完全相同的制品、标签、SHA 与暂存仓库。
投票邮件模板
To: ${vote_list}
Subject: [VOTE] Release Apache Seata (incubating) ${version} RC${rc_number}
Hi all,
Please review and vote on this Apache Seata (incubating) candidate.
Candidate artifacts: ${candidate_url}
Closed Maven staging repository: ${staging_url}
Candidate Git tag: ${tag_url}
Exact commit SHA: ${commit_sha}
Release notes: ${release_notes_url}
KEYS: https://downloads.apache.org/incubator/seata/KEYS
Signing fingerprint: ${full_fingerprint}
Build environment and commands: ${build_details}
Tests and CI for this commit: ${validation_links}
Known limitations: ${limitations}
For the IPMC vote, include:
Podling vote thread: ${podling_vote_url}
Podling result thread: ${podling_result_url}
This vote remains open for at least 72 hours, until
${closing_datetime_utc}, and longer if the required votes are missing.
Please state your binding status and what you checked.
[ ] +1 approve
[ ] +0 no opinion
[ ] -1 disapprove (please explain)
Regards,
${release_manager}
每次投票结束后,在同一列表发布实际票数,区分有约束力和无约束力投票。社区投票结果只允许进入 IPMC 投票阶段,不代表可以公开发布。
结果邮件模板
To: ${vote_list}
Subject: [RESULT] [VOTE] Release Apache Seata (incubating) ${version} RC${rc_number}
The vote has closed. Result: ${passed_or_not_passed}.
Binding votes: ${positive} +1, ${neutral} +0, ${negative} -1.
Binding voters and their votes: ${binding_vote_list}
Non-binding votes: ${non_binding_vote_summary}
Vote thread: ${vote_url}
Outstanding concerns and their disposition: ${concerns}
Next action: ${next_action}
替换有问题的候选版本
需要改变制品时,取消正在进行的投票,说明原因,以新的 RC 编号准备候选版本。不要在投票期间覆盖文件、校验和或签名。替换后的候选版本需要重新取得两阶段批准。
取消投票模板
To: ${vote_list}
Subject: [CANCEL] [VOTE] Release Apache Seata (incubating) ${version} RC${rc_number}
I am cancelling the vote at ${vote_url}.
Reason: ${reason}
The corrected candidate will use a new RC number and a new vote.
5. 公开发布已批准制品
仅在两份结果邮件确认批准同一个候选版本后执行:
- 使用有权限的账号,将已投票的分发制品从开发目录移至正式目录。
- 如涉及 Maven 制品,发布已批准且关闭的同一个暂存仓库。
- 为已批准提交发布说明和 GitHub Release(如使用),保留源码追溯关系并关联 ASF 下载地址。
- 制品在公开分发服务可用后,再更新网站下载链接。
# Only after both votes pass; use the exact approved candidate directory.
svn move \
"https://dist.apache.org/repos/dist/dev/incubator/seata/${candidate}" \
"https://dist.apache.org/repos/dist/release/incubator/seata/${release_version}" \
-m "Release Apache Seata ${release_version} (incubating)"
直接提升已批准的文件,不要在投票后重新构建或生成签名。公告前检查下载页、源码包、二进制包、签名与校验和均可访问。
6. 公告与维护下载目录
向适当的项目和孵化器公开列表发送公告。向 announce@apache.org 等更广泛渠道公告时,遵循最新的 ASF 公告指南。使用当前孵化器免责声明,明确项目仍处于孵化阶段。
发布公告模板
Subject: [ANNOUNCE] Apache Seata (incubating) ${version} available
The Apache Seata community announces the availability of
Apache Seata (incubating) ${version}.
Apache Seata is an open-source distributed transaction solution.
Downloads: https://seata.apache.org/download/seata-server/
Release notes: ${published_release_notes_url}
Project: https://seata.apache.org/
Public discussion: dev@seata.apache.org
${current_incubation_disclaimer}
根据项目维护分支及 ASF 分发政策检查旧版本。**从正式发布 SVN 目录移除旧版本前,先确认它已经出现在 Apache 归档站。**归档并非由新版本发布触发,历史下载链接应指向归档地址。