Skip to content

fix(release): restrict checksums to published artifacts (#548) - #549

Merged
liujuanjuan1984 merged 1 commit into
mainfrom
fix/release-checksum-artifact
Oct 25, 2026
Merged

liujuanjuan1984 merged 1 commit into
mainfrom
fix/release-checksum-artifact

Conversation

@liujuanjuan1984

Copy link
Copy Markdown
Contributor

背景

v1.4.0 的首次 Release workflow 已完成构建、依赖审计和 artifact 上传,但 PyPI job 在校验 SHA256SUMS 时失败。

根因是 uv build 在 dist/ 中生成了隐藏文件 .gitignore。checksum 生成逻辑把所有文件都纳入清单,而 artifact 默认不上传隐藏文件,导致下载后无法校验 .gitignore。

修复

  • checksum 仅覆盖最终需要发布的 wheel、sdist 和 CycloneDX SBOM。
  • 增加 workflow 契约测试,锁定上述发布文件选择范围。
  • 不移动 v1.4.0 tag;合并后通过同一 tag 的手工 recovery 重新执行发布。

验证

  • ./scripts/doctor.sh:通过,832 项测试。
  • 覆盖率:92.76%。
  • actionlint:通过。
  • 修复分支 PR 检查和合并后 main 检查通过。

Closes #548

@liujuanjuan1984
liujuanjuan1984 marked this pull request as ready for review October 25, 2026 04:45
@liujuanjuan1984
liujuanjuan1984 merged commit e7429e8 into main Oct 25, 2026
5 checks passed
@liujuanjuan1984
liujuanjuan1984 deleted the fix/release-checksum-artifact branch October 25, 2026 04:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[fix] 修复 v1.4.0 发布产物校验和失败

1 participant