Repository navigation
feat(release): lean glob size-budget gate, 3-phase release pipeline, and rustc provenance - #519
Conversation
eric8810
left a comment
There was a problem hiding this comment.
质量 gate 方向对,但 inventory 从 105 变 65,40 个 JVM checksum deliverables 没登记;release.yml 仍生成/上传 .md5/.sha1/.sha256/.sha512,违反单源。Rust 1.100 pin 不在 head(rust-toolchain 仍 stable,check_toolchain_pin 被删),与 PR body 冲突。GitHub Release 仍可能覆盖 assets 或在 master 而非 github.sha 打 tag;target_warning 未实现。请先修这些。
7220276 to
a283d1c
Compare
|
@eric8810 Thanks for the feedback and patience — we stepped back, realized the previous
Ready for another look whenever you have a moment! |
a283d1c to
c8be422
Compare
|
@eric8810 Rebased onto As a quick recap from the prior rewrite, this PR is now an 82% net diff reduction ( |
c8be422 to
9003f13
Compare
|
看到你 rebase 到了 0.7.0 master(9003f133),谢谢。但上次 review 唯一剩下的阻塞点还没动: |
…and rustc provenance
9003f13 to
3b2be0c
Compare
|
@eric8810 谢谢仔细核对,这里把
烦请按 |
eric8810
left a comment
There was a problem hiding this comment.
3b2be0c 复审通过。
关于 toolchain pin:我之前坚持 exact pin,是对着 issue #267 的标题而不是它 11-19 的决策更新。核实了 RFC-0043 §1.8 / §7.1 / §15 和 #267 最新评论都已改为"CI/release 保持 stable、MSRV 由 rust-version = "1.85" 兜底、发布构建的真实 rustc -V 由 assets-manifest.json 的 rustcVersion/rustcVersions 采集并在 stage/release 两处强校验 12 路齐全"——这是项目已经做出的决策,不是遗漏,我撤回这个阻塞点。
其余四点(inventory 105、checksum 单源、Release target_commitish/不覆盖、target_warning)在上一轮已确认修好。rebase 到 f4b2082 干净,保留了 #537 的 no-default-features clippy/test 和 #517。20/20 CI 绿。Approve。
非阻塞留档:assets-manifest.json 的 rustcVersion 是"事后可追溯",不是"事前可复现"——同一个 tag 在不同日期重跑 release 会得到不同的 rustc。这在 RFC 里是明确接受的权衡,但值得在 upgrading/release 文档里对下游说清楚。
Summary
Clean, maintainable rewrite of the size-budget gate and 3-phase release pipeline on top of latest
master(10 files, +2,431 / -418 = +2,013 net lines, down from+11,237— an 82% net reduction).Architecture
Glob-based size ceilings (
quality/size-budgets.json, 32 lines)android_totalaggregate (zero.md5/.sha*/.ascentries).scripts/quality/check_budgets.py) checks raw/packed/unpacked ceilings, target warnings, archive hygiene (ZIP CRC + mode/symlink/collision guards, TAR zero-block end-of-archive + trailing-garbage/symlink/collision guards, Python wheel native-extension presence, iOSxcframeworkInfo.plist+ slices), and commit/version-scoped temporary exceptions with a 14-day UTC cap.rfc/0043-size-performance-budgets.mdand wired lightweight checks into.github/workflows/ci.yml.3-phase release pipeline (
.github/workflows/release.yml) reusing official ecosystem toolscargo package --no-verifyacross all 6 workspace crates +check_budgets.py.npm run build:typed), injects platformoptionalDependencies, packs all 7.tgztarballs withnpm pack, verifies exports & ceilings, recordsSHA256SUMS.twine check+check_budgets.py, records per-wheelSHA256SUMS-*.flutter pub publish --to-archive, verifies ceilings withcheck_budgets.py, recordsSHA256SUMS.bindings/{java,kotlin}/build.gradle.kts), stages viagradle publishToMavenLocal, verifies all 10 deliverables against workspace version & ceilings, recordsjvm-verified.sha256.ZIP_DEFLATEDaimux_ffi.xcframework.zip+assets-manifest.json(scripts/stage_release_assets.py), re-verifying with--verifyandcheck_budgets.py.release-gate:git ls-remote, workspace/binding version alignment (tomllibfor Cargo/Python, JSON for Node, YAML for Flutter, real Gradle evaluation injvm-build), and that every selected Phase-1 job succeeded before unlocking any credentialed job.cargo publish,npm publish ./packed/*.tgz --ignore-scripts,pypa/gh-action-pypi-publish, Gradle--init-scriptpre-uploadPublishToMavenRepository.doFirstdigest hook,flutter pub publish --force --from-archive, and non-forced immutable GitHub Release with draft recovery and monotonic remote-tag verification).Rust toolchain stays on
stable+ fullrustcprovenancerust-toolchain.tomland CI/release workflows onstable(no hard-pinned minor version orcheck_toolchain_pin.py).rustc -Vfrom all 12 release Rust builders (go-build,ffi-build,console-build,flutter-ffi-mobile) intoassets-manifest.json(rustcVersion+ per-builderrustcVersions) and verifies all 12 builders ingithub-stageandgithub-release.Verification
python3 -m unittest discover -s scripts/tests -v(70 tests, including 14 targeted budget & staging tests) — PASSpython3 scripts/quality/check_budgets.py --validate-only— PASS (22 rules, 1 aggregate, 0 exceptions)cargo package --no-verify -p aimux-stream -p aimux-core -p aimux-provider-utils -p aimux-providers -p aimux-ops -p aimux-ffi+check_budgets.pyon all 6.cratefiles — PASSbash -n(33 steps), Python AST (6 heredocs), andnode --check(3 blocks) across.github/workflows/{ci,release}.yml— PASSnpm publish ./packed/*.tgz --dry-run --ignore-scripts— PASS