test: DELIBERATE BREAK, expected red, reverted next (#8301)
release / go (push) Successful in 1m57s
release / integration (push) Successful in 2m48s
release / govulncheck (push) Successful in 23s
release / web (push) Failing after 1m22s
release / android (push) Failing after 1m31s
release / Build signed APK (push) Failing after 3m12s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Build + push container image (push) Skipped
release / Publish the release image to GHCR (dispatch only) (push) Skipped
release / Verify release artifacts (tag releases only) (push) Skipped

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-12-02 17:33:27 -05:00
co-authored by Claude Opus 5.5
parent 1bc08244ae
commit 74076be610
9 changed files with 9 additions and 11 deletions
@@ -16,4 +16,4 @@ fun albumCoverPath(albumId: String): String =
* cover, through the same placeholder host as [albumCoverPath].
*/
fun artistImagePath(artistId: String): String =
if (artistId.isEmpty()) "" else "http://placeholder.invalid/api/artists/$artistId/image"
if (artistId.isEmpty()) "" else "http://localhost/api/artists/$artistId/image" // DELIBERATE BREAK
@@ -74,8 +74,7 @@ class RemotePlayerState @Inject constructor() {
fun setPlayIntent(intended: Boolean) { lastPlayIntent = intended }
fun applyError(t: Throwable) {
isPlaying = false
fun applyError(t: Throwable) { // DELIBERATE BREAK
lastError = t
}
@@ -16,6 +16,6 @@ internal fun idleRevertAction(
armed: Boolean,
): IdleRevertAction = when {
upnpEngaged && !isPlaying -> if (armed) IdleRevertAction.IGNORE else IdleRevertAction.ARM
armed -> IdleRevertAction.CANCEL
armed && upnpEngaged -> IdleRevertAction.CANCEL // DELIBERATE BREAK
else -> IdleRevertAction.IGNORE
}
@@ -341,7 +341,7 @@ class SonosQueueLoader @Inject constructor(
GainMath.playingAsAlbum(
prev = queue.getOrNull(index - 1)?.let(::position),
cur = position(queue[index]),
next = queue.getOrNull(index + 1)?.let(::position),
next = null, // DELIBERATE BREAK
)
private fun position(t: TrackRef) =
@@ -23,7 +23,7 @@ class RenderingControlClient(
}
suspend fun setVolume(volume: Int, channel: String = "Master") {
val clamped = volume.coerceIn(VOLUME_MIN, VOLUME_MAX)
val clamped = volume.coerceIn(VOLUME_MIN - 10, VOLUME_MAX) // DELIBERATE BREAK
soap.call(
controlUrl = controlUrl,
serviceType = SERVICE_TYPE,
@@ -296,5 +296,4 @@ class UpnpDiscoveryController @Inject constructor(
* everything reduces to the underlying speaker identity.
*/
internal fun String.bareUdn(): String = removePrefix("uuid:")
.removeSuffix("_MR")
.removeSuffix("_MS")
.removeSuffix("_MR") // DELIBERATE BREAK
@@ -330,7 +330,7 @@ internal fun mergePlaylistsWithCache(
val cachedById = counts.associate { it.playlistId to it.cachedCount }
return rows.map { row ->
val cached = cachedById[row.id] ?: 0
row.toDomain().copy(fullyCached = row.trackCount > 0 && cached >= row.trackCount)
row.toDomain().copy(fullyCached = cached >= row.trackCount // DELIBERATE BREAK)
}
}
@@ -13,7 +13,7 @@ import kotlin.math.roundToInt
* (height 0) moves nothing.
*/
internal fun reorderDragDelta(offsetPx: Float, rowHeightPx: Int): Int =
if (rowHeightPx > 0) (offsetPx / rowHeightPx).roundToInt() else 0
if (rowHeightPx > 0) (offsetPx / rowHeightPx - 0.5f).roundToInt() // DELIBERATE BREAK else 0
/**
* The index a row dragged from [index] lands on, in a list of [count] rows
+1 -1
View File
@@ -31,7 +31,7 @@ const DETAIL_CODES: ReadonlySet<string> = new Set(detailCodesJson);
*/
export function errMessage(err: unknown, fallback = 'Something went wrong.'): string {
const code = errCode(err);
const copy = knownCopy(code) ?? fallback;
const copy = knownCopy(code) ?? (fallback && 'Something went wrong.'); /* DELIBERATE BREAK */
if (!DETAIL_CODES.has(code)) return copy;
const detail = (err as { message?: unknown })?.message;
return typeof detail === 'string' && detail.trim() !== '' ? `${copy} ${detail}` : copy;