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>
- coverart: the four providers' identity and default tests, Last.fm's five
not-found-without-asking tests, the four "which artists are asked again"
database tests (now one reset over four artists), and the thumbnail-only
and fanart-only tests.
- subsonic: getUser's six tests and decodePassword's three, one table each.
Dropped TestTokenMD5Derivation: it checked crypto/md5 against a constant
and called no Minstrel code.
- server: the four web-app-versus-API path tests start one server, not four.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
All eight broken behaviours failed their named tests in run 11283. Also
failing, as expected: the other tests pinning the same rules from other
sides (Discover's own album cap, a genre mix's artist cap, recsettings'
similarity weight, and Subsonic's playlist visibility and write checks).
This reverts commit 60b0edac7a.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- service.go Get: another user sees a private playlist
-> TestService_WhoMaySeeAndChangeAPlaylist
- service.go Reorder: duplicate positions accepted
-> TestService_RefusesBadInput
- system.go: a build never draws covers
-> TestBuildSystemPlaylists_SufficientActivity
- discover.go: three tracks per album
-> TestCapCandidatesByAlbumAndArtist
- similarity.go Similarity: one seed side still matches
-> TestSimilarity
- similarity.go ContextualMatchScore: seed likes count
-> TestContextualMatchScore
- score.go: SimilarityWeight ignored
-> TestScore
- sessionvector.go: two tracks are enough
-> TestBuildSessionVector_SeedUntilThreeTracks
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Timings from one run of the integration lane with -v (39c5b1ed, reverted
here) put the system-mix builds at 1.4-3.8s each, most of the playlists
package's 35s. A build draws a JPEG collage per mix; under -race that is
most of its time, and no build test looked at a cover. The build tests now
pass no data folder, which skips drawing, except SufficientActivity, which
keeps drawing and now checks every mix got a cover: nothing tested that the
build wires covers before.
Merged:
- playlists service: 22 tests become 5 scenario tests (access, bad input,
partial update, track-list edits, cover-file cleanup), one database
reset each.
- ARebuildKeepsEachMixsID into DailyNonceDeterminism (both built twice in
one day); the two You might like builds into one.
- capCandidatesByAlbumAndArtist, Score, Similarity, ContextualMatchScore
and the session-vector seed rule: one table each.
- LoadCandidates' six contextual-like database tests: the max and seed
rules are ContextualMatchScore's unit table; the database test keeps what
only it can see, a like reaching its track and a withdrawn like ignored.
Dropped: Score determinism with a fixed RNG (a pure function), Score's
cold-start case (the same input as the base case), and recencyDecay(nil)
and skipRatio's two cases, which Score's table covers.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
All seven broken behaviours failed their named tests: five in the go lane
of run 11273 (after 25c7db71 fixed the reconcile case) and the resolver
note and stale-run reap in the integration lane of run 11272.
This reverts commit c03b3e0aa7.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Every case marked every track, so the 25% cap refused before the root
checks were reached: run 11272 broke the empty-root check and the test
still passed. The walk now marks one track of ten and clears a returned
one, which reconcile would do, so only the root and empty-walk checks can
refuse it; and the test asserts nothing was cleared either, since those
checks run before restores.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Seven behaviours broken, each aimed at one rewritten library test that
must fail:
- moved.go: an ambiguous match adopts the first candidate
-> TestAdoptMovedTrack
- reconcile.go: an empty root passes the mount check
-> TestReconcileMissing_RefusesWhenAVolumeLooksAbsent
- id3v2genre.go: whole-tag unsynchronisation is not undone
-> TestReadID3v2GenreValues
- mbids.go: no Vorbis MUSICBRAINZ_TRACKID fallback for the recording
-> TestReadTagMBIDs
- duplicate_resolve.go: rip and clean notes swapped
-> TestResolveDuplicates_LinksCopiesAcrossReleasesAndRemovesNothing_Integration
- stage_publisher.go: Flush keeps the tick count
-> TestStagePublisher_FlushesEveryNTicksAndOnFlush
- trigger.go: a stale run is never reaped
-> TestTryStartScan_StartsUnlessAFreshScanIsRunning
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>