Repository navigation
test(modules): guard published module pins and proxy closure - #2026
Merged
Merged
Conversation
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]>
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)
Merged
2 tasks
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add
task test:module-publicationand 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 fromorigin/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 withGOWORK=off, an isolated module cache, and the public Go proxy only.VERSION=vX.Y.Zchecks 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.0incident as the pinning example. The public installation guide mentions only the supportedv0.1.1tag.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 standaloneactionlint— passed.task lint:actionsreached the existing microVM CI release proof but could not complete locally becausecosignis 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.