fix CI: errcheck in the migration test, Svelte 5 icon and props types, hold Android's SDK-37 libraries (#8532, #8533)
release / web (push) Failing after 1m23s
release / go (push) Successful in 1m48s
release / govulncheck (push) Successful in 16s
release / integration (push) Successful in 2m36s
release / android (push) Successful in 4m36s
release / Build signed APK (push) Successful in 4m59s
release / Build + push container image (push) Skipped

Run 11469 failed in three places:
- golangci-lint (errcheck) flagged three unchecked Close calls in
  migrations_roundtrip_test.go. Their errors are now discarded
  explicitly.
- svelte-check found two kinds of error:
  - IconProp was typed for class-based lucide-svelte components.
    @lucide/svelte's are Svelte 5 components, so it is now LucideIcon.
  - Svelte 5.60 no longer accepts $props<T>(). Eight components now
    type the destructuring instead.
- Android: compose-bom 2026.11, androidx.hilt 1.4, navigation 2.10,
  lifecycle 2.11, core-ktx 1.19, mediarouter 1.9, coil 3.6 and
  OkHttp 5 all require compileSdk 37. ci-android:36 carries SDK 36, so
  they are held at their previous versions until an SDK 37 image
  exists. OkHttp takes 4.12.1.
- ktlint-gradle 14's newer ktlint rules flag 751 lines in the test
  sources, so it stays on 12 until those sources are reformatted.

The rest of the Android update stays: Kotlin 2.4, AGP 9.5, Gradle 9.9,
Retrofit 3, JUnit 6 and the others.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-12-04 14:00:23 -05:00
co-authored by Claude Opus 5.5
parent be384c8efe
commit 72e8702e53
11 changed files with 30 additions and 29 deletions
+14 -9
View File
@@ -3,37 +3,42 @@
# there is no kotlin-android plugin to apply, and KSP 2.3+ supports that # there is no kotlin-android plugin to apply, and KSP 2.3+ supports that
# path. AGP 9.5 needs Gradle 9.x (gradle-wrapper.properties), and both run # path. AGP 9.5 needs Gradle 9.x (gradle-wrapper.properties), and both run
# on the JDK 25 in the ci-android image. # on the JDK 25 in the ci-android image.
# Held below their newest versions until the CI image compiles against
# Android 37: compose-bom, androidx.hilt, navigation, lifecycle, core-ktx,
# mediarouter, coil and OkHttp 5 all require compileSdk 37 or later, and
# ci-android:36 carries SDK 36. ktlint-gradle stays on 12 until the test
# sources are reformatted for its newer ktlint rules.
agp = "9.5.3" agp = "9.5.3"
kotlin = "2.4.21" kotlin = "2.4.21"
ksp = "2.3.14" ksp = "2.3.14"
hilt = "2.60.1" hilt = "2.60.1"
hilt-androidx = "1.4.0" hilt-androidx = "1.2.0"
compose-bom = "2026.11.01" compose-bom = "2026.05.01"
nav-compose = "2.10.2" nav-compose = "2.8.3"
room = "2.8.5" room = "2.8.5"
retrofit = "3.0.0" retrofit = "3.0.0"
okhttp = "5.5.1" okhttp = "4.12.1"
kotlinx-serialization = "1.13.0" kotlinx-serialization = "1.13.0"
kotlinx-coroutines = "1.11.0" kotlinx-coroutines = "1.11.0"
kotlinx-datetime = "0.8.0-0.6.x-compat" kotlinx-datetime = "0.8.0-0.6.x-compat"
kotlinx-serialization-converter = "1.0.0" kotlinx-serialization-converter = "1.0.0"
media3 = "1.11.1" media3 = "1.11.1"
mediarouter = "1.9.0" mediarouter = "1.7.0"
coil = "3.6.3" coil = "3.0.0-rc02"
palette = "1.1.0" palette = "1.1.0"
timber = "5.0.1" timber = "5.0.1"
work = "2.12.0" work = "2.12.0"
lifecycle = "2.11.1" lifecycle = "2.8.7"
junit-jupiter = "6.1.3" junit-jupiter = "6.1.3"
turbine = "1.2.1" turbine = "1.2.1"
mockk = "1.14.12" mockk = "1.14.12"
compose-test = "1.7.5" compose-test = "1.7.5"
ktlint-gradle = "14.2.0" ktlint-gradle = "12.1.1"
detekt = "2.0.0-alpha.6" detekt = "2.0.0-alpha.6"
kxml2 = "2.3.0" kxml2 = "2.3.0"
[libraries] [libraries]
androidx-core-ktx = { module = "androidx.core:core-ktx", version = "1.19.1" } androidx-core-ktx = { module = "androidx.core:core-ktx", version = "1.13.1" }
androidx-lifecycle-viewmodel-compose = { module = "androidx.lifecycle:lifecycle-viewmodel-compose", version.ref = "lifecycle" } androidx-lifecycle-viewmodel-compose = { module = "androidx.lifecycle:lifecycle-viewmodel-compose", version.ref = "lifecycle" }
androidx-lifecycle-runtime-compose = { module = "androidx.lifecycle:lifecycle-runtime-compose", version.ref = "lifecycle" } androidx-lifecycle-runtime-compose = { module = "androidx.lifecycle:lifecycle-runtime-compose", version.ref = "lifecycle" }
androidx-lifecycle-process = { module = "androidx.lifecycle:lifecycle-process", version.ref = "lifecycle" } androidx-lifecycle-process = { module = "androidx.lifecycle:lifecycle-process", version.ref = "lifecycle" }
+3 -3
View File
@@ -41,7 +41,7 @@ func TestMigrationsRoundTrip(t *testing.T) {
if err != nil { if err != nil {
t.Fatal(err) t.Fatal(err)
} }
t.Cleanup(func() { m.Close() }) t.Cleanup(func() { _, _ = m.Close() })
step := func(name string, run func() error) { step := func(name string, run func() error) {
t.Helper() t.Helper()
@@ -92,7 +92,7 @@ func scratchDatabase(ctx context.Context, t *testing.T, dsn string) string {
if err != nil { if err != nil {
t.Fatalf("connect: %v", err) t.Fatalf("connect: %v", err)
} }
t.Cleanup(func() { admin.Close(context.Background()) }) t.Cleanup(func() { _ = admin.Close(context.Background()) })
b := make([]byte, 6) b := make([]byte, 6)
if _, err := rand.Read(b); err != nil { if _, err := rand.Read(b); err != nil {
@@ -125,7 +125,7 @@ func schemaOf(ctx context.Context, t *testing.T, dsn string) []string {
if err != nil { if err != nil {
t.Fatalf("connect: %v", err) t.Fatalf("connect: %v", err)
} }
defer conn.Close(ctx) defer func() { _ = conn.Close(ctx) }()
const q = ` const q = `
SELECT 'column ' || table_name || '.' || column_name || ' ' || data_type SELECT 'column ' || table_name || '.' || column_name || ' ' || data_type
+1 -1
View File
@@ -6,7 +6,7 @@
import TrackListRow from './TrackListRow.svelte'; import TrackListRow from './TrackListRow.svelte';
import Cover from './Cover.svelte'; import Cover from './Cover.svelte';
let { event } = $props<{ event: HistoryEvent }>(); let { event }: { event: HistoryEvent } = $props();
function handleClick() { function handleClick() {
playQueue([event.track], 0, { source: playSource.history }); playQueue([event.track], 0, { source: playSource.history });
+2 -2
View File
@@ -7,11 +7,11 @@
import { reorderDrag } from './reorder-drag'; import { reorderDrag } from './reorder-drag';
import LikeButton from './LikeButton.svelte'; import LikeButton from './LikeButton.svelte';
let { track, index, isCurrent } = $props<{ let { track, index, isCurrent }: {
track: TrackRef; track: TrackRef;
index: number; index: number;
isCurrent: boolean; isCurrent: boolean;
}>(); } = $props();
function handleBodyClick() { function handleBodyClick() {
if (isCurrent) return; if (isCurrent) return;
+1 -1
View File
@@ -10,7 +10,7 @@
import PlayerBar from './PlayerBar.svelte'; import PlayerBar from './PlayerBar.svelte';
import SearchInput from './SearchInput.svelte'; import SearchInput from './SearchInput.svelte';
let { children } = $props<{ children: import('svelte').Snippet }>(); let { children }: { children: import('svelte').Snippet } = $props();
let menuOpen = $state(false); let menuOpen = $state(false);
let menuRef: HTMLElement | undefined = $state(); let menuRef: HTMLElement | undefined = $state();
+4 -8
View File
@@ -1,13 +1,9 @@
<script lang="ts" module> <script lang="ts" module>
import type { ComponentType, SvelteComponent } from 'svelte'; import type { LucideIcon } from '@lucide/svelte';
// Lucide-svelte ships class-based components (typeof ListPlus = ComponentType<...>), // A Lucide icon: @lucide/svelte ships Svelte 5 components taking Lucide's
// not runes-mode function components (Svelte 5's Component<...> type). Use // props (size, strokeWidth, class).
// ComponentType<SvelteComponent> with no prop-shape constraint — Lucide export type IconProp = LucideIcon;
// accepts size/strokeWidth as `string | number` and a tighter constraint
// here trips structural assignment. We always pass numeric `size={14}` and
// `strokeWidth={1}` below so the runtime contract is consistent.
export type IconProp = ComponentType<SvelteComponent>;
</script> </script>
<script lang="ts"> <script lang="ts">
+1 -1
View File
@@ -36,7 +36,7 @@
} from '#lib/player/gainStage.svelte.js'; } from '#lib/player/gainStage.svelte.js';
import { untrack } from 'svelte'; import { untrack } from 'svelte';
let { children } = $props<{ children: import('svelte').Snippet }>(); let { children }: { children: import('svelte').Snippet } = $props();
let audioEl: HTMLAudioElement | undefined = $state(); let audioEl: HTMLAudioElement | undefined = $state();
let prefetchEl: HTMLAudioElement | undefined = $state(); let prefetchEl: HTMLAudioElement | undefined = $state();
+1 -1
View File
@@ -2,7 +2,7 @@
import SectionLayout from '#lib/components/SectionLayout.svelte'; import SectionLayout from '#lib/components/SectionLayout.svelte';
import SectionRail, { type RailItem } from '#lib/components/SectionRail.svelte'; import SectionRail, { type RailItem } from '#lib/components/SectionRail.svelte';
let { children } = $props<{ children: import('svelte').Snippet }>(); let { children }: { children: import('svelte').Snippet } = $props();
// Admin: one page per section down a left rail, as Settings and // Admin: one page per section down a left rail, as Settings and
// the Collection are, so the sections sit in the same place everywhere // the Collection are, so the sections sit in the same place everywhere
+1 -1
View File
@@ -4,7 +4,7 @@
import { QUEUES, countOf, queueLabel } from '#lib/admin/queues.js'; import { QUEUES, countOf, queueLabel } from '#lib/admin/queues.js';
import CollectionRail from '#lib/components/CollectionRail.svelte'; import CollectionRail from '#lib/components/CollectionRail.svelte';
let { children } = $props<{ children: import('svelte').Snippet }>(); let { children }: { children: import('svelte').Snippet } = $props();
// The Collection: the library's health. Web-only and admin-only. The // The Collection: the library's health. Web-only and admin-only. The
// queues count from the admin summary, the same read Admin's Overview // queues count from the admin summary, the same read Admin's Overview
+1 -1
View File
@@ -1,7 +1,7 @@
<script lang="ts"> <script lang="ts">
import { page } from '$app/state'; import { page } from '$app/state';
let { children } = $props<{ children: import('svelte').Snippet }>(); let { children }: { children: import('svelte').Snippet } = $props();
// Tab bar for the Library section. Mirrors Android's LibraryScreen // Tab bar for the Library section. Mirrors Android's LibraryScreen
// (artists / albums / liked / history / playlists) — Playlists lives // (artists / albums / liked / history / playlists) — Playlists lives
+1 -1
View File
@@ -2,7 +2,7 @@
import SectionLayout from '#lib/components/SectionLayout.svelte'; import SectionLayout from '#lib/components/SectionLayout.svelte';
import SectionRail from '#lib/components/SectionRail.svelte'; import SectionRail from '#lib/components/SectionRail.svelte';
let { children } = $props<{ children: import('svelte').Snippet }>(); let { children }: { children: import('svelte').Snippet } = $props();
// Settings: one page per section down a left rail, laid out as // Settings: one page per section down a left rail, laid out as
// the Collection is. Account is first and is where /settings lands. The // the Collection is. Account is first and is where /settings lands. The