Contribute
Releases
Paprika is released by hand. Nothing tags, publishes or pushes an image on its own: a release is cut only after the maintainer says so explicitly, for that version.
#Versions
- Versions follow Semantic Versioning. The tag is
v<version>(v0.1.0), and the version inside the build is the same number without thev. - The binary takes its version at build time:
server.Versioninserver/internal/server/mcp.gois"dev"unless the build passes-ldflags "-X github.com/leonardo-moraes360/paprika/server/internal/server.Version=<version>".paprika --versionprints it, and the MCPinitializeanswer reports it asserverInfo.version. - The Docker image takes it from the
VERSIONbuild argument, which sets both the binary's version and theorg.opencontainers.image.versionlabel (docs/en-US/docker.md). Every build that does not pass it saysdev. CHANGELOG.mdkeeps an Unreleased section that every user-visible change adds to. Cutting a release turns it into the version's section.
#Before the cut
Run the whole list on the commit you are going to tag. A step that fails stops the release until it is fixed.
The gate is closed. Every item that the backlog's priority order puts before the release is done (for v0.1.0: the "v0.1.0 gate" in the backlog).
A release PR. Open one PR that moves the Unreleased section of
CHANGELOG.md(and its pt-BR copy) to## <version> - <date>. Put theci:fulllabel on it before the last push, so CI runs every job instead of the ones the change selects (CI). It merges only green.The full local check.
pnpm checkon that commit, on a clean checkout (pnpm install --frozen-lockfile).GPU parity on a real GPU. Build the WASM renderer and the app first (
pnpm --filter ./apps/web build:wasm, thenpnpm build; the run fails without them), thenpnpm test:gpuon a machine with a hardware WebGPU adapter and a headed browser (CI has neither). No scene may endgpu-divergent. How to run it and read the report: GPU parity run.Performance.
pnpm test:perf: no budget withenforce: truemay fail (performance).The images. Build both targets with the version and check what they report:
bash VERSION=0.1.0 # the version you are cutting docker build --target runtime \ --build-arg VERSION=$VERSION \ --build-arg REVISION=$(git rev-parse HEAD) \ --build-arg CREATED=$(date -u +%Y-%m-%dT%H:%M:%SZ) \ -t paprika:$VERSION . docker build --target slim \ --build-arg VERSION=$VERSION \ --build-arg REVISION=$(git rev-parse HEAD) \ --build-arg CREATED=$(date -u +%Y-%m-%dT%H:%M:%SZ) \ -t paprika:$VERSION-slim . docker run --rm --no-healthcheck paprika:$VERSION --version # prints the version, not "dev" .github/scripts/docker-smoke.sh paprika:$VERSION # the same smoke test as CI SCREENSHOT=sidecar .github/scripts/docker-smoke.sh paprika:$VERSION-slimThe maintainer's ok. Ask for it with the list above and its results. Without an explicit yes for this version, stop here.
#The cut
VERSION=0.1.0 # the version you are cutting
git fetch origin main
git switch --detach origin/main # the merge commit of the release PR
git tag -a v$VERSION -m "Paprika $VERSION"
git push origin v$VERSIONThen create the GitHub release from that tag, with the version's section of CHANGELOG.md as its notes. Keep the images built in step 6; publishing them to a registry is not set up yet.
#After the cut
- Add an empty Unreleased section back to the top of both changelogs in the next PR.
- If something is wrong with a release, fix it in a new patch version. A tag is never moved or reused.