Repository navigation
v1.91.344.0 ship-receipt: carry counts changelog fragments as release metadata (GST-343) - #3656
Merged
Merged
Conversation
…etadata (GST-343) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
|
😎 This pull request was merged. |
5 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Since #3654 turned on changelog fragments for gstack, a base merge that moves a PR's
[Unreleased]entry intochangelog.d/<slug>.mdmadegstack-ship-receipt carryrefuse with RECEIPT_CARRY_PRODUCT_CHANGED. Every lane that merged main lost its carry and needed a new review pass for a changelog edit (GST-343, found on #3648). Carry now counts a fragment as release metadata, the same way it countsCHANGELOG.md.What changed
lib/ship-receipt.ts,bin/gstack-ship-receipt). When the base policy setschangelog_fragments, each<dir>/<slug>.mddirectly under the directory is metadata and leaves the product patch-id. The directory's README.md, a nested path, a non-Markdown file, and a fragment under a policy withoutchangelog_fragmentsstay product. A README change in the range demotes the fragment glob, so that carry fails closed. A leading./or a trailing slash indiris normalized first, so git's pathspec and the classifier agree.Review notes
changelog_fragments.dirreads differently in git's glob and inmatchesAny. Other policy globs have the same gap, and the validator could reject\\in a later fix.planTreeCarry) still refuses. That fails closed.Test plan
test/gstack-ship-receipt.test.ts: a merge-only head that moves the entry intochangelog.d/feat.mdcarries as "base merge + release metadata". A README edit in the same merge is refused and named, and so is the same move when the base policy has nochangelog_fragments. The test failed before the fix ("metadata" expected, "product" received).bun run typecheckgstack-pregate --stage tests --remote, UBI_OWNER=gsta154) at tree 930c0401: 4105 tests, 0 failed, $0.05. macOS and Windows lanes cleared by this PR's CI runs 41137870268 and 41137870291.test/ship-receipt-carry-pregateand-carry-rewritefixture cases fail when gstack's launch environment is exported into the test shell. They fail the same way with main's carry code, and they pass on this branch without that environment.