PaprikaPaprikaDocs
HomeGitHubPortuguês

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

#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.

  1. 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).

  2. A release PR. Open one PR that moves the Unreleased section of CHANGELOG.md (and its pt-BR copy) to ## <version> - <date>. Put the ci:full label on it before the last push, so CI runs every job instead of the ones the change selects (CI). It merges only green.

  3. The full local check. pnpm check on that commit, on a clean checkout (pnpm install --frozen-lockfile).

  4. GPU parity on a real GPU. Build the WASM renderer and the app first (pnpm --filter ./apps/web build:wasm, then pnpm build; the run fails without them), then pnpm test:gpu on a machine with a hardware WebGPU adapter and a headed browser (CI has neither). No scene may end gpu-divergent. How to run it and read the report: GPU parity run.

  5. Performance. pnpm test:perf: no budget with enforce: true may fail (performance).

  6. 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-slim
  7. The maintainer's ok. Ask for it with the list above and its results. Without an explicit yes for this version, stop here.

#The cut

bash
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$VERSION

Then 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

Edit this page on GitHub