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:
@@ -124,7 +124,7 @@ func (c *Client) SubmitListens(ctx context.Context, token string, listens []List
|
||||
case resp.StatusCode >= 500:
|
||||
return fmt.Errorf("%w: status %d", ErrTransient, resp.StatusCode)
|
||||
default:
|
||||
return fmt.Errorf("%w: status %d", ErrPermanent, resp.StatusCode)
|
||||
return fmt.Errorf("%w: status %d", ErrTransient, resp.StatusCode) /* DELIBERATE BREAK */
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -10,5 +10,5 @@ package scrobble
|
||||
// The two thresholds are deliberately separate from the skip-detection
|
||||
// thresholds, which feed the scoring formula's skip penalty instead.
|
||||
func Qualifies(durationPlayedMs int, completionRatio float64) bool {
|
||||
return durationPlayedMs >= 240_000 || completionRatio >= 0.5
|
||||
return durationPlayedMs > 240_000 /* DELIBERATE BREAK */ || completionRatio >= 0.5
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user