fix: use a glibc base image for sqlite-jdbc
CI / test (push) Successful in 2m34s
CI / smoke (push) Failing after 1m13s
CI / chart (push) Successful in 14s
CI / image (push) Skipped

Alpine/musl cannot load sqlite-jdbc's bundled native library, so the
container failed at startup. Switch the runtime image to
eclipse-temurin:21-jre-jammy and verify the image end-to-end, including
transcoding, against a read-only root filesystem.

The smoke fixture now uses a 192 kbps source so the maxBitRate check
actually proves transcoding instead of direct play.
This commit is contained in:
TapTap committed 2026-11-13 13:12:13 +00:00
1 parent 25331ec0e1
commit 7d98bc1d3a
3 files changed
+14 -9

No files matched your search

+5 -3
View File
@@ -37,7 +37,7 @@ ffmpeg -hide_banner -loglevel error -y \
-metadata genre="Rock" \
-metadata track="1" \
-metadata date="2026" \
-q:a 9 "$WORK/music/Smoke Artist/Smoke Album/01 - Smoke Song.mp3"
-b:a 192k "$WORK/music/Smoke Artist/Smoke Album/01 - Smoke Song.mp3"
ffmpeg -hide_banner -loglevel error -y \
-f lavfi -i "color=c=red:s=64x64" -frames:v 1 \
@@ -210,14 +210,16 @@ if [[ "$RANGE_STATUS" == "206" ]]; then pass "stream range"; else fail "stream r
TRANSCODE_STATUS="$(curl -s -D "$WORK/transcode.headers" -o "$WORK/transcoded.mp3" -w '%{http_code}' "$BASE/rest/stream.view?$AUTH&id=$SONG_ID&maxBitRate=64")"
if [[ "$TRANSCODE_STATUS" == "200" && -s "$WORK/transcoded.mp3" ]] \
&& grep -qi '^content-type: audio/mpeg' "$WORK/transcode.headers"; then
&& grep -qi '^content-type: audio/mpeg' "$WORK/transcode.headers" \
&& [[ $(wc -c < "$WORK/transcoded.mp3") -lt $(wc -c < "$WORK/stream.mp3") ]]; then
pass "stream transcode (maxBitRate)"
else
fail "stream transcode (maxBitRate)" "HTTP $TRANSCODE_STATUS, $(wc -c < "$WORK/transcoded.mp3" 2>/dev/null || echo 0) bytes"
fi
OFFSET_STATUS="$(curl -s -o "$WORK/offset.mp3" -w '%{http_code}' "$BASE/rest/stream.view?$AUTH&id=$SONG_ID&timeOffset=1")"
if [[ "$OFFSET_STATUS" == "200" && -s "$WORK/offset.mp3" ]]; then
if [[ "$OFFSET_STATUS" == "200" && -s "$WORK/offset.mp3" ]] \
&& [[ $(wc -c < "$WORK/offset.mp3") -lt $(wc -c < "$WORK/stream.mp3") ]]; then
pass "stream transcode (timeOffset)"
else
fail "stream transcode (timeOffset)" "HTTP $OFFSET_STATUS"