chore: release-please and shared release workflows #23
All Vouch review confidence checks passed
Residual risk 0.20 = Change Risk (0.50) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.50 · 603 lines diff across 7 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.383
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #23"
general
weight: 0.35
gusfcarvalho
Why
The plugin joins the release flow: release-please opens release PRs, and the shared
release-go-plugin.ymlpublishes a release when it's published, instead of a goreleaser run on any pushed tag.Default branch: this repo is on
main, so the base of this PR ismainand everypush: branches:trigger here uses[main].What changes
release-please-config.json: the shared defaults from workflowsrelease-please/defaults.jsonat v1.5.2 (no drift), withpackages: {".": {"release-type": "go"}}..release-please-manifest.json: seeded at0.6.0, the latest final release (v0.6.0, fromreleases/latest; its commitd2a79f4is an ancestor ofmain). The repo also hasv0.6.0-rc1, which is a release candidate and is not used as the seed. Sincev0.6.0,mainhas onefix(deps)commit (#20); the other two commits are "Merge pull request" commits (#19, #21), whose headers aren't conventional. So the first release PR should propose0.6.1.6e7fc9c):release-please.yml(push tomain),release.yml(release: published,protocol-version: "2"),preview.yml(kind: go-plugin,on-main: false, so only thepreviewlabel publishes:pr-<n>) andcut-prerelease.yml(workflow_dispatch, rc tagsvX.Y.Z-rcN).ci.yml: pins moved from v1.5.1 to v1.5.2. It already callsrelease-checks.yml; nothing else changes..goreleaser.yaml: addsrelease: {prerelease: auto, replace_existing_artifacts: true}. The shared job refuses to run withoutprerelease: autoand warns withoutreplace_existing_artifacts. Builds (binary: plugin, linux and darwin) and archives are unchanged.Deleted
.github/workflows/build-and-upload.yml: reusable job that ran goreleaser and uploadeddist/with gooci to:<tag>and:latest..github/workflows/release.yml(old content, replaced by the new caller of the same name): on any tag push, calledbuild-and-upload.yml.Published artifacts: old vs new
| | Old (tag push) | New (
release: published) || --- | --- | --- |
| Trigger | push of any tag (
*) | GitHub release published by release-please orcut-prerelease(tags arevX.Y.Z/vX.Y.Z-rcN) || GitHub release | created by goreleaser from the tag, always as a full release (
v0.6.0-rc1is not marked pre-release) | created by release-please, or bycut-prereleaseas a pre-release; goreleaser attaches the archives (prerelease: autokeeps an rc a pre-release) || Release assets | 5 archives +
plugin-apt-versions_<version>_checksums.txt| same names; same contents, since the builds and archives config is unchanged (snapshot below) || OCI tags |
:<tag>and:latest|:vX.Y.Z, plus:latestonly for a final tag || rc handling |
latestwas gated ongithub.event.release.prerelease, which is empty on a tag push, sov0.6.0-rc1also movedlatest| an rc publishes only:vX.Y.Z-rcN;latestis untouched ||
latestdigest | a second, separate upload (today:v0.6.0issha256:b31db5f…and:latestissha256:e8e8782…) |crane tagpointslatestat thevX.Y.Zmanifest: one digest || Upload |
gooci upload dist/ <ref> --annotate=org.ccf.plugin.protocol.version=2|gooci upload --annotate=org.ccf.plugin.protocol.version=2 dist/ <ref>(same command, flag first) || Go version |
setup-gowithoutgo-version-file(the runner's default Go) |go-version-file: go.mod|| Tool versions | goreleaser
~> v2, gooci@latest| goreleaser v2.18.2, gooci v0.0.7, crane v0.20.7 |One visible difference: the
latestindex'sorg.opencontainers.image.ref.name/org.opencontainers.image.versionannotations will readvX.Y.Zinstead oflatest, becauselatestis now the same manifest as the version tag.Verified locally
go run github.com/rhysd/actionlint/cmd/actionlint@v1.7.12: clean.go build ./...andgo test ./...: pass.goreleaser checkandgoreleaser release --snapshot --clean(v2.16.0):dist/hasplugin-apt-versions_{Darwin_arm64,Darwin_x86_64,Linux_arm64,Linux_i386,Linux_x86_64}.tar.gz(eachLICENSE,README.md,plugin) and a checksums file, the same asset names as thev0.6.0release. Thego mod tidyhook left the tree unchanged.release-please-config.jsoncompared with workflowsrelease-please/defaults.jsonat v1.5.2: no differing keys.The README's "Releasing" section names goreleaser and the GitHub releases page; it doesn't mention tag pushes or the old workflows, so it is unchanged.
This PR stays open until the batch's repo settings are applied (the
releaseenvironment holds the ccf-release-bot secrets release-please needs).Task: W3-S2-T01 (local-dev/docs/release-automation/workstream-3-plugins-in-train.md)
🤖 Generated with Claude Code