ci: skip the release pipeline when R2 release infrastructure is absent - #10
Closed
thomaswillner wants to merge 1 commit into
Closed
ci: skip the release pipeline when R2 release infrastructure is absent#10thomaswillner wants to merge 1 commit into
thomaswillner wants to merge 1 commit into
Conversation
The Release Prime Agent workflow runs on every push to main and hard-fails at 'test -n "$PRIME_AGENT_DOWNLOAD_BASE_URL"' on any repo that lacks the R2_PUBLIC_BASE_URL variable and R2 secrets - on this fork that is every run (4/4 failed), leaving a permanently red Build Binaries badge for a pipeline that cannot succeed here. Gate the release-context job (and via needs, build and publish) on R2_PUBLIC_BASE_URL being configured. Push- and tag-triggered runs now skip cleanly without the infrastructure; repos with it configured behave exactly as before. Explicit workflow_dispatch runs are exempt from the gate so a manual release request without infrastructure still fails loudly on the existing guards instead of silently skipping. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WJM8XQpjcfq41HUGvLMsqZ
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.
Problem
The Release Prime Agent workflow (
build-binaries.yml) runs on every push tomainand has failed on all 4 runs in this repo — the latest two being the doc-only merges of #6 and #9. The build andnpm run checksteps pass; the failure is always the same:PRIME_AGENT_DOWNLOAD_BASE_URLcomes fromvars.R2_PUBLIC_BASE_URL, which is upstream release infrastructure (together with theR2_*secrets used by thepublishjob). Neither exists on this fork, so the pipeline can never succeed here — every push tomainproduces a failed run and the README's Build Binaries badge stays permanently red.Change
One job-level
ifonrelease-context(the root job —buildandpublishdepend on it vianeeds, so they inherit the skip):R2_PUBLIC_BASE_URLis not configured, instead of failing. The run concludes green with all jobs skipped.workflow_dispatchis exempt from the gate: an explicit manual release request without infrastructure still runs and fails loudly on the existingtest -nguards, rather than silently skipping.Validation
yaml.safe_load).ifcontexts (vars,github.event_name); undefined repository variables evaluate to''in expressions, so absence ⇒ skip.npm run checkclean on the branch (biome 901 files, tsgo, installer render, browser smoke — also re-run by the pre-commit hook at commit time).Generated by Claude Code