Revert the deliberate break (#8296)
release / web (push) Successful in 1m33s
release / go (push) Successful in 1m57s
release / govulncheck (push) Successful in 17s
release / integration (push) Successful in 3m23s
release / android (push) Successful in 4m26s
release / Build signed APK (push) Successful in 4m56s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Publish the release image to GHCR (dispatch only) (push) Skipped
release / Build + push container image (push) Successful in 13s
release / Verify release artifacts (tag releases only) (push) Skipped

All seven broken behaviours failed their named tests: five in the go lane
of run 11273 (after 25c7db71 fixed the reconcile case) and the resolver
note and stale-run reap in the integration lane of run 11272.

This reverts commit c03b3e0aa7.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-12-02 12:51:32 -05:00
co-authored by Claude Opus 5.5
parent 25c7db71b1
commit 8ed66cf132
7 changed files with 7 additions and 12 deletions
+1 -1
View File
@@ -286,7 +286,7 @@ func resolveNote(g *resolveGroup) string {
case ClassSameRelease: case ClassSameRelease:
return "The album holds this song more than once. The copies count as one song; merge to keep one." return "The album holds this song more than once. The copies count as one song; merge to keep one."
case ClassCrossRelease: case ClassCrossRelease:
if g.lone() >= 0 { // DELIBERATE BREAK if g.lone() < 0 {
return "Each copy belongs to its own release, so none is removed; they count as one song." return "Each copy belongs to its own release, so none is removed; they count as one song."
} }
return "Every copy but one is named like a video rip. They count as one song; merge to keep the one that is not." return "Every copy but one is named like a video rip. They count as one song; merge to keep the one that is not."
+1 -1
View File
@@ -79,7 +79,7 @@ func readID3v2GenreValues(rs io.ReadSeeker) ([]string, error) {
// Whole-tag unsynchronisation (2.2/2.3). 2.4 moved this per-frame, but // Whole-tag unsynchronisation (2.2/2.3). 2.4 moved this per-frame, but
// some writers still set it at tag level, and undoing it twice is // some writers still set it at tag level, and undoing it twice is
// harmless: after the first pass no 0xFF 0x00 pairs remain. // harmless: after the first pass no 0xFF 0x00 pairs remain.
_ = tagread.UndoUnsynchronisation // DELIBERATE BREAK body = tagread.UndoUnsynchronisation(body)
} }
if major >= 3 && tagFlags&0x40 != 0 { if major >= 3 && tagFlags&0x40 != 0 {
var ok bool var ok bool
+1 -1
View File
@@ -49,7 +49,7 @@ func ReadTagMBIDs(m tag.Metadata) TagMBIDs {
ReleaseGroup: cleanMBID(info.Get(mbz.ReleaseGroup)), ReleaseGroup: cleanMBID(info.Get(mbz.ReleaseGroup)),
Recording: cleanMBID(info.Get(mbz.Recording)), Recording: cleanMBID(info.Get(mbz.Recording)),
} }
if ids.Recording == "" && m.Format() == tag.ID3v1 { // DELIBERATE BREAK if ids.Recording == "" && m.Format() == tag.VORBIS {
ids.Recording = cleanMBID(info.Get(mbz.Track)) ids.Recording = cleanMBID(info.Get(mbz.Track))
} }
return ids return ids
+1 -1
View File
@@ -121,7 +121,7 @@ func (s *Scanner) uniqueMatch(
default: default:
s.logger.Info("library scan: ambiguous move match, inserting a new track instead", s.logger.Info("library scan: ambiguous move match, inserting a new track instead",
"path", newPath, "via", via, "candidates", len(cands)) "path", newPath, "via", via, "candidates", len(cands))
return cands[0], true // DELIBERATE BREAK return candidate{}, false
} }
} }
+1 -1
View File
@@ -192,7 +192,7 @@ func (s *Scanner) verifyRootsPresent() error {
// An empty root is the signature of a mount point with nothing mounted // An empty root is the signature of a mount point with nothing mounted
// on it. `os.Stat` succeeds on the bare directory, so this is the only // on it. `os.Stat` succeeds on the bare directory, so this is the only
// cheap way to tell the two apart. // cheap way to tell the two apart.
if len(entries) == 0 && root == "" { // DELIBERATE BREAK if len(entries) == 0 {
return fmt.Errorf("scan root %q is empty; refusing to reconcile", root) return fmt.Errorf("scan root %q is empty; refusing to reconcile", root)
} }
} }
+1 -6
View File
@@ -61,12 +61,7 @@ func (p *stagePublisher) Tick() {
// persist error. Call at stage end via a deferred wrapper that // persist error. Call at stage end via a deferred wrapper that
// routes the error to the orchestrator's captureErr — preserves // routes the error to the orchestrator's captureErr — preserves
// today's behavior where final-write failures are diagnostic. // today's behavior where final-write failures are diagnostic.
func (p *stagePublisher) Flush() error { // DELIBERATE BREAK func (p *stagePublisher) Flush() error { return p.flush() }
n := p.sinceItem
err := p.flush()
p.sinceItem = n
return err
}
func (p *stagePublisher) flush() error { func (p *stagePublisher) flush() error {
blob := p.marshal() blob := p.marshal()
+1 -1
View File
@@ -67,7 +67,7 @@ func TryStartScan(ctx context.Context, pool *pgxpool.Pool,
if qerr == nil { if qerr == nil {
// Found an in-flight row. Reap if stale, else skip. // Found an in-flight row. Reap if stale, else skip.
age := time.Since(row.StartedAt.Time) age := time.Since(row.StartedAt.Time)
if age <= StuckScanThreshold || age > 0 { // DELIBERATE BREAK if age <= StuckScanThreshold {
return false, &row, nil return false, &row, nil
} }
logger.Warn("reaping stale in-flight scan", logger.Warn("reaping stale in-flight scan",