Repository navigation
wake: CI's and Package's end on spin/next wakes ship-it - #46
Merged
Merged
Conversation
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>
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
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_dispatchof typewake, because GitHub's schedule is not a clock:*/5ran 3 of 576 times in 48 h. ship-it merges the Bump spin workflow's pull request onspin/nextonce every check on its head has passed, and nothing woke it when those checks finished.What
.github/workflows/wake.ymlruns onworkflow_runwhen CI or Package completes. Its one job runs only forspin/nextof this repository, never a fork's. It ends withtask ship-it:wakeas the release app on ship-it alone, with the run's conclusion, and never fails.task ship-it:wakeis 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 inpackage.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'sCheckscounts 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. Aworkflow_runrun's checks land on main's head instead.bump-spin.ymlis untouched.Checks
go tool task install,lint,testandgate(taskgate, testidentity) exit 0. actionlint exit 0.🤖 Generated with Claude Code