release / govulncheck (push) Successful in 17s
release / web (push) Successful in 1m25s
release / go (push) Successful in 1m40s
release / integration (push) Successful in 5m19s
release / android (push) Successful in 5m32s
release / Build signed APK (releases and dev) (push) Successful in 5m51s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Build + push container image (push) Successful in 15s
release / Verify release artifacts (tag releases only) (push) Skipped
README: logo header, short summary, a compose quick start with one-line comments, first-run steps, a configuration table, setup pitfalls, updating and backups, then features grouped by what you do. The Specs section (it called the Android client the "Flutter companion app"), the dated tag-history sentence and the Fable pointer are gone. Feature lines were checked against the code: radio seeds from a track only, and the Android app plays from its cache rather than offering downloads. .env.example used the SMARTMUSIC_ prefix, which the config loader has not read for a long time, so copying it set nothing. It now uses MINSTREL_. config.example.yaml is also the config the image bakes in at /etc/smartmusic/config.yaml. It listed five recommendation weights (base_weight, like_boost, recency_weight, skip_penalty, jitter_magnitude) that moved to Admin > Tuning; yaml.Unmarshal ignored them silently. They are removed, and the file parses to exactly Default(), so the running server is unchanged. coverart_from_mbcaa is not listed: nothing reads it. docker-compose.yml, the Makefile and the spec banners lose their task and milestone ids. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
50 lines
2.0 KiB
Makefile
50 lines
2.0 KiB
Makefile
.PHONY: generate generate-go verify-generate test test-short test-integration lint build
|
|
|
|
# renovate: datasource=docker depName=sqlc/sqlc
|
|
SQLC_VERSION := 1.31.1
|
|
|
|
# Local codegen. Containerised so a dev needs no sqlc install.
|
|
generate:
|
|
docker run --rm -v "$(CURDIR):/src" -w /src sqlc/sqlc:$(SQLC_VERSION) generate
|
|
|
|
# Same codegen, run as a Go tool instead of a container. This is the CI path:
|
|
# the ci-go image already has Go, so it avoids docker-in-docker. Pinned to the
|
|
# SAME version as `generate` above so both routes emit identical output.
|
|
generate-go:
|
|
go run github.com/sqlc-dev/sqlc/cmd/sqlc@v$(SQLC_VERSION) generate
|
|
|
|
# Fail if the committed generated code no longer matches the .sql sources:
|
|
# a hand-edit, a half-applied regen, or a schema change without a regen.
|
|
#
|
|
# The diff is printed BEFORE the exit-code check on purpose: when this fails,
|
|
# the log then contains sqlc's exact expected output, which is what you commit.
|
|
verify-generate: generate-go
|
|
# -N (intent-to-add) so a BRAND-NEW generated file is visible to `git
|
|
# diff`, which otherwise ignores untracked paths entirely — a whole
|
|
# missing *.sql.go would sail through the check below.
|
|
git add -N -- internal/db/dbq
|
|
git --no-pager diff -- internal/db/dbq
|
|
git diff --quiet -- internal/db/dbq
|
|
|
|
test:
|
|
go test -race ./...
|
|
|
|
test-short:
|
|
go test -short -race ./...
|
|
|
|
# Full suite incl. integration tests, against the dedicated minstrel_test
|
|
# DB so a run never truncates the dev `minstrel` DB. Ensures the test DB
|
|
# exists (createdb fails harmlessly if it is already there).
|
|
test-integration:
|
|
docker compose up -d postgres
|
|
-docker compose exec -T postgres createdb -U minstrel minstrel_test
|
|
# -p 1: integration packages share one test DB and each TRUNCATEs it;
|
|
# concurrent package binaries deadlock on TRUNCATE. Serialize packages.
|
|
MINSTREL_TEST_DATABASE_URL=postgres://minstrel:minstrel@localhost:5432/minstrel_test?sslmode=disable go test -p 1 -race ./...
|
|
|
|
lint:
|
|
golangci-lint run ./...
|
|
|
|
build:
|
|
go build -o bin/minstrel ./cmd/minstrel
|