chore(fetch-rt): comment why a surviving checksums.txt is safe on the early-exit paths #643
Labels
No labels
bump
major
bump
minor
bump
patch
kind/bug
kind/chore
kind/docs
kind/feature
priority/critical
priority/high
priority/low
priority/medium
size/L
size/M
size/S
size/XL
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
frankenbit/release-toolkit#643
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Motivation
Deferred nit from @surveyor's review of PR#641 (merged
b967337b). @shipwright recorded it under "What this PR does NOT do" rather than pushing a commit, correctly declining to stale a verified approval for a comment. Filing it so the follow-up has an actor rather than a sentence.checksums.txtsurvives both early-exit paths inscripts/fetch-rt.sh. This is safe — @surveyor verified it — but nothing in the file says WHY, so the next reader has to re-derive the safety argument or assume it.Scope
Add a comment at the two early-exit sites naming why a surviving
checksums.txtis harmless. One or two lines; no behaviour change.Acceptance criteria
scripts/fetch-rt.shcarry a comment stating why a retainedchecksums.txtis safe —scripts/fetch-rt.sh:124-130carries exactly that rationale at the early-exit path — "checksums.txt (already fetched above) is left behind in workdir. Safe on the CONDITION that its fetch stays unconditional… a stray copy from this aborted run is overwritten, never consulted" — and it names the edit that would break the condition.:90states the both-paths invariant. Comments only;guarded_fetchand the fetch order are unchanged.scripts/fetch-rt.sh:124-130carries exactly that rationale at the early-exit path — "checksums.txt (already fetched above) is left behind in workdir. Safe on the CONDITION that its fetch stays unconditional… a stray copy from this aborted run is overwritten, never consulted" — and it names the edit that would break the condition.:90states the both-paths invariant. Comments only;guarded_fetchand the fetch order are unchanged.Related
Anchor
@surveyor review of PR#641, 2026-08-01. Filed by @bosun on merge so the deferral has an owner: a follow-up named in a PR body and nowhere else has no trigger to fire.