Skip to content

ci: Let CI and Image run by hand when GitHub misses a push to main - #50

Merged
dcramer merged 1 commit into
mainfrom
ci/dispatch-main
Nov 5, 2026
Merged

dcramer merged 1 commit into
mainfrom
ci/dispatch-main

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

CI already runs on push to main (ci.yml has push: branches: [main, "release/**"]). But GitHub started no push workflows for 09f6582 (the #47 merge): no CI, no Image, no CodeQL. The Deploy run of 9b2ca6a (#49) then saw a newer head and stopped ("main is at 09f6582 now, not 9b2ca6a. Nothing deploys."). So the head of main has no CI, no image and no deploy, and :main still points at 6c64d29 (#48). Nothing could start those runs again: neither workflow had workflow_dispatch.

Changes

  • ci.yml and image.yml: add workflow_dispatch.
  • image.yml: push :<sha> on every event except pull_request, so a manual run on main makes the image.
  • deploy.yml:
    • promote accepts an Image run that isn't a pull_request (push or manual). The branches: [main] filter still limits Deploy to main.
    • "Wait for CI" moves to .github/scripts/wait-for-ci.sh and looks for the CI run of the commit with --branch main, not --event push. A manual CI run counts. A pull_request run of the same commit doesn't, because its branch isn't main.
  • README.md: "Deploy" says what to run when a push gets no workflows.

After merge: this merge is a new push, so it should get CI, Image and Deploy normally. If it doesn't, run gh workflow run ci.yml --ref main and gh workflow run image.yml --ref main.

Checked

  • shellcheck (--shell=sh --enable=check-extra-masked-returns) and actionlint pass. oxfmt --check passes.
  • The script ran under busybox ash with stub gh, timeout and sleep: success after two empty lists, a failed run, a run that never ends (60 polls, then exit 1), a gh error, and no arguments (exit 2).
  • The live query gh run list --workflow ci.yml --branch main --commit <sha> finds the push run for 9b2ca6a, nothing for 09f6582, and nothing for 3f11cb0 (fix(server): Enforce request timeouts on servers that do not listen #49's PR head, which has only a pull_request run).

Not changed: the other inline shell in deploy.yml (head check, VM reset, service wait). It can move to scripts in the service audit.

I can't confirm why GitHub missed the push. The commit message has no skip marker, and every push workflow is missing, so it looks like a GitHub delivery gap, not this repo's config.

via @dcramer.

--

View Session [Sentry]

GitHub started no push workflows for 09f6582 (#47). The Deploy run of the
commit before it then saw a newer head and did not promote, so main has no
CI, no image, and no deploy. Add workflow_dispatch to CI and Image, push
the image on a manual run, and let Deploy accept manual runs on main.

Co-Authored-By: David Cramer <23610+dcramer@users.noreply.github.com>
@dcramer
dcramer marked this pull request as ready for review November 5, 2026 16:15
@dcramer
dcramer merged commit fd16f90 into main Nov 5, 2026
18 of 19 checks passed
@dcramer
dcramer deleted the ci/dispatch-main branch November 5, 2026 16:15
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