ci-android:37 (CI-runner PR #17) carries Android SDK 37. That lets the app
compile against 37 and take the libraries that require it:
- compose-bom 2026.11.01
- androidx.hilt 1.4.0
- navigation 2.10.2
- lifecycle 2.11.1
- core-ktx 1.19.1
- mediarouter 1.9.0
- coil 3.6.3
- OkHttp 5.5.1
targetSdk stays 36, so runtime behaviour on phones is unchanged.
ktlint-gradle 14.2 runs ktlint 1.5, which turns on rules that 1.0 left
experimental, so the sources are reformatted to them. Ignoring whitespace
that is about 4.7k lines across 312 files, and none of it changes
behaviour.
android/.editorconfig keeps ktlint's default style but exempts
@Composable functions from the lowercase function-naming rule, which
Compose's own convention breaks.
A few spots ktlint 1.5 cannot fix by itself were rewritten:
- EOL comments moved above the KDoc they followed;
- DeliveryPlan's file-level doc became plain comments;
- three /* name = */ argument labels on Java calls became trailing
comments.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Run 11484 failed 18 Vitest tests in 7 files:
- Two tests still mocked a query as a hand-written store ({ subscribe }).
They now mock a plain query object.
- TrackMenu now creates its hidden-tracks query when it mounts, not lazily
as the old $derived store did, so page tests that render track rows mock
#lib/api/quarantine like the component tests already did.
- The tuning trends headers read "Plays(window)". Svelte drops the
leading space inside <span> (window)</span>, and jsdom 31 no longer
hides that. The same gluing showed in:
- "Title· File missing" on track rows;
- the track position on Suspect sources;
- the screen-reader "(new)" on notifications.
Each space now sits outside the span, or is an expression Svelte keeps.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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>
@tanstack/svelte-query 6 is built on runes:
- createQuery and createInfiniteQuery take their options as a function
and return a reactive object that components read as query.data.
- createMutation takes its options the same way.
What this commit changes:
- Every query creator in src/lib/api now takes its arguments as getters
and reads them inside the options, so a query follows the values it
depends on. Before, each component rebuilt it in a $derived.
- Constant arguments are passed as getters too, so the rule has no
exceptions.
- Components call a creator once at init: const query =
createArtistQuery(() => id). The $derived(create…) and $store pairs
are gone.
- A query that loads only on demand (a chosen genre or year, the
Handled view) has an enabled getter. The page keeps its `cond ? q :
null` alias, because a switched-off query reports isPending and the
page expects null when nothing is chosen.
- Tests: the query mocks return plain objects. liveQuery
(test-utils/liveQuery.svelte.ts) gives a test a result it can change
mid-test. Argument checks call the getter the page passed.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- lucide-svelte is replaced by its successor @lucide/svelte. The
component names are the same, so only the import path changes (44
files).
- jsdom 31, @testing-library/jest-dom 8, @types/node 26.
- The lockfile is refreshed within every range: svelte 5.60, vite 8.4,
vitest 5.1, @sveltejs/kit 3.5, adapter-static 4.0.1. sharp is no
longer in the tree.
TypeScript stays on 6: svelte-check 4.7.9, the web lane's type check,
accepts typescript ^5 || ^6 only. svelte-query 6 follows in its own
commit.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
copyText (family idea "copyText"):
- web/src/lib/utils/clipboard.ts tries the Clipboard API first.
- Where the API is missing (plain http on a home network) or refuses,
it copies through the copy command on a hidden textarea instead.
- If that fails too, it selects the shown value.
- All six Copy buttons go through it: an invite token, the needs-a-file
list, diagnostics, connection details, a playlist link, and report
details. Before, five of them only showed an error over http.
SecretField (family idea "SecretField"):
- One component for a write-only credential: a password box for a new
value, which the card's own Save sends, and a Remove button while one
is saved.
- Used for the provider API keys, the SMTP password, the backup secret
key and the AcoustID key. Only AcoustID had Remove before.
- The server gains clear_password (SMTP) and clear_secret_key (backup).
An empty value still keeps the stored one. Provider keys already clear
when sent empty.
- Remove sends the saved settings back with only the credential cleared,
so unsaved edits elsewhere on the card stay unsaved.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Migration round trip (family idea "Migration CI lane"):
- TestMigrationsRoundTrip, in the integration lane, migrates a scratch
database to the baseline, then all the way up, then every migration
after the baseline down, then up again.
- The schema after the down pass must match a database migrated to the
baseline alone: columns, indexes, constraints, sequences, enums,
functions and triggers. So a down file that leaves something behind
fails, as well as one that errors.
- The baseline's own down file refuses to run by design, so the round
trip stops there.
- The test uses golang-migrate as a library, with no migrator binary.
- The scratch database is dropped afterwards, and the shared test
database is never migrated down.
dbtest (family idea "dbtest Pool and Fixtures"):
- dbtest.URL skips without a database. It fails instead when
MINSTREL_TEST_DATABASE_REQUIRED is set, and the integration lane sets
it.
- dbtest.On(t, db) gives One/Exec/Count fixtures. The local copies are
repointed to them: exec in api, mustExec/mustID in backup,
countQueueRows in scrobble, and countTrackSim/countArtistSim in
similarity.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Every image stage moves to Debian 13 (trixie): node:26-trixie-slim,
golang:1.26-trixie, debian:trixie-slim. The govulncheck lane follows
the builder. Most of the Security Dashboard's image findings are
bookworm packages with no fix.
- Dockerfile syntax 1.29.
- Postgres 19 in the CI integration lane, the dev compose, the demo
compose and the README quick start. The README says a major-version
move needs a dump and restore.
- Go modules: chi 5.5, gocron 2.23, migrate 4.20, pgx 5.13,
testify 1.12, x/crypto 0.59, x/sync 0.25. go 1.26.0.
Go itself stays on 1.26: ci-go:1.27 is not published yet.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The weekly security sweep flagged AWS's published SigV4 example keys in
internal/backup/s3_test.go and a test invite token in
internal/api/auth_register_test.go. None is a credential. A repo-level
.gitleaks.toml extends the family config and allowlists each value with
its reason. It is export-ignored like renovate.json, and the export
check names it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The public repository holds one exported commit per release, so a merged
pull request would be overwritten by the next one. Bug reports and ideas go
in issues.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A comment named a real artist across a line break, which a per-line search
passes, and two fixture titles were close enough to real ones to replace.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Run 11423 went red on TestPublicRelease_OnlyFromAMainPushBuiltFromTheGatedExport
alone ("the public image build lacks --provenance=false"), in both the go
and integration lanes.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The public image build loses --provenance=false. TestPublicRelease_
OnlyFromAMainPushBuiltFromTheGatedExport must fail on it. The step runs on
main only, so this run publishes nothing outside :dev either way.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Title Case sweep of the export found real song titles and artists in
fixtures and comments: three songs from one real album, a real song in a
release fixture, real artists in a tag test, a link test and a genre test,
a real song as a notification example, and a count from a real folder.
Each is now invented.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
It only lists what stays out of the export, so it is CI's file, and the
export step refuses a tree that carries it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Taken on the invented demo library (tools/demo-library). Now playing has no
header and came out the same.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Every push now builds its image from the git archive export, after the
changelog and the leak gate have run on it, so a dev push is the public
release's dry run. A push to main then also commits and tags the export on
github.com/Fabled-Sword/minstrel as AmateurDungeoneer, publishes
ghcr.io/fabled-sword/minstrel :<name> and :latest, and creates the release
page on GitHub (public changelog) and on this forge (private changelog).
The scripts are Librarian's (ci/changelog.sh, ci/leakgate.sh,
ci/releases.mjs, with their tests), with Minstrel's false positives and a
changelog that ignores the forge-only v* tags from before the public
releases, so the first public release is the fixed note.
The tag build, its APK attach and its verify job, and the manual GHCR
dispatch are gone: phones get the app from the server image, and no
release carries a file. The push trigger has no path filter, because the
README, docs and tests ship in the public release too.
The README's image tags now name what GHCR carries: :latest and :<version>.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A hidden-folder fixture named an acquisition tool, and a comment cited a
milestone id. Both are reworded so the export passes ci/leakgate.sh.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Run 11391 went red on exactly the certificate case (414 passed, 1 failed):
with trust failures unrecognised, the probe fell back to http.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The form ran past detekt's 60-line limit for one function once it gained the
probe's progress and Cancel.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A certificate that fails to verify is no longer recognised, so the probe falls
back to http past it. ServerProbeTest's certificate case must go red.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The sign-in screen took only a full http:// or https:// URL and saved it
unchecked. It now accepts host, host:port or host/path. With no scheme typed
it asks https first and falls back to http only when https could not connect.
A certificate that fails to verify stops the probe instead, so nothing on the
path can force a quiet downgrade. Either way the address must answer
GET /api/auth/setup-status as Minstrel before it is saved, with its scheme.
Plain http still passes the cleartext guard, so the fallback only succeeds on
a home-network address.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This reverts commit 8af3c41b. Runs 11328 and 11329 showed what each lane
prints for a failing test, and that the step goes red with go test's own
status.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Break run 11328 went red for the wrong reason. The step shell runs with
-e, so a failing go test ended the brace group before `echo $?` wrote
its status; the step then died on `exit ""` ("numeric argument
required"). `|| rc=$?` keeps the group alive to record the status, and a
missing status file now exits 1 rather than relying on that error.
Breaks from 8af3c41b are still in place, so this run must be red with
go test's own exit code.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Proves the test-count lanes still show a failure and still go red:
- go lane: words TestCount fails a row, and TestDeliberatePanic kills
the package binary mid-test; both outputs must appear.
- integration lane: quarantine TestFlag_HappyPath fails.
- android lane: BareUdnTest's six rows fail, and the count step still
runs and reports them.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The web lane's Vitest summary already says how many tests ran; the go,
integration and android lanes said nothing, so a before-and-after had to
count tests from source.
- ci/testcount reads `go test -json` and prints what plain go test
would (one line per package, the whole output of a failed test), then
the pass/fail/skip counts for tests and subtests. Both Go lanes pipe
through it and exit with go test's own status, kept in a file because
the shell has no pipefail: the reader never decides the gate.
- The android lane sums Gradle's JUnit reports after the unit tests,
failure or not.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Repeated cases are parameterized: speaker-id forms, the idle timer, drag
rounding, volume clamping and a playlist's cache verdict. Removed: tests
that a one-line setter set its field, that a mocked null came back null,
that three UPnP commands send the action name written beside them, and
the update repository's copy of the versioning rule its own test holds.
Sonos album play now checks only what its queue adds to GainMath's rule,
which GainMathTest owns. Cover URLs are checked against the host the
interceptors rewrite rather than a copied string. Web's drag table gets
back the 56px case Android's mirrors.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
errMessage took a fallback but looked codes up with copyForCode, which never
returns nothing, so a settings card's "Couldn't save proxy depth." was
never seen: an unknown code read "Something went wrong." It now uses
knownCopy, as the register page already did, and copyForCode is gone.
audioLoader let a desktop shell swap the stream URL for its own cache. No
such shell exists and nothing called setAudioLoader, so the player reads
the track's stream_url directly.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Repeat one is two presses from off and repeat all is one; the rows had them
swapped, which the deliberate-break run showed.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Client tests that only restated a function's URL, or asserted on the value
their own mock returned, are gone; what those functions do beyond the URL
(escaping an id, leaving out an empty note, paging) keeps a test. Repeated
cases in the player store, row keyboard handling, public routes, register
refusals and others are tables. The shuffle test used an rng that never
swapped, so it could not fail; it now pins the order.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Without the option a 401 or 403 already fell to the default branch, which
answers ErrTransient without a retry, the same as the option's own branch.
The only difference was "(auth)" in the message. TheAudioDB and both
Last.fm providers set it; none read the message. The reason it gave, that
a bad key retries later instead of settling the row as "none", now sits on
the default branch, and the client's status table checks 401 and 403.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Run 11302 failed all ten named tests, and with them apierror's
TestWrite_SendsTheEnvelopeAndHidesAPlainErrorsText and api's
TestFlag_BadReason, which pin the same rules from the handler side.
This reverts commit 21adbc2283.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- 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>
- quarantine: the four refusals (a report on a missing track, an unknown
reason, resolving or deleting a missing track) are one table.
- playsessions: the four window tests are one listener's plays at 0, 15,
45 and 76 minutes against a 30-minute window: a new session, joining,
joining at exactly the window, and starting anew.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- backup: schema coverage's three tests and the three AWS signing
examples, one table each.
- scrobble: Qualifies' six boundary tests; the ListenBrainz client's
refusal mapping, twelve tests of the same rule across three calls, one
table over call x status; the two similarity lookups' success and URL
tests, one table.
- playevents: the skip rule's three plays share one fixture. Dropped
TestRecordPlayEnded_SubThreshold_NoEnqueue: the writer only calls
scrobble.MaybeEnqueue, whose own test and Qualifies' table hold that
case; the qualifying-play test still proves the writer calls it.
- recsettings: the three tag-scale tests share one database reset.
- apierror: Error() and From, one test each; auth: RequireAdmin's three.
- providers: GetJSON's not-found and transient answers, one table. Its
two 401 tests expected the same answer with and without
TreatAuthAsTransient, which changes only the error's text; the table
says so.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Run 11291 failed all three named tests. The api package ran its whole suite
past the weakened cost and the lane went on to coverart, which also failed
TestEnrichArtist_APictureFoundIsInTheSyncLog on the fanart-path break.
This reverts commit 359101c451.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The three tests run 11288 could not reach:
- artist enricher: "none" under older providers is not asked again
-> TestEnrichArtist_WhichArtistsAreAsked
- artist enricher: a fanart path recorded with no fanart
-> TestEnrichArtist_OnePictureOfTwo
- api: passwordCost default below bcrypt.DefaultCost
-> TestPasswordCost_StoredPasswordsUseAtLeastBcryptsDefault
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Run 11288 failed every named test it reached. The api TestMain's cost
check exited the test binary, and the integration lane runs each package's
binary once with no tests to warm the build, so it stopped the lane there
before coverart's database tests ran. The check is now a test of its own:
a weakened cost fails one test and the rest of the lane still runs.
This reverts commit e717e4370d.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- lastfm: no key answers transient, not not-found
-> TestLastfm_AnswersNotFoundWithoutAsking
- deezer: off by default -> TestProviders_IdentityAndDefaults
- artist enricher: "none" under older providers is not asked again
-> TestEnrichArtist_WhichArtistsAreAsked
- artist enricher: a fanart path recorded with no fanart
-> TestEnrichArtist_OnePictureOfTwo
- getUser: an admin asking about another gets themself
-> TestHandleGetUser
- decodePassword: enc: not decoded -> TestDecodePassword
- router: unknown /rest/ paths get the web app
-> TestRouter_TheWebAppAndTheAPIsKeepTheirOwnPaths
- genretag: commas no longer split -> TestSplit
- api: passwordCost default below bcrypt.DefaultCost -> api's TestMain
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
#8330: every password the api handlers store goes through hashPassword at
bcrypt.DefaultCost, most of a second per hash under -race, so the password
tests took about 1.4s each, roughly 15s of the package. The cost is now a
package variable the tests' TestMain lowers to MinCost, after refusing a
production default below bcrypt.DefaultCost.
#8331: recommendation and taste each had a splitGenres and subsonic's
hasGenre split inline, the same rule three times. internal/genretag.Split
is the one copy, a stdlib-only leaf, and the two TestSplitGenres tables
are one.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>