Repository navigation
release: publish verified preview packages from exact tags - #116
Merged
Merged
Conversation
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.
Closes #97
Adds controlled GitHub Release publication to the existing five-target package workflow. Tag pushes and dispatches without the Boolean opt-in remain read-only builds. A dispatch on the exact preview tag with
publish_release=truewaits for all package jobs, re-verifies every archive, checksum and manifest against the tag and the locked LanceDB/Lance revisions, then creates a draft, uploads only missing digest-verified assets, and publishes after readback.Safety: only the publish job has
contents: write. The tag ref object, peeled commit and tag type are re-read withgit ls-remotebefore draft writes, immediately before publication and after publication; moved or missing tags fail. Stable tags are rejected, retries reuse drafts, existing asset digests are verified instead of replaced, and published releases are never modified. GitHub exposes ref reads and release writes as separate operations, so the remaining check/write race needs server-side tag protection and release immutability for an atomic guarantee; this PR does not change repository protections.Package and publication checksum files are written as canonical LF bytes, including on Windows. Release preparation canonicalizes verified sibling checksums and the combined
SHA256SUMS, and a 502 starter asset fails closed with the release id, asset name and a documented way to remove only that empty placeholder before retrying.LICENSEandinclude/lancedb.hare markedtext eol=lfso packaged source bytes are identical on Linux, macOS and Windows runners.Validation on head
19fcd20(after merging repaired main with #117 and #87; clean treeae0f224c):test_release.py30/30,test_package.py23/23, actionlint 1.7.12 clean, shallow exact-tag fixture passed, workflow shape asserted tag/manual-only with a single gated write job. GNUsha256sum -cpassed for both Windows target archives, their extracted internal sums, sibling sums and the combinedSHA256SUMS. No tag, dispatch, release, protection change or heavy build was performed. The hosted five-platform package matrix and real consumer checks still need to run on an actual tag dispatch before the first release.