next is red: queue_depth.go calls (*gorm.DB).Scan, which interpolates bound values into logged SQL #234
Reference in New Issue
Block a user
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?
nextataba02bcfailsmake checkon its own, with no branch applied.Both call sites are in
internal/delivery/queue_depth.go, which arrivedwith the queue-depth metrics work.
internal/gormlog/scan_guard_test.goexists because
(*gorm.DB).Scanswaps GORM's own trace recorder in forthe logging adapter, and that recorder does not implement
gorm.ParamsFilter— so the statement is logged with its bound valuesinterpolated, bypassing
(*Logger).ParamsFilter. The guard is the onlything holding that invariant.
The second call site binds a
status IN ?list of delivery statuses,so today's leak is low-value; the point of the guard is that the next
call site added by copying this pattern will not be.
The fix per the guard's own message is
Find,Pluck, orRaw(...).Row().Scan.Reproduced by checking out
origin/nextclean and runningmake check— it is not caused by any open branch. Found while running the gate for
#228, whose branch inherits the
failure through its rebase; nothing in that branch touches
internal/delivery/queue_depth.goorinternal/gormlog.clawbot referenced this issue2026-08-20 07:38:15 +02:00