test: DELIBERATE BREAK, expected red, reverted next (#8298, #8330)
release / go (push) Failing after 2m4s
release / integration (push) Failing after 3m2s
release / web (push) Successful in 1m49s
release / govulncheck (push) Successful in 22s
release / Attach APK to the Release (tag releases only) (push) Canceled after 0s
release / Build + push container image (push) Canceled after 0s
release / Publish the release image to GHCR (dispatch only) (push) Canceled after 0s
release / Verify release artifacts (tag releases only) (push) Canceled after 0s
release / Build signed APK (push) Canceled after 53s
release / android (push) Canceled after 1m43s

The three tests run 11288 could not reach:
- artist enricher: "none" under older providers is not asked again
  -> TestEnrichArtist_WhichArtistsAreAsked
- artist enricher: a fanart path recorded with no fanart
  -> TestEnrichArtist_OnePictureOfTwo
- api: passwordCost default below bcrypt.DefaultCost
  -> TestPasswordCost_StoredPasswordsUseAtLeastBcryptsDefault

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-12-02 14:24:28 -05:00
co-authored by Claude Opus 5.5
parent 201ad741ea
commit 359101c451
2 changed files with 3 additions and 5 deletions
+1 -1
View File
@@ -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
var passwordCost = bcrypt.DefaultCost - 2 // DELIBERATE BREAK
// hashPassword is the one place a password is hashed for storage.
func hashPassword(pw string) ([]byte, error) {
+2 -4
View File
@@ -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 {
if row.ArtistArtSourcesVersion <= currentVersion { // DELIBERATE BREAK
return nil
}
if err := q.ClearArtistArtNone(ctx, artistID); err != nil {
@@ -127,9 +127,7 @@ func (e *Enricher) recordArtistArt(ctx context.Context, artistID pgtype.UUID, th
if thumbPath != "" {
thumbArg = &thumbPath
}
if fanartPath != "" {
fanartArg = &fanartPath
}
fanartArg = &fanartPath // DELIBERATE BREAK
return pgx.BeginFunc(ctx, e.pool, func(tx pgx.Tx) error {
if err := dbq.New(tx).SetArtistArtWithVersion(ctx, dbq.SetArtistArtWithVersionParams{
ID: artistID,