Skip to content

feat(release): hourly beta train, un-wedgeable gates, launch floor, faster builds - #11381

Merged
kodjima33 merged 1 commit into
mainfrom
kodjima33/release-train
Aug 10, 2026
Merged

kodjima33 merged 1 commit into
mainfrom
kodjima33/release-train

Conversation

@kodjima33

@kodjima33 kodjima33 commented Aug 10, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

The three pipeline changes Nik requested after incident #11374 (broken served beta + wedged release lane): auto-updates to beta at most hourly, a guaranteed works-at-launch floor, and a faster pipeline.

1. Hourly release train, un-wedgeable

2. Works-at-launch floor

  • The signed-artifact smoke's sustained-liveness launch probe now ALWAYS runs (it was silently short-circuited whenever --notification-callback-canary was passed — which is every CI release build — because the canary app deliberately exits after writing its marker). Every candidate now proves "launches via LaunchServices and stays alive" for both identities before publication.

3. Faster wall-clock + release-only breaks die in PRs

  • Codemagic caches Desktop/.build (the two cold release compiles were the single largest cost).
  • desktop-swift-release-compile now runs on PRs for any releasable desktop change, not only pushes/Package changes — the exact class that shipped the KG Sendable break through a green-debug PR.

Follow-up (filed separately): launch-smoke promotion tier + async T2 with auto-rollback, and parallel notarization.

Product invariants affected

  • INV-AUTH-1
  • INV-BETA-1

Verification

  • test_plan_desktop_release.py 23/23 (new: hourly-train defer, manual-dispatch bypass, green-SHA fallback, no-fallback block; trigger-contract tests updated to the train design per Nik's directive).
  • test_desktop_changelog.py 7/7 (new: tree-fragment acceptance, empty-dir rejection, invalid-fragment failure).
  • test_pre_push_ci_prediction.py 14/14 (asymmetry test replaced with PR+push parity, non-desktop negative case).
  • bash -n on the smoke script; py_compile on all touched Python.
  • UNVERIFIED until live: the hourly cron firing, Codemagic cache hit rate, and the smoke launch-probe pass on a real builder — will be validated on the first scheduled train run after merge (this PR itself is a releasable-path change, so the next train cut exercises the whole loop).

Failure-Class: none

Review in cubic

…aster builds

1. desktop_auto_release runs hourly (schedule + planner --min-tag-interval-
   seconds 3300 on schedule runs only): at most one candidate per hour,
   coalescing merges; manual dispatch stays immediate. The planner also falls
   back to the newest green releasable SHA when the newest one carries a
   failed required check, so a red tip no longer stalls the train.
2. Release Eligibility accepts changelog fragments already in the tree
   (release lane only) — the per-push PR-label blindness that wedged the gate
   three times in #11374 cannot recur.
3. The signed-artifact smoke launch probe always asserts sustained liveness;
   it was silently short-circuited by canary mode on every CI release build.
4. Codemagic caches Desktop/.build; desktop-swift-release-compile runs on PRs
   for releasable desktop changes so release-only strict-concurrency breaks
   (#11373) die before merge.

Verified: test_plan_desktop_release 23/23, test_desktop_changelog 7/7,
test_pre_push_ci_prediction 14/14, bash -n smoke script, py_compile all.
@kodjima33
kodjima33 merged commit f64764f into main Aug 10, 2026
14 of 15 checks passed
@kodjima33
kodjima33 deleted the kodjima33/release-train branch August 10, 2026 21:06
kodjima33 added a commit that referenced this pull request Aug 10, 2026
…mmit time (#11383)

## Summary

Cross-review of #11381 caught a real defect: the hourly-train throttle
read `git log --format=%ct <tag>` — the tagged COMMIT's time — and
candidate tags are lightweight, so a tag pushed minutes ago onto an
older commit looked hours old and bypassed the throttle.

The throttle clock is now the candidate release's `createdAt` (the
authoritative publication time, from `gh release view`). A tag with no
release deliberately stands aside: in-flight builds are owned by the
one-active-release fence, and a failed build is exactly what the train
should replace. The deferral check also moved ahead of the diff scan.

## Product invariants affected

- INV-BETA-1

## Verification

- `test_plan_desktop_release.py` 25/25 — new regression test constructs
a fresh release on an old commit and asserts `tag_age_seconds` (commit
time) is never consulted; a second test covers the no-release
stand-aside.

Failure-Class: none
Archit-lal pushed a commit to Archit-lal/omi that referenced this pull request Aug 10, 2026
…mmit time

Candidate tags are lightweight: git log --format=%ct on the tag answers with
the tagged COMMIT time, so a tag pushed minutes ago onto an older commit
looked hours old and defeated --min-tag-interval-seconds entirely (caught in
cross-review of BasedHardware#11381). The throttle clock is now the GitHub release
createdAt; a tag with no release stands aside (active-build fence owns the
in-flight case, and a failed build should be replaced). Deferral also moved
ahead of the diff scan.

Verified: test_plan_desktop_release.py 25/25, including a regression test
with a fresh release on an old commit asserting commit time is never
consulted, and a no-release stand-aside test.

Failure-Class: none
kodjima33 added a commit that referenced this pull request Aug 10, 2026
Cross-review caught that `desktop/macos/AGENTS.md` → Release Pipeline
still described the retired per-merge `push` trigger + 15-min backstop.
Updated to the hourly-train reality shipped in #11381/#11383: hourly
schedule + immediate manual dispatch, publication-time throttle
(`--min-tag-interval-seconds 3300`, lightweight-tag caveat), and the
newest-green-SHA fallback for a red tip. Docs-only.
Git-on-my-level pushed a commit to Git-on-my-level/omi that referenced this pull request Aug 10, 2026
The guide still described the retired per-merge push trigger and 15-min
backstop; desktop_auto_release.yml is now an hourly schedule plus immediate
manual dispatch, throttled by candidate-release publication time, with the
green-SHA fallback (BasedHardware#11381/BasedHardware#11383). Docs move with the code.
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