Skip to content

test(modules): guard published module pins and proxy closure - #2026

Merged
jbeda merged 3 commits into
mainfrom
test/module-publication-guard
Oct 1, 2026
Merged

jbeda merged 3 commits into
mainfrom
test/module-publication-guard

Conversation

@jbeda

@jbeda jbeda commented Sep 30, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Add task test:module-publication and a conditional step in the existing Go Build CI job, not a new runner. The step runs only when relevant module manifests/checksums or the task's CI controls change; ordinary Go-source and docs-only PRs skip it. Before tagging, the task rejects releaseable module dependencies pinned to PR-head-only commits and verifies nested tag targets are reachable from origin/main. It checks that root and microVM consume the same published adapters tag. A fresh external module then compiles all three adapters using that tag with GOWORK=off, an isolated module cache, and the public Go proxy only. VERSION=vX.Y.Z checks a newly published tag before consumers update their manifests.

Negative controls prove rejection of a PR-head pseudo-version, a root tag masquerading as a nested tag, an adapters tag pointing outside main, and a failed JSON parser. The published adapters manifest itself is checked for PR-head dependencies, even when its module graph happens to resolve from the proxy.

The contributor release policy retains the adapters/v0.1.0 incident as the pinning example. The public installation guide mentions only the supported v0.1.1 tag.

Verification

  • task test:module-publication — passed; cold external module resolution and compilation.
  • task test:module-publication VERSION=v0.1.0 — correctly failed on tagged manifest's PR-head dependency despite its currently resolving from the proxy.
  • sh .github/scripts/check-module-publication_test.sh, sh -n ..., git diff --check — passed.
  • task docs, task site:build, workflow classifier test, and standalone actionlint — passed.
  • task lint:actions reached the existing microVM CI release proof but could not complete locally because cosign is not installed (exit 127). Full local test/lint/race gates are left to CI per operator preference.

This is a release-policy gate for the independently published persistence modules, not a new constraint on workspace-only modules or provider bootstrap versions.

Reject PR-head-only revisions in releasable manifests and consumed tags; compile the published adapter from a fresh external Go module through the public proxy in a dedicated CI job.

Co-authored-by: Mecatl <[email protected]>
jbeda and others added 2 commits September 30, 2026 15:53
Reuse the Go Build runner and gate the public-proxy proof on trusted module-metadata relevance. Keep the user guide focused on the supported adapter release.

Co-authored-by: Mecatl <[email protected]>
Co-authored-by: Mecatl <[email protected]>

* origin/main:
  Bound mecatui saved-memory browser (#2012)
@jbeda
jbeda merged commit 816fdb7 into main Oct 1, 2026
40 checks passed
@jbeda
jbeda deleted the test/module-publication-guard branch October 1, 2026 05:16
@toolhive-release-app toolhive-release-app Bot mentioned this pull request Oct 1, 2026
2 tasks

This branch was successfully deployed

1 active deployment
Preview — bc38d4a1 Deployed Sep 30, 2026 by vercel[bot]
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.

1 participant