CI: Woodpecker validation and tag-release pipelines; the git tag becomes the release unit #41
Labels
No labels
bug
enhancement
epic
needs-info
needs-triage
ready-for-agent
ready-for-human
svd:fire
svd:go
svd:hold
svd:respec
svd:skip
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
dev/people-mind-mcp#41
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Decision record (grill, 2026-11-02 09:40Z, operator accepted)
This record supersedes the body below wherever they disagree. It applies to dev/mail-mind-mcp#132 as well. ADR 0008 (
docs/adr/0008-release-and-delivery.md, branchfeat/41-release-delivery) records the decision.v-prefixed tag onmainnames a release:v0.1.0-rc.5publishes image0.1.0-rc.5. The release filter isrefs/tags/v*, notrefs/tags/0.*. The reason is that Mail Mind already has releasedv*tags and a live starbase pin onv0.10.1.pyproject.tomlstays0.1.0.dev0as a development marker. Nothing reads the package version at runtime.event: tag, not publish-on-main (item 5 below is ruled). The starbase pin needs one version string for?ref=,newTaganddigest.## Releases and deploysection; it has no deploy section today.bake-publish.shprobescrane digest <image>:<tag>first. If the tag exists, it fails and prints the existing digest.forgejo_package_token(svc-oci-writer) withevents: ["tag"]. A Forgejo protected-tag rule limitsv*topiers. The infra/iac#833 residual stands; this is tighter.make check. A drift test asserts that the.woodpecker/*.yamlbase digests equal the Makefile'sPYTHON_DIGEST_amd64. A parity test asserts that the bake sets the Containerfile's user, entrypoint and command.v0.1.0-rc.5, built by CI, is the first tag. rc.2 to rc.4 stay digest-only.Corrections to the body below.
sha256:623674a14ef93d052bb9b0de4dbf5f28eb578a35263838941cc8aa43213c1487(MakefilePYTHON_DIGEST_amd64). The Containerfile's default ARG is the arm64 digest.make checkreports 5 skipped, not 3.Acceptance (replaces the list below).
validation.yamlgoes green onmake check.v0.1.0-rc.5runsrelease.yaml; image0.1.0-rc.5exists;podman pull git.groupthink.asia/dev/people-mind-mcp@<digest>returns the logged digest.kubectl kustomizeof an overlay with?ref=v0.1.0-rc.5renders the base.Human act (CONV-40, per repo): activate on
ci.groupthink.asiaandPATCH {"allow_pr": true}; storeforgejo_package_tokenwithevents: ["tag"]; add thev*protected-tag rule forpiers.Problem
The repo has no CI and no release automation. Every rc so far (0.1.0-rc.2, rc.3, rc.4 on 2026-11-02) was produced by hand: the architect ran
make checkon a scratch worktree before each merge, ranmake image-amd64, pushed the image togit.groupthink.asia/dev/people-mind-mcp, pulled it back by digest, and opened the starbase pin PR with the digest and the commit SHA. Nothing in the repo records what a release is, so the image tag is a hand-chosen string and the starbase kustomize base pins a bare commit SHA (?ref=902eed7…).Woodpecker exists for this forge at
https://ci.groupthink.asia(estatemeridian, lanelinux, docker backend;dev/stablesandinfra/iaccarry.woodpecker/pipelines). This repo is not enabled on it and has no pipeline files. One lane in the estate already builds and publishes an image: dev/ops-gateway.woodpecker/bake.yaml, a daemonless crane bake to the Forgejo registry (dev/ops-gateway ADR-0008 Amendment 2026-10-04, ruled on infra/iac#652). It runs with no container daemon, no Kaniko, no buildx and notrustedflag, because a Woodpecker step on the meridian lane has none of those, and the runner validator refusesprivileged, volumes, devices andnetwork_modeby key name. A new bake here copies that shape; it does not need a new builder decision.Decision to record
0.1.0-rc.Nand0.1.0tags onmain(novprefix, matching the image tags already pushed). CI builds the image from the tag. The starbase pin references the tag three times: the kustomize base?ref=<tag>,images[].newTag: <tag>, andimages[].digest. Record this as an ADR amendment indocs/adr/(the deploy ADR from #9) and in the README deploy section..woodpecker/validation.yaml:event: pushonmainandevent: pull_request; labelsplatform: linux/amd64,backend: docker,estate: meridian,lane: linux(mirrordev/stables/.woodpecker/validation.yaml); CONV-36 trigger-posture header at the top of the file (runbook §2); clone plugin pinned by digest; one step on a digest-pinnedpython:3.12-slim-bookwormimage (the Containerfile's digest) that installsuvand runsmake check. The embed tests skip without the model (3 skipped), which is acceptable;make test-integrationstays host-only because it needs podman..woodpecker/release.yaml:event: tag,ref: refs/tags/0.*; reproduces theContainerfilethe way dev/ops-gateway does: anassemblestep runs the dependency stage on the pinned Python image and writes one layer tarball (the venv and the hash-checked embedding model fromscripts/fetch_model.py), animagestep appends it to the pinned base with crane and sets the Containerfile's config (non-root uid 1000, entrypoint), and apublishstep pushes with crane, reads back the registry digest, tagsgit.groupthink.asia/dev/people-mind-mcp:<tag>and prints the digest as the last log line. The Containerfile stays the readable definition of the image; a change to it changes the bake scripts in the same commit. The push credential is the existingdevorg tokensvc-oci-writer(write:package, instance-wide package scope; the branch-pusher reach is an accepted residual, infra/iac#652 and #833), stored as the repository secretforgejo_package_tokenwitheventslimited to the publish event. Stored secrets sit in plaintext in the Woodpecker database (infra/iacdocs/runbooks/woodpecker-pipeline-authoring.md§8), so the validation lane holds no secret and a PR run publishes nothing (ci-runner trust posture, lane-build).ci.groupthink.asia(POST /api/repos?forge_remote_id=<id>withop://Infra/woodpecker-api/token, thenPATCH{"allow_pr": true}, without which every PR run is dropped silently; runbook §1), and store theforgejo_package_tokensecret on the repo. Both are credential acts reserved to the operator.event: tagor publish on every push tomain. No estate lane usesevent: tagyet (runbook §3). dev/ops-gateway publishes on every push tomainand the digest pin in starbase is the deploy boundary. This issue proposes the firsttaglane because the starbase pin needs one version string for both the kustomize base?ref=and the image. The alternative is publish-on-main with a floating image tag and a vendored copy ofdeploy/k8s/basein starbase, so nothing in starbase references a git ref. The tag lane is the cheaper one to reverse: it adds a trigger and changes no consumer.Acceptance
validation.yamlgoes green onmake check(ruff, ruff format, mypy strict, pytest-m "not integration").0.1.0-rc.5runsrelease.yaml, the image0.1.0-rc.5exists in the Forgejo registry, andpodman pull git.groupthink.asia/dev/people-mind-mcp@<digest>returns the logged digest.kubectl kustomizeon a starbase overlay with?ref=0.1.0-rc.5renders the base.Dispatch note
codex-svddispatch forbids edits under.woodpecker/*(forbiddenMutationCheck; dev/stables ADR 0021 has the rider remedy). This unit either goes architect-direct on a branch or through the ADR 0021 rider. Triage decides.Human act
credential: the operator activates the repo on ci.groupthink.asia and stores forgejo_package_token (CONV-40)
Primary files
.woodpecker/validation.yaml(new).woodpecker/release.yaml(new)docs/adr/amendment,README.mddeploy sectionRelated
Blocked by
None.
Filed under: operator word "Cut issues to close the CI/CD gap as you proposed." sha256:41b61dc477f6
Release acceptance, proven 2026-11-02 on
v0.1.0-rc.6(7a77f25). #43 merged the lanes and closed this issue before any tag had run.v*tag on maintagstep:v0.1.0-rc.6 at 7a77f258… is an annotated tag on main. This needed #44: on a tag eventCI_COMMIT_SHAis the tag object, not the commit.peoplemind, entrypointpeoplemind, cmdapi --config /etc/peoplemind/config.toml, port8420/tcp. Labels: revision7a77f258…, version0.1.0-rc.6.published git.groupthink.asia/dev/people-mind-mcp:0.1.0-rc.6, digestsha256:0d7bc9932c870c30ae6ba35ec5338ce852fb56a5922378a158cbfa594211f225.kubectl kustomizeofdeploy/k8s/base?ref=v0.1.0-rc.6withimages: [{name: people-mind-mcp, newName: git.groupthink.asia/dev/people-mind-mcp, newTag: 0.1.0-rc.6, digest: sha256:0d7bc993…}]pins all three peoplemind containers.Three runs failed before the green one:
rc.5): the secret had animagesfilter, which limits it to plugin steps. The secret was re-created without it.rc.6): Traefik cut the venv layer PATCH (51 MiB compressed) at its 60s read timeout. infra/iac#965 raised the tunnel entrypoint's timeout to 600s.v0.1.0-rc.5was deleted: its tree predates #44, and it never published an image. The publish token is now a token of its own,woodpecker-people-mind-mcp, not the ops-gateway token.The last criterion is proven. Pipeline 9 re-ran
v0.1.0-rc.6; publish logged in, found the tag, printedsha256:0d7bc9932c870c30ae6ba35ec5338ce852fb56a5922378a158cbfa594211f225, and exited 1:publish: git.groupthink.asia/dev/people-mind-mcp:0.1.0-rc.6 already exists; a release tag is never re-published. The registry tag still resolves to that digest. Every release criterion of this issue now holds.