8000 ci(release): dispatch the binding cascade after crates.io publication, not on the tag push · Issue #938 · project-minigraf/minigraf · GitHub
[go: up one dir, main page]

Skip to content

Navigation Menu

ci(release): dispatch the binding cascade after crates.io publication, not 8000 on the tag push #938

Done

Description

@adityamukho

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.

Activity

  1. added this to the v3.0.0 milestone on Nov 29, 2026
  2. adityamukho commented on Nov 30, 2026

    @adityamukho
    CollaboratorAuthor

    I’d choose workflow_run (completed, conclusion success) for the Release workflow. The generated release workflow uses the repository’s GITHUB_TOKEN to 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, so release: published is 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 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0