test: DELIBERATE BREAK, expected red, reverted next (#8299)
release / web (push) Successful in 1m43s
release / go (push) Failing after 2m6s
release / govulncheck (push) Successful in 20s
release / integration (push) Failing after 2m48s
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 / android (push) Canceled after 2m8s
release / Build signed APK (push) Canceled after 1m47s
release / web (push) Successful in 1m43s
release / go (push) Failing after 2m6s
release / govulncheck (push) Successful in 20s
release / integration (push) Failing after 2m48s
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 / android (push) Canceled after 2m8s
release / Build signed APK (push) Canceled after 1m47s
- backup Coverage: a listed table missing from the schema goes unreported -> TestCoverage - scrobble: exactly four minutes no longer qualifies -> TestQualifies - listenbrainz submit: a 400 retried as transient -> TestClient_RefusalsMapToWhatTheWorkerDoes - playevents: either skip condition alone is a skip -> TestRecordPlayEnded_AppliesTheSkipRule - recsettings: tag scales up to 100 -> TestUpdateTaste_TagScales - apierror From: a plain error answered 400 -> TestFrom - auth RequireAdmin: no user in the context passes through -> TestRequireAdmin - providers: a 404 is transient -> TestHTTPClient_GetJSON_AnswersNotFoundOrTransient - quarantine: any reason accepted -> TestService_Refusals - playsessions: exactly the window starts a new session -> TestFindOrCreate_JoinsWithinTheWindowAndStartsAfterIt Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -42,7 +42,7 @@ func NewService(pool *pgxpool.Pool, dataDir string) *Service {
|
||||
// Flag inserts or updates a quarantine row for the caller. Re-flagging
|
||||
// the same (user, track) overwrites reason+notes (and bumps created_at).
|
||||
func (s *Service) Flag(ctx context.Context, userID, trackID pgtype.UUID, reason string, notes string) (dbq.Quarantine, error) {
|
||||
if !validReason(reason) {
|
||||
if !validReason(reason) && false /* DELIBERATE BREAK */ {
|
||||
return dbq.Quarantine{}, ErrBadReason
|
||||
}
|
||||
var notesPtr *string
|
||||
|
||||
Reference in New Issue
Block a user