zat.dev/zds
atproto pds · mirror of https://tangled.org/zat.dev/zds
zds 0.25.1 Latest 2 packages, all images
0
0
name: release description: cut a zds release end to end — bump build.zig.zon, promote the unreleased changelog section, run the checks, tag, push (which deploys pds.zat.dev and publishes the container image via spindle), verify both. use when asked to release, tag, or ship a version, or what the next release would contain.
release the current state of main using the release context in the request.
zds ships two ways from one tag: the push to main deploys pds.zat.dev
through .tangled/workflows/ci.yml, and the tag push runs
.tangled/workflows/publish-image.yml, which pushes the image to
atcr.io/zat.dev/zds. the tag is the release; the
changelog section is its notes. policy (patch vs minor vs major) lives in
docs/operations.md#releases.
version locations
build.zig.zonline 3:.version = "x.y.z"—GET /xrpc/_healthreports it, which is how the live deploy is verifiedCHANGELOG.md:## unreleasedat the top collects entries as work lands; a release renames it to## x.y.z — YYYY-MM-DD. entries are- **fix**:/- **feat**:/- **refactor**:/- **docs**:, prose that says what a client or operator sees now versus before, with nested bullets for the per-method minutiae. there is no empty## unreleasedbetween releases; the next change recreates it.
steps
- what is shipping:
git log v<prev>..main --format='%h %s'and read## unreleased. every commit on that range that a client or operator can notice should have an entry; add the missing ones before bumping. - decide the bump: patch for compatibility fixes and operator-safe bug fixes; minor for protocol surface, storage shape (a schema migration counts), or operator workflow changes; major only for a declared incompatible contract. before 1.0 a protocol-parity fix is still a patch.
- update:
just release(step 6) sets.versioninbuild.zig.zonand renames## unreleasedto## x.y.z — <today>; nothing to do by hand. - checks (all must pass, no flags):
Runjust test just smoke-all git diff --check zig zenzig fmt --check build.zig build.zig.zon src bench tools, matching CI. For substantial or critical-path changes, also complete adversarial diff review, replayable fuzz/property checks and focused performance measurements before pushing. Use thepre-shipandzig-fuzzskills when available; record campaign scope, mutation calibration, measured workloads and remaining gaps. - parity releases: if the range changed protocol behaviour or storage
shape, complete the
benchmark stage checklist
and record any remaining mismatch as a decision or follow-up in
docs/. - commit and tag:
just release x.y.z. it runsjust ui-gate(both skins, every page, phone and desktop, on this machine's GPU) and refuses to tag if any frame-time, scroll-tracking, legibility or toolbar check fails; then it bumpsbuild.zig.zon, promotes## unreleasedand commitsrelease: vx.y.zwith an annotated tag. never tag by hand around a failing gate; fix the page. CI cannot run the gate (no GPU or chromium in the nixery image). - push:
git push origin main vx.y.z. the push is the deploy gate; never runflyctl deployahead of it. - watch the deploy: the remote is a repo DID, so
tgneeds the handle/repo form:tg pipeline status zat.dev/zds. it is a finite status line per workflow, not the interactivessh -t ... 3333viewer the push prints. whendeploy main to Flyfinishes, verify the live version:
then follow the post-deploy checks in docs/deployment.md: a 200 fromcurl -fsS https://pds.zat.dev/xrpc/_health | jq .version_healthalone is not verification when the change touched auth, sync, or storage. - container image: the tag push runs
publish-image.yml, which publishesvx.y.z,latestand the 12-character commit tag. check it withtg pipeline status zat.dev/zds. it logs in to atcr.io with the spindle secretATCR_APP_PASSWORD, azat.devapp password synced from the secrets store. if the tag run is missing, trigger the workflow on the release commit:tg pipeline trigger <commit> -w publish-image.yml -R zat.dev/zds.just docker-publish-releaseremains for a local build, but a login made with the atcr credential helper is a browser OAuth session. - devlog: if the release has a technical story worth telling (a new
subsystem, a parity finding across PDS implementations, a measured
perf win), suggest a
docs/note or a notes-repo entry and ask before writing it.