Skip to content

wake: CI's and Package's end on spin/next wakes ship-it - #46

Merged
aledbf merged 1 commit into
mainfrom
ci/wake-ship-it-on-checks
Nov 20, 2026
Merged

aledbf merged 1 commit into
mainfrom
ci/wake-ship-it-on-checks

Conversation

@aledbf

@aledbf aledbf commented Nov 20, 2026

Copy link
Copy Markdown
Member

Why

spin-stack's workflows should move forward and heal on their own, with spin-stack/ship-it as the one reconcile loop. Workflows that change state ship-it reads wake it with a repository_dispatch of type wake, because GitHub's schedule is not a clock: */5 ran 3 of 576 times in 48 h. ship-it merges the Bump spin workflow's pull request on spin/next once every check on its head has passed, and nothing woke it when those checks finished.

What

.github/workflows/wake.yml runs on workflow_run when CI or Package completes. Its one job runs only for spin/next of this repository, never a fork's. It ends with task ship-it:wake as the release app on ship-it alone, with the run's conclusion, and never fails. task ship-it:wake is new here, the same task as ami's and spin-terraform-aws's.

The ruleset requires Gate and Integration, both in ci.yml, and Package in package.yml. Either workflow can finish last, so each wakes ship-it. A wake that finds a check still running costs one no-op ship-it run.

It is a workflow of its own and not a last job in ci.yml. ship-it's Checks counts every check run on the pull request's head and waits while any is not completed, so a wake job there would be a check still running while the ship-it it woke reads them. A workflow_run run's checks land on main's head instead.

bump-spin.yml is untouched.

Checks

go tool task install, lint, test and gate (taskgate, testidentity) exit 0. actionlint exit 0.

🤖 Generated with Claude Code

ship-it merges the Bump spin workflow's pull request on spin/next once every
check on its head has passed, and nothing told it when that was: GitHub's
schedule does not wake it (a */5 cron ran 3 of 576 in 48 h).

wake.yml runs on workflow_run when CI or Package completes, for spin/next of
this repository only (never a fork's), and ends with task ship-it:wake as the
release app on ship-it alone, with the run's conclusion, never failing. The
required checks are Gate and Integration in CI and Package in package.yml, and
either workflow can finish last, so each wakes it: a wake that finds a check
still running is a no-op. It is a workflow of its own and not a last job in
ci.yml: ship-it waits until every check on the head is done, and such a job
would be one of them, still running while ship-it reads them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@aledbf
aledbf merged commit 6709cef into main Nov 20, 2026
3 of 4 checks passed
@aledbf
aledbf deleted the ci/wake-ship-it-on-checks branch November 20, 2026 14:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant