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:
@@ -231,7 +231,7 @@ func (w *Writer) RecordPlayEnded(
|
||||
if track.DurationMs > 0 {
|
||||
ratio = float64(durationPlayedMs) / float64(track.DurationMs)
|
||||
}
|
||||
isSkip := ratio < w.skipMaxCompletionRatio && durationPlayedMs < w.skipMaxDurationPlayedMs
|
||||
isSkip := ratio < w.skipMaxCompletionRatio || /* DELIBERATE BREAK */ durationPlayedMs < w.skipMaxDurationPlayedMs
|
||||
ratioPtr := ratio
|
||||
durPtr := durationPlayedMs
|
||||
if _, err := q.UpdatePlayEventEnded(ctx, dbq.UpdatePlayEventEndedParams{
|
||||
|
||||
Reference in New Issue
Block a user