Repository navigation
feat: make release/build pipeline Option-B-safe - #34
Merged
Merged
Conversation
Under Option B the prebuilt submodule is manifests-only and tool binaries live in each release's assets (fetch-artifacts.sh rehydrates + verifies them). The release and LLVM-build pipelines still assumed binaries were in git, so a naive tool-update release would either ship a tag with no artifacts (fetch 404s) or re-bloat the slimmed repo. - release.sh: after creating the GitHub release, publish the prebuilt tool artifacts to the tag via publish-artifacts.sh --gh (opt out with --skip-artifacts). First verifies prebuilt/ holds the complete declared set with the new check-prebuilt-artifacts.sh, and refuses to publish an incomplete tag (prevents shipping a release that cannot install). - check-prebuilt-artifacts.sh: new on-disk completeness check (companion to the checksum-only check-prebuilt-manifests.sh) for publishers/bundlers. - build-llvm-linux.yml: the commit job now commits MANIFEST ONLY to prebuilt git and ships the split parts as the llvm-linux-parts-<ver> workflow artifact, so CI-built LLVM variants no longer land in git. (The musl/sqlite build workflows already only upload workflow artifacts.) - smoke-test.yml: refresh the stale "prebuilt must contain archives" header. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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.
Why
Follow-up to the Option-B CI fix (#32): the release and LLVM-build
pipelines still assumed tool binaries lived in git. Under Option B the
prebuilt/submodule is manifests-only and binaries live in each release's assets, so a naive
tool-update release would either (a) ship a tag with no artifacts —
fetch-artifacts.sh404s — or (b) re-bloat the slimmed repo. This makes the pipeline Option-B-safe so the
pending tool bumps (issue #24) can be released cleanly.
What
release.sh— after creating the GitHub release, publishes the prebuilt toolartifacts to the tag via
publish-artifacts.sh --gh(opt out with--skip-artifacts).First runs the new completeness gate and refuses to publish an incomplete tag.
check-prebuilt-artifacts.sh(new) — on-disk completeness check; companion to thechecksum-only
check-prebuilt-manifests.sh. Used byrelease.sh(and usable beforebuild-bundle.sh) so a manifests-only/partial tree can't ship.build-llvm-linux.yml— the commit job now commits manifest-only toprebuilt/and ships the split parts as the
llvm-linux-parts-<ver>workflow artifact, so CI-builtLLVM variants no longer land in git. (The musl/sqlite build workflows already upload
workflow artifacts only.)
smoke-test.yml— refresh the stale "prebuilt must contain archives" header comment.Release flow (also documented locally in CLAUDE.md): hydrate
prebuilt/from the previoustag with
fetch-artifacts.sh, overlay the version's new stagings, thenrelease.shverifiescompleteness and publishes the whole set to the new tag.
Validated:
ci/lint.shclean;release.sh/check-prebuilt-artifacts.shsyntax OK;check-prebuilt-artifacts.shcorrectly flags the current manifests-only tree (338 absent).🤖 Generated with Claude Code