fix(backup-drill): git fsck must not fail on a stale commit-graph #767
Etiketter
Inga etiketter
area/backups
area/ci
area/control-panel
area/identity
area/infra
area/observability
area/payments
area/security
area/storage
area/web
blocked
needs-info
needs-triage
priority
high
priority
low
priority
medium
ready-for-implementation
type
bug
type
chore
type
docs
type
epic
type
feature
type
task
wontfix
Ingen milstolpe
Inget projekt
Inga tilldelade
1 deltagare
Notiser
Förfallodatum
Inget förfallodatum satt.
Beroenden
Inga beroenden satta
Referens
bitborg/bitborg-infra#767
Läser in…
Hänvisa till i nytt ärende
Ingen beskrivning angiven.
Ta bort grenen "%!s()"
Borttagning av en gren är permanent. Även om den borttagna grenen kan fortsätta existera en kort tid innan den faktiskt tas bort, kan det INTE ångras i de flesta fall. Vill du fortsätta?
The restore drill's hot leg runs
git fsck --connectivity-onlywith the repository's commit-graph enabled. A stale commit-graph turns the drill red although every object is present.Seen
2026-10-17: after branches were deleted on
bitborg/bitborg-infraandbitborg/bitborg-internal, their commit-graph still listed the removed commits. fsck failed withCould not read <sha>/failed to parse commit ... from object database for commit-graph(exit 16). With-c core.commitGraph=falseall 15 repos passed.git commit-graph write --reachablefixed both repos.Change
roles/backup-drill/templates/restore-hot-on-scratch.sh.j2: run the fsck with-c core.commitGraph=false, so it checks objects and connectivity, not the cache.Done when
Second finding, same drill (2026-10-17 19:12 UTC). The drill picks the newest hot snapshot, then boots the VM, then restores. An hourly hot run in that gap ran
forget(keep-hourlykeeps one per hour) and deleted the picked snapshot:Load(<snapshot/31ce02c604>) failed: The specified key does not exist. Fix in the same PR:ExecCondition=/bin/sh -c '! systemctl --user is-active -q bitborg-backup-drill.service'on the hot backup unit, so a hot run is skipped while a drill runs.Triaged 2026-10-17: priority/high. The Sat 2026-10-24 drill must pass on or after that date before the 2026-10-26 purge (#585) can run, so this should land first. Pairs with #768.
Verified live 2026-10-18 with an on-demand drill after the #769 apply. The hot leg restored snapshot 2cfb3dff:
bitborg_backup_drill_hot_status 0, 15 repos fsck-checked, 0 orphans. The hourly hot run at 09:17 UTC wasSkipped due to 'exec-condition'while the drill was running, so the picked snapshot survived. The drill passed.