Repository navigation
v1.92.28.0 ship-receipt: a base merge's metadata changes no longer block carry (GST-343, #3606) - #3706
Merged
Conversation
… changes (GST-343, #3606) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
|
😎 This pull request was merged. |
…ry builds main's touchedPaths set once and passes it to productSpec Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…-stamp changes on either side (GST-343, GST-407 cycle 5 test) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…er demotes its glob Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
4 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
#3656 taught receipt carry that a
changelog.d/<slug>.mdfragment is release metadata, but #3606 (GSTA-162) still refused with RECEIPT_CARRY_PRODUCT_CHANGED although its product patch-id was unchanged (c8f281d8). Its receipt was written before #3654, so merging main brought inchangelog.d/README.md. Carry counted that README as a product change and dropped the fragment rule for the whole range. The PR's own fragment then entered HEAD's product patch-id but not the reviewed one. The lane had to rewrite the receipt by hand (GST-343).What changed
bin/gstack-ship-receipt). Carry now drops a metadata glob from the product exclusion for a path the branch touched against the base, and only when that path's change is not a version stamp. The non-stamp change can be between the two heads or on either branch side (the reviewed range or the current one), counting only sides where the file actually changed. A change only a base merge brought in has the same patch against the base at both heads, so it no longer drags a matching fragment into one side's patch-id. A README edit the PR makes itself still makes carry refuse. So does a stamped file the branch edited and main later landed (v1.92.16.0 fix: /ship stops re-running the review loop after base merges, test fixes and audit-requested doc fixes #3684's GST-407 case).touchedPaths(), built once before the product pathspec. Carry still refuses with RECEIPT_CARRY_REFUSED when git can't list it.Test plan
test/gstack-ship-receipt.test.ts: the fragment carry case addschangelog.d/README.mdon main together with the policy, as v1.91.342.0 ship-policy: gstack versions its own PRs at merge time (changelog_fragments on; GSTA-154 P) #3654 did. With main's carry code it fails (carry exits 3, RECEIPT_CARRY_PRODUCT_CHANGED). With this branch it passes, and the README-edit and no-policy cases are still refused.test/ship-rereview-triggers.test.tsfrom main (v1.92.16.0 fix: /ship stops re-running the review loop after base merges, test fixes and audit-requested doc fixes #3684) passes unchanged, including "carry refuses a product patch-id gap outside the context paths". The first merged version of this change failed it in the remote pregate, which is why the side check exists.CARRY: would carry from 49666bc82a41 to e28bb62d9153 (base merge + release metadata).gstack-ship-receipt carry, plus the module-size ratchet, passes locally.bun run typecheckis clean.gstack-pregate --stage tests --remote, UBI_OWNER=gsta154) at tree 81e9cfd9: 461 tests, 0 failed, $0.03. The Windows lane was cleared by this PR's CI run 41290101365.Review notes
git showcalls per branch side. The release-metadata carry test went from about 8 s to 13-17 s on a 4-core machine, still under the shard runner's 30 s.