You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ci(release): dispatch the binding cascade after crates.io publication, not on the tag push #938
cascade.yml starts on the tag push and waits at most 36 × 10 s (about 6 minutes) for crates.io to show the version (.github/workflows/cascade.yml:33–51). release.yml publishes the crate only after cargo-dist has built five native targets and created the GitHub release (publish-crates-io needs plan and host, release.yml:298–320). A slow but successful release can therefore leave all seven bindings undispatched. The v2.0.10 cascade needed a manual re-dispatch after this wait timed out.
release.yml is generated by cargo-dist and must not be edited, so the fix belongs in cascade.yml:
Trigger on completion of the release workflow (workflow_run of "Release", conclusion success) or on release: published, then wait for crates.io indexing. Don't trigger on the tag push.
Keep workflow_dispatch for re-dispatching a partial ecosystem release.
Test it with the alpha's dry run before tagging.
Found by the independent Codex review of 3.0.0-alpha readiness, and confirmed.
Put the cascade on the default branch. Before dispatching bindings, validate that the triggering run is the official tag-triggered Release run, resolve the published tag to its commit and compare it with that run’s head_sha (not the cascade’s own GITHUB_SHA), then wait for that exact crate version to be indexed. Keep manual workflow_dispatch for recovery.
For a dry-run fixture: both attempts used v2.0.12, but Release #111 at cbd56af was cancelled and should dispatch nothing. Release #112 succeeded at 8ef9d46, the commit named by the published release. Also exercise the successful path with delayed crate indexing.
Activity
adityamukho commentedon Nov 30, 2026
I’d choose
workflow_run(completed, conclusionsuccess) for the Release workflow. The generated release workflow uses the repository’sGITHUB_TOKENto create the GitHub release, and GitHub does not start downstream workflows from that token’s release event. The GitHub release is also created before the crates.io publish job, sorelease: publishedis not a signal that the crate is ready.Put the cascade on the default branch. Before dispatching bindings, validate that the triggering run is the official tag-triggered Release run, resolve the published tag to its commit and compare it with that run’s
head_sha(not the cascade’s ownGITHUB_SHA), then wait for that exact crate version to be indexed. Keep manualworkflow_dispatchfor recovery.For a dry-run fixture: both attempts used
v2.0.12, but Release #111 atcbd56afwas cancelled and should dispatch nothing. Release #112 succeeded at8ef9d46, the commit named by the published release. Also exercise the successful path with delayed crate indexing.ci(release): gate publishing on CI and dispatch bindings after crates…
ci(release): gate publishing on CI and dispatch bindings after crates…
Merge pull request #955 from project-minigraf/ci/938-939-release-v3