From b6454270b5e49f8e192984ff8af20a3fc9bbe4ef Mon Sep 17 00:00:00 2001 From: Bryan Van Deusen Date: Wed, 2 Dec 2026 14:29:14 -0500 Subject: [PATCH] Revert the deliberate break (#8298, #8330) Run 11291 failed all three named tests. The api package ran its whole suite past the weakened cost and the lane went on to coverart, which also failed TestEnrichArtist_APictureFoundIsInTheSyncLog on the fanart-path break. This reverts commit 359101c4518121b1ee30d17f67822154eeb01ef1. Co-Authored-By: Claude Opus 5.5 --- internal/api/prelude.go | 2 +- internal/coverart/artist_enricher.go | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/internal/api/prelude.go b/internal/api/prelude.go index ec1edaa3..0fe0a64e 100644 --- a/internal/api/prelude.go +++ b/internal/api/prelude.go @@ -47,7 +47,7 @@ func checkNewPassword(w http.ResponseWriter, pw string) bool { // tests lower it, since each hash at the default cost takes most of a second // under the race detector, and check first that this default is at least // bcrypt's. -var passwordCost = bcrypt.DefaultCost - 2 // DELIBERATE BREAK +var passwordCost = bcrypt.DefaultCost // hashPassword is the one place a password is hashed for storage. func hashPassword(pw string) ([]byte, error) { diff --git a/internal/coverart/artist_enricher.go b/internal/coverart/artist_enricher.go index e38afd92..1a0b5738 100644 --- a/internal/coverart/artist_enricher.go +++ b/internal/coverart/artist_enricher.go @@ -49,7 +49,7 @@ func (e *Enricher) EnrichArtist(ctx context.Context, artistID pgtype.UUID, dataD case "theaudiodb": return nil case "none": - if row.ArtistArtSourcesVersion <= currentVersion { // DELIBERATE BREAK + if row.ArtistArtSourcesVersion == currentVersion { return nil } if err := q.ClearArtistArtNone(ctx, artistID); err != nil { @@ -127,7 +127,9 @@ func (e *Enricher) recordArtistArt(ctx context.Context, artistID pgtype.UUID, th if thumbPath != "" { thumbArg = &thumbPath } - fanartArg = &fanartPath // DELIBERATE BREAK + if fanartPath != "" { + fanartArg = &fanartPath + } return pgx.BeginFunc(ctx, e.pool, func(tx pgx.Tx) error { if err := dbq.New(tx).SetArtistArtWithVersion(ctx, dbq.SetArtistArtWithVersionParams{ ID: artistID,