Repository navigation
fix(release): preserve post-cut manifest fields - #7159
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
There was a problem hiding this comment.
This change fixes a real hazard in the post-release sync: requiring manifests to match the release tag byte-for-byte could silently delete exports and other package fields added on main after the cut. Validating manifests field-by-field instead — current main plus the released version and internal pin updates, with any other drift rejected — preserves those fields while keeping changelogs and codemod outputs byte-identical to the tag. The new regression tests cover both the preserved-fields case and the rejection paths, and the targeted suite passes.
[Automated review]
There was a problem hiding this comment.
Approving. Validation now catches a sync that drops newer manifest fields, still accepts a correct sync, and keeps the exact checks against the tag.
- Against the real 0.6.6 release (cut, tag and the open sync's own commit), the current validator accepts the sync that dropped
./fonts.css. This one rejects it, naming exactly the seven theme manifests that lost the export, the side-effect declaration and the published files. The other seven manifests in that sync are version-only, and they pass. - After I applied versions and internal pins field by field onto current main for those seven themes, the same validation passed, and a rerun with that synced state as the base also passed.
- What it still rejects: a single changed byte in a CHANGELOG, a changed script, an internal pin set to the wrong range, a third-party version change, a version left behind, and one theme dropping
./fonts.cssagain. Key order alone passes, since the comparison is field by field. The tag, branch-head and active-branch checks are unchanged. - The lockfile is no longer compared with the tag, which can't be avoided once newer main manifests are kept. Its coherence rests on the frozen installs the other required lanes run, which is what the Release Process now says.
- The 21 tests pass, and removing the field-level comparison fails the two new ones.
The red build-sandbox, registry-contract and docsite checks here come from main's missing table-template registrations, which #7156 fixes, not from this change. Because CI runs the validator from main, the 0.6.6 sync needs a rerun after this merges.
[Automated review]
PR Analysis Report
|
6e3a311 to
abf8b51
Compare
Summary
Make post-release bookkeeping syncs update package manifests field-by-field instead of copying the immutable tag manifests wholesale.
@astryxdesign/*dependency-pin changes generated between the cut and the release tag.main, including exports, published files, and side-effect declarations.User impact
A release sync can no longer silently remove package exports or files added after the release cut. In particular, the bundled theme
./fonts.cssexports remain available onmainfor the next published package set.Validation
pnpm vitest run --project node scripts/release/active-release.test.mjs— 21/21pnpm check:repopnpm exec prettier --check scripts/release/active-release.mjs scripts/release/active-release.test.mjsgit diff --checkThe regression tests reject both a wholesale tag-manifest copy and any other non-version manifest edit.