CI: Woodpecker validation and tag-release pipelines; images built from the vX.Y.Z tag #132
Labels
No labels
bug
enhancement
epic
needs-info
needs-triage
ready-for-agent
ready-for-human
svd:go
svd:hold
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
dev/mail-mind-mcp#132
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 on dev/people-mind-mcp#41, 2026-11-02 09:40Z, operator accepted)
The #41 grill ruled this issue's open questions as well. This record supersedes the body below wherever they disagree. Full record: dev/people-mind-mcp#41 and its ADR 0008 (
docs/adr/0008-release-and-delivery.md).event: tagonrefs/tags/v*, as this body proposes. Item 5 is ruled: no publish-on-main.vprefix on git tags. The image tag is the version without thev.crane digest <image>:<tag>and refuses an existing tag.forgejo_package_token(svc-oci-writer) withevents: ["tag"], behind a Forgejo protected-tag rule that limitsv*topiers.make check. A base-digest drift test (pipelines against the Makefile) and a Containerfile parity test (user, entrypoint, command).v*tags must not be re-pushed: publish refuses them, but the run would still fail noisily.Human act (CONV-40): activate on
ci.groupthink.asiaandPATCH {"allow_pr": true}; storeforgejo_package_tokenwithevents: ["tag"]; add thev*protected-tag rule forpiers.Problem
The repo has release tags (
v0.10.2is the latest) but no CI and no release automation. Every image in the Forgejo registry was built and pushed by hand (make image-amd64,podman push), and the starbase overlays pin the image by hand in JSON patches (mail-mind-mcp:0.10.1@sha256:…). No pipeline runsmake checkbefore a merge; the architect runs it on a scratch worktree.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
vX.Y.Zform already in use. CI builds the image from the tag with the image tagX.Y.Z(thevstripped, matching the images already pushed). The starbase pin references the release three times: kustomize base?ref=vX.Y.Z,images[].newTag: X.Y.Z,images[].digest. Record this as an ADR amendment indocs/adr/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 the Containerfile's digest-pinned Python image that installsuvand runsmake check. Integration tests that need podman stay host-only..woodpecker/release.yaml:event: tag,ref: refs/tags/v*; reproduces theContainerfilethe way dev/ops-gateway does: anassemblestep runs the dependency stage on the pinned Python image and writes one layer tarball (the venv), animagestep appends it to the pinned base with crane and sets the Containerfile's config, and apublishstep pushes with crane, reads back the registry digest, tagsgit.groupthink.asia/dev/mail-mind-mcp:X.Y.Zand 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 (the samesvc-oci-writertoken dev/ops-gateway and dev/people-mind-mcp#41 use). 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 repo already tags releases and starbase already pins its base by tag (?ref=v0.10.1), so the tag lane matches current practice; the alternative is publish-on-main with a floating image tag. The tag lane is the cheaper one to reverse.Acceptance criteria
validation.yamlgoes green onmake check.v0.10.3runsrelease.yaml, the image0.10.3exists in the Forgejo registry, andpodman pull git.groupthink.asia/dev/mail-mind-mcp@<digest>returns the logged digest.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
Triaged 2026-11-03 (backlog wave 5, batch T-B1). Labels confirmed (
enhancement,ready-for-human); the## Human act,## Blocked byandFiled under:lines already satisfy CONV-40 rules 5 and 6, and the decision record at the top points at dev/people-mind-mcp ADR 0008 (docs/adr/0008-release-and-delivery.md, present at origin/main). Body hygiene only: the acceptance heading now reads## Acceptance criteriasoflowsees the anchor. Operator act outside the stages: the.woodpecker/*architect-direct PR (decision 8).Filed under: operator word "ready-for-human, architect-direct (Recommended)" sha256:39567474da36
Acceptance run: tag
v0.10.6, the first release tag after activation (decision record item 9).validation.yamlis green on every PR since #153 (pipelines 3–14).git.groupthink.asia/dev/mail-mind-mcp:0.10.6, digestsha256:beace95e3099d2b91a3abbef3c4d65a4eb8878c3929bed401465982dcc757a74. The digest is the last log line.podman pull git.groupthink.asia/dev/mail-mind-mcp@sha256:beace95e…a74returns that digest. Labels: version0.10.6, revision2b1c67320e0e01464fdd104b3ec5fb873eddfe4b.kubectl kustomize …//deploy/k8s/base?ref=v0.10.6renders all three mail-mind containers at:0.10.6.Two failures before the green run:
forgejo_package_tokenhad an image filter, which makes a secret plugin-only, andpublishis a command step. The operator cleared the filter (events: ["tag"],images: []). PR #157 corrected the comment inrelease.yaml.publishwith Cloudflare 524 on a blobPATCH, after 8 layers had uploaded. No manifest was pushed, so the tag did not exist. The restart (pipeline 17) skipped the uploaded layers and succeeded.Residual: a large layer pushed through Cloudflare can exceed its ~100 s origin timeout. The next release whose venv or model layer changes can hit 524 again. A restart is safe, because the manifest goes last and the probe refuses only an existing tag. A lasting fix routes registry pushes around Cloudflare. That is an infra decision; it is not filed yet.
Out of scope here: the starbase pin (starbase/iac#297) can now take
newTag: 0.10.6plus the digest above.Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com