Repository navigation
fix: release-time manifest-version guard + honest install docs (#90, #91) - #95
Merged
Merged
Conversation
) The v0.10.0 release zip's MANIFEST.MF declared Plugin-Version: 0.8.0 while shipping under the v0.10.0 tag. The existing release-workflow check only compared the tag to build.gradle's source `version = '...'` line, which was already correct — it never looked at what the built artifact actually contained, so it couldn't have caught this. scripts/check-release-version.sh replaces that check: it builds the real plugin zip, unzips MANIFEST.MF, and compares the manifest's own Plugin-Version (and Plugin-Id) against the tag, plus the existing CHANGELOG [Unreleased]-promotion check. Mirrors the shape of lagotto's scripts/check-release-version.sh (build-then-verify-the-real-artifact) adapted to this project's Gradle/manifest release shape rather than Go ldflags. A companion Spock suite (ReleaseVersionGuardTest) feeds the guard a hand-crafted zip with a mismatched manifest and confirms it fails, a matching one and confirms it passes, and asserts the release workflow still invokes the script. Separately, README's Installation section led with `plugins { id '[email protected]' }`, which resolves against the Nextflow plugin registry — nf-spawn isn't published there, so that snippet fails on a clean machine. The working path (download the release zip, unpack into ~/.nextflow/plugins/) is now primary; the registry form is marked not-yet-available.
scttfrdmn
force-pushed
the
fix/90-91-release-version-and-docs
branch
from
September 5, 2026 21:27
0454e0e to
806ba57
Compare
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
v0.10.0 release zip ships a 0.8.0 plugin manifest (tag/version mismatch → wrong plugin id) #91 — the v0.10.0 release zip's
MANIFEST.MFdeclaredPlugin-Version: 0.8.0while shipping under thev0.10.0tag. Root cause per investigation: the release workflow's version check only greppedbuild.gradle's SOURCEversion = '...'line against the tag — it never inspected what the built artifact actually contained. A stale build cache or any drift between the source line and the toolchain-generated manifest would sail through that check undetected.README install (plugins { id '[email protected]' }) fails: not in the Nextflow plugin registry #90 — README's Installation section led with
plugins { id '[email protected]' }, which resolves against the Nextflow plugin registry (nextflow-io/plugins). nf-spawn is not published there, so that exact snippet fails on a clean machine. The working install path (download the release zip, unpack into~/.nextflow/plugins/) was listed only as the "development" alternative.These are handled together because #91's root cause — a version-bump miss that a source-line check couldn't catch — is also why #90's documented path could never be relied on even once corrected: the only path that reliably works today is the manual-unpack one, so that's now the primary documented instructions.
What changed
#91 — release-time guard (
scripts/check-release-version.sh)./gradlew assemble), unzipsclasses/META-INF/MANIFEST.MF, and compares the manifest's actualPlugin-Version(andPlugin-Id) against the tag — not a restated copy of the source line. Also keeps the pre-existing "CHANGELOG has a## [X.Y.Z]section, not still[Unreleased]" check..github/workflows/release.yml: replaced the old "grep build.gradle's version line" step + separate "Build plugin zip" step with a single "Release version guard" step that calls the new script (which builds the zip itself and leaves it inbuild/distributionsfor the publish step).scripts/check-release-version.sh(release-time guard that builds-then-verifies the real artifact, invoked from the release workflow, backed by a companion unit-test suite) — adapted from Go ldflags/cmd.Versionto this project's Gradle-generatedMANIFEST.MF.build.gradle'sversiononmainis0.10.0, matching the latest tagv0.10.0. I rebuilt v0.10.0 locally and its manifest correctly reportsPlugin-Version: 0.10.0— I also re-downloaded the actual publishedv0.10.0release asset from GitHub twice (viagh release downloadand via a freshcurl, confirming the sha256 matches the local rebuild byte-for-byte) and its manifest also reports0.10.0, not0.8.0. So the specific artifact described in v0.10.0 release zip ships a 0.8.0 plugin manifest (tag/version mismatch → wrong plugin id) #91 is not reproducible against the current published asset — whatever produced the stale0.8.0manifest (a stale local build, a since-corrected re-run, or an earlier version of the asset) is not present now. The guard closes the underlying gap either way: nothing before this PR verified the built artifact at all.#90 — README install docs
~/.nextflow/plugins/<id>-<version>/→ reference the same version innextflow.config. Verified the unzip destination shape matches exactly what Nextflow expects (~/.nextflow/plugins/nf-spawn-X.Y.Z/classes/META-INF/...).plugins { id '[email protected]' }) is kept (it's still needed once the plugin is installed locally) but is now explicitly called out as not resolvable from the registry — nf-spawn isn't listed innextflow-io/plugins../gradlew installPlugin(build-from-source) is kept as a secondary path.Tests
src/test/groovy/io/nextflow/spawn/ReleaseVersionGuardTest.groovy(Spock):Plugin-Version: 0.8.0against tagv0.10.0and asserts it fails (reproduces the exact v0.10.0 release zip ships a 0.8.0 plugin manifest (tag/version mismatch → wrong plugin id) #91 shape).github/workflows/release.ymlstill invokesscripts/check-release-version.shConfirmed fail-without/pass-with by hand: commenting out the guard's invocation in the workflow fails the "workflow still invokes" test; corrupting the guard's comparison logic (
if false; then ...in place of the mismatch check) fails the "guard fails a mismatched manifest" test. Both pass again once reverted.CHANGELOG
## [Unreleased]entries added underFixed(v0.10.0 release zip ships a 0.8.0 plugin manifest (tag/version mismatch → wrong plugin id) #91) andDocumentation(README install (plugins { id '[email protected]' }) fails: not in the Nextflow plugin registry #90).Test plan
./gradlew clean test— full Spock suite green (101 tests across 4 spec files, incl. 5 new)shellcheck scripts/check-release-version.sh— cleanbash scripts/verify-pins.sh— all 12 action pins still verifiedv0.10.0tag/build — passesv0.99.0) — fails with a clear error naming both the manifest's actual version and the expected one