Repository navigation
v1.93.42.0 fix(stamp): name branch lines by position; carry and finish accept a kept VERSION claim (GST-979, GST-980) - #3889
Merged
Conversation
…kept VERSION claim (GST-979, GST-980) BranchSide carries the positions of the branch-added lines and stampOnlyLine takes the removed line position, so a base line whose text duplicates a branch line keeps the old-version floor. At equal versions only the branch own lines may move. stampOnlyText and stampedFiles accept a kept claim for those lines, and the carry leaves a stamp file out of the product comparison when its only change since the reviewed head is a stamp on the branch own rows and the base did not touch it. Failing-first: all five new tests fail on main fc292e2. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…e by line at the branch's positions, and keeps its mode) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…-980) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…ence already states the carry rule Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…980 sentence already states the carry rule" This reverts commit f926ccb.
|
😎 This pull request was merged. |
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.
Why
After GST-963 (#3862), the reviewers found three gaps in the checks that accept a stamp commit.
What changed
lib/stamp-only.ts:BranchSidecarries the positions of the branch's lines, andstampOnlyLinetakes the removed line's position. Only a line at a branch-added position gets the fork-version bound. When the version doesn't move, only such a line may change.lib/restamp.ts:parseUnifiedDiffrecords each removed line's old-side position. The tree receipt, the train checks and finish'sstampedFilespass it along.lib/ship-receipt.ts,lib/ship-bin-common.ts:stampOnlyTextandstampedFilesaccept a kept VERSION claim for the branch's own rows, and nothing else.bin/gstack-ship-receiptcarry: a stamp file can be left out of the product comparison when all of these hold:The carry records
a stamp on the branch's own rows (<file>)and reads the file line by line. Only lines at the branch's positions may move, and the file must keep its reviewed mode.docs: docs/ship-policy.md gets the carry-table row and the stamp_paths sentence. docs/troubleshooting.md's
RECEIPT_CARRY_PRODUCT_CHANGEDfix list names the carry case.Proof
PREGATE_REMOTE: tree=92ce6dafc0e9 tests=6321 failed=0 spent=0.05(us-east-a2). The VM was destroyed.Review
The panel ran as the full gate class, in two rounds. GStack Minder then granted one fix-check on the restored carry-table row under rule 23. It returned
NO FINDINGS.TARGETED classes=nonebecause the gate scan tags no hunks. The--classes gatereader was hand-rendered and run as one more read-only reader, and it returned NO FINDINGS. No false--gate-taggedcount was written.Open notes (below the floor)
bin/gstack-ship-receipt:677: a demoted stamp file that fails ownRows is refused through the fallback reason, which doesn't name the file.Documentation
Status: current. The re-audit found no documentation edits needed. docs/ship-policy.md's carry row and stamp_paths text match
planCarryandcmdCarry, and docs/troubleshooting.md is current. One low-severity coverage gap: the newstampedRowsfield is documented only through its recorded reason string.Fixes GST-979, GST-980.