Repository navigation
release: 0.12.3 — One bad byte - #278
Merged
Merged
Conversation
fdaviddpt
force-pushed
the
release/0.12.3
branch
from
July 31, 2026 17:34
d47334e to
6e55650
Compare
Five fixes in the backup path (#251, #257, #258, #260, #261). The lead item inverts an issue we filed ourselves. We reported that a corrupt cooldown marker would bypass the throttle; the direction was backwards and the truth is worse. 50-git-backup.sh sets `set -u` — with the comment "not -e — we never want to fail loudly here" — and then does arithmetic on the marker's contents with the variable bare inside $(( )). A single letter is an unbound variable reference, so the hook dies on that line, above the lock and the commit. The marker was only rewritten after a successful commit, so it stayed corrupt: one bad byte stopped the backup permanently. Also, found while fixing the others and reported by nobody: a store whose push target is not named origin backed up nowhere forever, and the poisoned-remote guard validated a URL that was not the one the push used. Manifest bumped per #133 — the updater compares manifest versions and nothing else, so a release that forgets it ships nothing. Co-Authored-By: Max <noreply>
fdaviddpt
force-pushed
the
release/0.12.3
branch
from
July 31, 2026 17:45
6e55650 to
256011f
Compare
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.
Patch release. Manifest
0.12.2→0.12.3, CHANGELOGUnreleasedclosed into a0.12.3heading. Five entries: #251, #257, #258, #260, #261.Why this one is worth reading
It inverts an issue we filed ourselves. #258 reported that a corrupt cooldown marker bypasses the throttle — the backup would run too often. Backwards, and the truth is worse:
50-git-backup.shsetsset -u, with the comment "not -e — we never want to fail loudly here", and then evaluates the marker's contents as an arithmetic expression with the variable bare inside$(( )). One letter is an unbound variable reference, so the hook dies on that line — above the lock, the staging and the commit. The marker was only rewritten after a successful commit, so it stayed corrupt: one bad byte stopped the backup permanently.The file reasons explicitly about not failing loudly and picks the exact option that makes it fatal.
And one finding nobody reported, surfaced while fixing the others: a store whose push target is not named
originbacked up nowhere, forever — the push follows the branch's upstream while the validation askedgit remote get-url origin. The poisoned-remote guard had the same split, recording and checking a URL that was not the one the push used, so it was sidestep-able viabranch.<name>.remote.Not destructive, but permanent
None of these five deletes anything — the memory stays on the machine in every case. What they share is that the backup stopped while reporting that it had run, and #258's case never resumes on its own. That is the distinction between fails to preserve and destroys: recoverable in principle, indefinitely unrecovered in practice.
Verification
mainat243ddb9; its post-squash run must be verified green before this merges — that gate is checked, not assumed. Release content is manifest + CHANGELOG only, no code paths touched.test_version_manifest.py: 4 passed. Section placement verified by listing issue numbers per heading:[Unreleased]empty,[0.12.3]holds all five,[0.12.2]untouched.Awaiting your go
Release flow stays on the never-auto list, so this sits open. Merge + tag +
gh releaseis one call each whenever you want it.