Skip to content

ci: release all modules together from a VERSION file - #396

Merged
rdimitrov merged 1 commit into
mainfrom
rdimitrov/release-flow
Oct 19, 2026
Merged

rdimitrov merged 1 commit into
mainfrom
rdimitrov/release-flow

Conversation

@rdimitrov

Copy link
Copy Markdown
Member

Summary

Switches toolhive-core to the release flow used by toolhive and toolhive-registry-server, extended to release all five Go modules with one version.

Releasing after this:

  1. Run Create Release PR (Actions tab, or gh workflow run create-release-pr.yml -f bump_type=patch). releaseo bumps VERSION and opens a Release vX.Y.Z PR.
  2. Merge it. Create Release Tag tags the merged commit as vX.Y.Z, redisconn/vX.Y.Z, redisconn/aws/vX.Y.Z, redisconn/azure/vX.Y.Z and redisconn/gcp/vX.Y.Z, then creates the GitHub Release with generated notes.
  3. The published release triggers Release, which attaches the registry schemas.

No more per-module tags, release ordering, or pin PRs.

Changes

  • New: VERSION (0.0.56, the current release), create-release-pr.yml, create-release-tag.yml.
  • release.yml: runs on release: published instead of tag pushes. It keeps the go-sdk pre-release warning and the schema upload; the preflight job and manual dispatch inputs are gone.
  • Provider modules: removed replace github.com/stacklok/toolhive-core/redisconn => .. from redisconn/aws, azure and gcp. go.work still links the modules for local development. CI's GOWORK=off runs now build each provider against the published redisconn it requires (v0.0.4), which is what consumers get. That's the guarantee validate-release.sh used to enforce at tag time; now it's checked on every PR.
  • Removed: scripts/validate-release.sh, scripts/test-validate-release.sh, scripts/testdata/, and their references in test.yml, Taskfile.yml and renovate.json.
  • Docs: README release section and docs/redisconn-extraction.md.

check-redisconn-modules.sh (the no-cloud-SDKs-in-core budget) and the per-module CI runs are unchanged.

Notes

  • Needs before merge: the release GitHub App installed on this repo, plus the RELEASE_APP_CLIENT_ID variable and the RELEASE_APP_PRIVATE_KEY secret. The App token is needed because a release created with GITHUB_TOKEN doesn't trigger release.yml.
  • Version jump: the nested modules jump from their own numbers (e.g. redisconn/aws v0.0.8) to the shared version on the next release. Go allows gaps.
  • Tagging is safe to re-run: tags that already exist on the release commit are skipped, a tag already on a different commit fails the run, and all new tags are pushed in one atomic git push.
  • Tradeoff: a PR that changes the redisconn API and a provider together now fails the provider's GOWORK=off CI until a release ships the new core. Release first, then bump the provider. This has never happened so far (every sibling release was a dependency bump).

Test plan

  • actionlint clean on the new and changed workflows
  • Release-commit check accepts Release v0.0.57 (#400) and .../release/v0.0.57, rejects Release v0.0.570 and non-release commits
  • Dry run of the tagging step in a throwaway clone: 5 tags on one commit, re-run is a no-op, conflicting tag fails
  • GOWORK=off tidy/verify/test/vet for all four redisconn* modules; check-redisconn-modules.sh
  • Root go test -race ./..., license check
  • First real release through the new flow once the App is set up

🤖 Generated with Claude Code

Replace the manual, per-module tag process with the release-PR flow used
by toolhive and toolhive-registry-server:

- create-release-pr.yml bumps VERSION via releaseo and opens a release PR
- create-release-tag.yml tags the merged commit for all five Go modules at
  the same version and creates the GitHub Release
- release.yml now runs on the published release and uploads the schemas

Drop the development-only redisconn replace directives from the provider
modules so GOWORK=off CI builds them against the published redisconn they
require, and remove validate-release.sh, its test script and fixtures,
which only guarded against drift those replaces could hide.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@rdimitrov
rdimitrov merged commit bda7d5b into main Oct 19, 2026
6 checks passed
@rdimitrov
rdimitrov deleted the rdimitrov/release-flow branch October 19, 2026 21:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants