Skip to content

chore(changeset): keep check:dot-folder passing after versioning and shorten the rename note for 14 packages - #1706

Merged
pranavosu merged 2 commits into
mainfrom
chore/dot-folder-changeset-after-versioning
Nov 20, 2026
Merged

pranavosu merged 2 commits into
mainfrom
chore/dot-folder-changeset-after-versioning

Conversation

@pranavosu

Copy link
Copy Markdown
Collaborator

Why

The rc.1 version PR (#1703) has two problems that both come from .changeset/cdk-blocks-dot-folder.md.

  • npm run check:dot-folder fails on the version PR's tree. The check allows .changeset/cdk-blocks-dot-folder.md to name the old folder, but in pre mode changeset version moves a consumed changeset to .changeset/pre/. The version PR is opened by the release workflow and runs no checks, so "Local Build and Checks" would first fail on main, for every PR, after the release merges.
  • The version PR is large because that changeset names 20 packages and changeset version copies its full text, about 600 words, into each of their changelogs.

What changed

  • scripts/dot-folder-guard.ts: one more ALLOWED entry, for .changeset/pre/cdk-blocks-dot-folder.md.
  • .changeset/cdk-blocks-dot-folder.md now names only the six packages it bumps as minor. Its text is unchanged.
  • .changeset/cdk-blocks-dot-folder-blocks.md is new. It names the 14 packages that were bumped as patch, with a five-sentence note that points at the @aws-cdk-blocks/core changelog.

Scope

Release metadata and one guard allowlist entry. No package source changes. Every package keeps the bump level it had.

Tradeoffs

The 14 block changelogs no longer carry the full migration steps. They say where the data moved and link to the core entry, which every app has installed. If reviewers want the full text everywhere, drop the second commit and keep the first.

Blast Radius

The release workflow regenerates #1703 from main, so it shrinks on the next push. The 1.0.0 changelogs get the same shorter entries, because leaving pre mode reapplies every changeset.

Verification

Simulated in a worktree by running npx changeset version and staging the result.

  • check:dot-folder on chore: version packages (rc) #1703's current tree (d3be633c): exit 1, three findings in .changeset/pre/cdk-blocks-dot-folder.md. On the versioned tree of this branch: exit 0.
  • Changelog text added by versioning: 107,794 characters on main, 58,416 on this branch. 22 packages still move to 1.0.0-rc.1.
  • changeset-guard.ts validate-structure passes before and after versioning, and node --test scripts/dot-folder-guard.test.mjs passes 23 of 23.

check:dot-folder allows .changeset/cdk-blocks-dot-folder.md to name the old
folder. In pre mode, changeset version moves a consumed changeset to
.changeset/pre/ and keeps its text, so the check fails on the versioned tree
with three findings in .changeset/pre/cdk-blocks-dot-folder.md. The version PR
runs no checks, so the failure would first show on main after the release.

Allow the file at its post-versioning path as well.
…e folder rename

cdk-blocks-dot-folder named 20 packages, and changeset version copies a
changeset's full text into the changelog of every package it names. The 14
packages it bumped as patch each got the whole migration guide.

Keep the full text for the six packages it bumps as minor, and move the 14
patch-only packages to a second changeset with a five-sentence note that points
at the core changelog. The bump levels are unchanged.
@pranavosu
pranavosu requested a review from a team as a code owner November 20, 2026 05:16
@pranavosu
pranavosu enabled auto-merge (squash) November 20, 2026 05:22
@pranavosu
pranavosu disabled auto-merge November 20, 2026 05:22
@pranavosu
pranavosu merged commit fbe48c5 into main Nov 20, 2026
38 checks passed
@pranavosu
pranavosu deleted the chore/dot-folder-changeset-after-versioning branch November 20, 2026 05:23

This branch was previously deployed

1 inactive deployment
e2e — 5f9c5059 Deployed Nov 20, 2026 by pranavosu via E2E Amplify Interop (Browser) #7538
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.

1 participant