hub v0.136.0: nightly VACUUM INTO snapshot, keep 2 (R-173 decision A); hub PVC 2Gi + Longhorn default group; 09 rulings 125-127; 05 §16.3
gates / gates (push) Failing after 14m0s

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0159rPz1ZhFKsS53msqPYxtS
This commit is contained in:
2026-10-05 14:28:30 +02:00
parent 0826e41b31
commit d4be9f6ff1
11 changed files with 544 additions and 3 deletions
@@ -0,0 +1,38 @@
### R1 — SnapshotInto copies hub.db as a file instead of VACUUM INTO
=== RUN TestSnapshot_ConsistentWithLiveDBIncludingWAL
dbsnap_test.go:104: table hosts: snapshot 0 rows, live 150
dbsnap_test.go:104: table hub_settings: snapshot 0 rows, live 2
--- FAIL: TestSnapshot_ConsistentWithLiveDBIncludingWAL (0.05s)
FAIL
FAIL gitea.dooplex.hu/admin/felhom-hub/internal/dbsnap 0.055s
FAIL
### R2 — no busy check (two runs may overlap)
=== RUN TestSnapshot_NeverTwoAtOnce
/mnt/5_hdd/felhom.eu/git/felhom.eu/hub/internal/dbsnap/dbsnap_test.go:141 +0x76
/mnt/5_hdd/felhom.eu/git/felhom.eu/hub/internal/dbsnap/dbsnap_test.go:153 +0x1a6
/mnt/5_hdd/felhom.eu/git/felhom.eu/hub/internal/dbsnap/dbsnap_test.go:141 +0x76
/mnt/5_hdd/felhom.eu/git/felhom.eu/hub/internal/dbsnap/dbsnap_test.go:151 +0x34
/mnt/5_hdd/felhom.eu/git/felhom.eu/hub/internal/dbsnap/dbsnap_test.go:151 +0x178
FAIL gitea.dooplex.hu/admin/felhom-hub/internal/dbsnap 600.107s
FAIL
### R3 — prune keeps everything
=== RUN TestSnapshot_KeepsNewestTwo
dbsnap_test.go:130: kept [hub-20261006T000000Z.db hub-20261007T000000Z.db hub-20261008T000000Z.db], want [hub-20261007T000000Z.db hub-20261008T000000Z.db]
--- FAIL: TestSnapshot_KeepsNewestTwo (0.07s)
FAIL
FAIL gitea.dooplex.hu/admin/felhom-hub/internal/dbsnap 0.075s
FAIL
### R4 — a failed write leaves its .tmp
=== RUN TestSnapshot_FailureLeavesNoFile
dbsnap_test.go:191: left 1 file(s) behind
--- FAIL: TestSnapshot_FailureLeavesNoFile (0.00s)
FAIL
FAIL gitea.dooplex.hu/admin/felhom-hub/internal/dbsnap 0.007s
FAIL
ok gitea.dooplex.hu/admin/felhom-hub/internal/dbsnap 0.135s
[exited with code 0]
@@ -0,0 +1,26 @@
Run 1 (R1–R4) in red-proof-run1.txt. R2 there HUNG (600 s timeout) — the old test blocked forever; it convicted by hanging. The test now fails cleanly; R2 re-run below.
### R2 (re-run) — no busy check
=== RUN TestSnapshot_NeverTwoAtOnce
dbsnap_test.go:162: second Make did not return ErrBusy at once: it ran alongside the first
--- FAIL: TestSnapshot_NeverTwoAtOnce (2.00s)
FAIL
FAIL gitea.dooplex.hu/admin/felhom-hub/internal/dbsnap 2.007s
FAIL
### R5 — main never schedules the snapshot
=== RUN TestR173_MainSchedulesTheDBSnapshot
r173_wiring_test.go:42: cmd/hub/main.go never calls scheduleDaily(ctx, "db-snapshot", "02:00", …) — no nightly snapshot
--- FAIL: TestR173_MainSchedulesTheDBSnapshot (0.00s)
FAIL
FAIL gitea.dooplex.hu/admin/felhom-hub/cmd/hub 0.025s
FAIL
### R6 — main has no start-up catch-up
=== RUN TestR173_MainSchedulesTheDBSnapshot
r173_wiring_test.go:45: cmd/hub/main.go never calls dbsnap.NeedsCatchUp — a pod down at 02:00 leaves a stale snapshot
--- FAIL: TestR173_MainSchedulesTheDBSnapshot (0.00s)
FAIL
FAIL gitea.dooplex.hu/admin/felhom-hub/cmd/hub 0.023s
FAIL