Repository navigation
feat(ci): allow the release pipeline to be rehearsed without publishing - #798
Merged
Merged
Conversation
The release workflow has never executed: no tag has been pushed since it landed in #793. The first run would therefore be the real v1.6.0 tag, which is a poor place to find out that ocsign will not build, that a signing secret is malformed, or that `make dist` behaves differently on ubuntu-latest than in a local container. The reusable workflow already takes a `dry-run` input that skips the tag-vs-info.xml check and the release creation and uploads the tarball as a workflow artifact instead, but nothing in the org has ever used it - every release.yml caller is tag-push only, so it was unreachable here. Adds workflow_dispatch and derives dry-run from the ref. The condition is written as the positive invariant "only a push of a v-tag publishes" rather than "a dispatch is a dry run", so that a trigger added here later cannot inherit real-release behaviour by default: a `push: branches: ['v*']` would otherwise publish a release from a branch head. A dispatch never publishes, including a dispatch against a tag. A v-tag push is unaffected. inputs.dry-run is not used because on a tag push the inputs context is empty, and passing '' to the callee's boolean input is an error. What a dispatch then exercises, per the callee: the signing-secret presence check (not gated by dry-run), the ocsign build, `make dist` with CAN_SIGN, the schema-v2 / leaf-CN signature assertions, and the development-files assertion. Only the tag check and release creation are skipped. Note that workflow_dispatch is only offered once the trigger is on the default branch, so the first rehearsal is possible after this merges - this branch cannot rehearse itself. Signed-off-by: Thomas Müller <[email protected]>
Contributor
Author
kw-tmueller
approved these changes
Sep 23, 2026
Closed
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
The release workflow has never executed. No tag has been pushed since it landed in
#793, so the first run would be the real
v1.6.0tag — a poor place to discover thatocsign won't build, that a signing secret is malformed, or that
make distbehavesdifferently on
ubuntu-latestthan in a local container.The reusable workflow already takes a
dry-runinput that skips the tag check and therelease creation and uploads the tarball as a workflow artifact instead. Nothing in the
org has ever used it — all ten
release.ymlcallers I checked are tag-push only, so itwas unreachable here.
What
Adds
workflow_dispatchand derivesdry-runfrom the ref:Written as the positive invariant "only a push of a v-tag publishes" rather than
event_name == 'workflow_dispatch', so a trigger added here later cannot inheritreal-release behaviour by default — a
push: branches: ['v*']would otherwise publish arelease from a branch head. Truth table:
dry-runrefs/tags/v1.6.0falsetruetruepush: branches: ['v*']trueinputs.dry-runis deliberately not used: on a tag push theinputscontext is empty,and passing
''to the callee'sbooleaninput is an error.What a rehearsal actually exercises
From the callee, only two steps are gated by
dry-run— "Verify tag matchesappinfo/info.xml" and "Create GitHub Release". Everything else runs:
make dist CAN_SIGN=true sign="ocsign …"onubuntu-latestappinfo/signature.jsonpresent, schema v2, leaf CN equalsthe app id
actions/upload-artifactwithif-no-files-found: error, so an empty glob fails the jobScope — this is convenience, not a privilege boundary
Called out in a comment so nobody mistakes it for a control.
workflow_dispatchreads theworkflow from the ref it runs against, so a branch can set
dry-runitself; and the calleewrites the signing key to the runner before
make distexecutes ref-controlled code,dry run or not. A
v*tag push already grants exactly that — there is no tag ruleset onthis repo — so this adds no reach. If that ever needs to change, the fix is an
environmentwith required reviewers around the key, not this trigger.Notes
workflow_dispatchis only offered once the trigger is on the default branch, so thisbranch cannot rehearse itself — the first rehearsal is possible after merge.
dry-runpath(the reusable repo's own
test.ymlonly passes the literaldry-run: true), so afailure may be in that previously unexercised branch rather than here.
make composerrunscomposer updateandpackage.json'sprebuildrunsnpm update && bower update, so a rehearsal today and the real tag next week can vendor differentcode. Pre-existing and out of scope here, but worth knowing.