Skip to content

Release: tag right away; builds run alongside main's CI, publish waits for it - #42

Merged
MHohlios merged 2 commits into
mainfrom
wiffletree/release-tag-right-away-builds-run-alongside-main
Nov 4, 2026
Merged

MHohlios merged 2 commits into
mainfrom
wiffletree/release-tag-right-away-builds-run-alongside-main

Conversation

@MHohlios

@MHohlios MHohlios commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

Summary

Until now, the release gate failed straight away unless main's CI had already passed for the tagged commit. So a release meant waiting about 20 minutes for CI, then starting a second 20+ minute build. Now you tag as soon as the PR merges: the builds start at once, alongside CI, and only publishing waits for CI to pass. Linear: VYT-267.

Changes

  • scripts/require-green-ci.sh waits instead of failing.
    • It polls main's CI runs for the commit every 30 s, keeps waiting while no run exists yet, and prints a status line each time.
    • It passes as soon as any run succeeded. It fails at once if the newest run ended any other way: "CI failed on main for (). Nothing was published. Fix main, then tag the fixed commit."
    • It gives up after 90 minutes. CI_POLL_SECONDS and CI_WAIT_SECONDS override the interval and the limit.
  • release.yml:
    • The macOS, Windows and Linux builds need only version, so they start at once.
    • publish needs gate and every build, and still runs only on a tag push, so a dry run never publishes.
    • Timeouts: 100 minutes for gate, 90 for each build.
  • Docs: docs/releasing.md says to tag right after merging; the dry run is optional, for after a change to the release workflow or packaging scripts. The ci.yml header and docs/ci.md match the new flow.

Checks

  • actionlint and shellcheck pass.
  • The script was run with a fake gh and sleep for these cases:
    • no run, then in progress, then success;
    • in progress, then failure;
    • a failed run with a newer successful re-run;
    • a cancelled newest run;
    • never finishing.
  • The workflow graph itself is first exercised by the next tag.

Follow-ups

  • A gh call that keeps failing (for example a bad token) reads as "no run yet", so the gate waits the full 90 minutes before stopping; it should fail fast with gh's error (scripts/require-green-ci.sh:16).

Reviewed with Wiffletree: 1 full review and 0 re-checks, 2 rounds (Tests, Claude, Style)

mhohlios added 2 commits November 4, 2026 09:51
The gate polls main's CI run for the tagged commit every 30 seconds instead
of failing when it has not finished, and gives up after 90 minutes. The
builds no longer need the gate; publish does. Docs say to tag as soon as the
pull request has merged, and make the dry run optional.
@MHohlios
MHohlios merged commit 08032aa into main Nov 4, 2026
6 of 10 checks passed
@MHohlios
MHohlios deleted the wiffletree/release-tag-right-away-builds-run-alongside-main branch November 4, 2026 15:37
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