test(playlists, recommendation): system-mix builds stop drawing covers no test reads; merge repeated cases (#8297)
release / go (push) Successful in 1m44s
release / web (push) Successful in 1m16s
release / govulncheck (push) Successful in 18s
release / integration (push) Successful in 2m45s
release / android (push) Successful in 4m29s
release / Build signed APK (push) Successful in 4m40s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Publish the release image to GHCR (dispatch only) (push) Skipped
release / Build + push container image (push) Successful in 14s
release / Verify release artifacts (tag releases only) (push) Skipped

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>
This commit is contained in:
2026-12-02 13:35:36 -05:00
co-authored by Claude Opus 5.5
parent 39c5b1ed66
commit a2dae7ec8c
10 changed files with 471 additions and 1055 deletions
+1 -8
View File
@@ -303,14 +303,7 @@ jobs:
PKGS=$(sh ci/db-test-packages.sh)
echo "database test packages: $(echo "$PKGS" | wc -l)"
go test -race -run '^$' $PKGS
# TEMPORARY (#8297): one run with per-test durations, slowest first.
rc=0
go test -p 1 -race -timeout 20m -v $PKGS > /tmp/gotest.log 2>&1 || rc=$?
grep -E '^(ok|FAIL|panic)|--- FAIL' /tmp/gotest.log || true
echo "::group::slowest database tests"
grep -E '^--- (PASS|FAIL)' /tmp/gotest.log | sed -E 's/^--- [A-Z]+: (\S+) \(([0-9.]+)s\)/\2 \1/' | sort -rn | head -150
echo "::endgroup::"
exit $rc
go test -p 1 -race -timeout 20m $PKGS
web:
runs-on: go-ci