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
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:
@@ -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
|
// 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
|
// under the race detector, and check first that this default is at least
|
||||||
// bcrypt's.
|
// bcrypt's.
|
||||||
var passwordCost = bcrypt.DefaultCost
|
var passwordCost = bcrypt.DefaultCost - 2 // DELIBERATE BREAK
|
||||||
|
|
||||||
// hashPassword is the one place a password is hashed for storage.
|
// hashPassword is the one place a password is hashed for storage.
|
||||||
func hashPassword(pw string) ([]byte, error) {
|
func hashPassword(pw string) ([]byte, error) {
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ func (e *Enricher) EnrichArtist(ctx context.Context, artistID pgtype.UUID, dataD
|
|||||||
case "theaudiodb":
|
case "theaudiodb":
|
||||||
return nil
|
return nil
|
||||||
case "none":
|
case "none":
|
||||||
if row.ArtistArtSourcesVersion == currentVersion {
|
if row.ArtistArtSourcesVersion <= currentVersion { // DELIBERATE BREAK
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
if err := q.ClearArtistArtNone(ctx, artistID); err != 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 != "" {
|
if thumbPath != "" {
|
||||||
thumbArg = &thumbPath
|
thumbArg = &thumbPath
|
||||||
}
|
}
|
||||||
if fanartPath != "" {
|
fanartArg = &fanartPath // DELIBERATE BREAK
|
||||||
fanartArg = &fanartPath
|
|
||||||
}
|
|
||||||
return pgx.BeginFunc(ctx, e.pool, func(tx pgx.Tx) error {
|
return pgx.BeginFunc(ctx, e.pool, func(tx pgx.Tx) error {
|
||||||
if err := dbq.New(tx).SetArtistArtWithVersion(ctx, dbq.SetArtistArtWithVersionParams{
|
if err := dbq.New(tx).SetArtistArtWithVersion(ctx, dbq.SetArtistArtWithVersionParams{
|
||||||
ID: artistID,
|
ID: artistID,
|
||||||
|
|||||||
Reference in New Issue
Block a user