Skip to content

fix(release): preserve post-cut manifest fields - #7159

Merged
cixzhang merged 1 commit into
mainfrom
fix/release-sync-version-fields
Oct 8, 2026
Merged

cixzhang merged 1 commit into
mainfrom
fix/release-sync-version-fields

Conversation

@cixzhang

@cixzhang cixzhang commented Oct 8, 2026

Copy link
Copy Markdown
Contributor

Summary

Make post-release bookkeeping syncs update package manifests field-by-field instead of copying the immutable tag manifests wholesale.

  • Keep changelogs and codemod outputs byte-identical to the published tag.
  • Apply only the package version and internal @astryxdesign/* dependency-pin changes generated between the cut and the release tag.
  • Preserve every newer field already present on current main, including exports, published files, and side-effect declarations.
  • Keep frozen-lockfile installation as the lockfile-coherence gate while allowing current-main package metadata to survive.

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.css exports remain available on main for the next published package set.

Validation

  • pnpm vitest run --project node scripts/release/active-release.test.mjs — 21/21
  • pnpm check:repo
  • pnpm exec prettier --check scripts/release/active-release.mjs scripts/release/active-release.test.mjs
  • git diff --check

The regression tests reject both a wholesale tag-manifest copy and any other non-version manifest edit.

@vercel

vercel Bot commented Oct 8, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
astryx Ready Ready Preview Oct 8, 2026 7:27am UTC

Request Review

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Oct 8, 2026
@astracat-bot

astracat-bot Bot commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

Review status Updated
🟢 Reviewed (for maintainers only) Oct 8, 2026, 7:33 AM UTC

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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]

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.css again. 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]

@github-actions

github-actions Bot commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

PR Analysis Report

Previews ready: Storybook and Sandbox were built with this PR's docsite. CI evidence will be added when available.

View Storybook for this PR · View Sandbox for this PR

@cixzhang
cixzhang force-pushed the fix/release-sync-version-fields branch from 6e3a311 to abf8b51 Compare October 8, 2026 07:19
@cixzhang
cixzhang enabled auto-merge (squash) October 8, 2026 07:19
@cixzhang
cixzhang merged commit 9a35bb5 into main Oct 8, 2026
41 checks passed
@github-actions
github-actions Bot deleted the fix/release-sync-version-fields branch October 9, 2026 06:25

This branch was successfully deployed

1 active deployment
Preview — abf8b514 Deployed Oct 8, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant