Repository navigation
chore(desktop): re-arm the release gate (Swift path + fragment in one push) - #11377
Merged
Merged
Conversation
… one push Release Eligibility evaluates the changelog contract per push on main, where PR labels are invisible: a desktop Swift diff must carry its own unreleased fragment. #11373 and #11376 each failed that check, keeping the newest releasable SHA ineligible while the served beta is broken (#11374). This commit pairs a comment-only Swift touch with a fragment so the newest releasable SHA passes eligibility and the candidate can cut.
kodjima33
added a commit
that referenced
this pull request
Aug 10, 2026
…aster builds (#11381) ## 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** - `desktop_auto_release.yml` gains an hourly `schedule` (`7 * * * *`); the planner's new `--min-tag-interval-seconds` (3300, schedule runs only) makes the train cut at most one candidate per hour, coalescing all merges since the last tag. Manual dispatch stays immediate (the emergency lane #11374 used). - Release Eligibility's changelog gate accepts fragments already present in the tree (`DESKTOP_CHANGELOG_ACCEPT_TREE_FRAGMENTS=1` on the release lane only) — the per-push PR-label blindness that wedged the gate three times today (#11373/#11375/#11377) cannot recur. Per-PR enforcement unchanged. - The planner falls back to the newest *green* releasable SHA (bounded scan) when the newest one carries a failed required check, instead of stalling the train entirely; no-fallback still blocks loudly. **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 <!-- This is an auto-generated description by cubic. --> <a href="https://cubic.dev/pr/BasedHardware/omi/pull/11381?utm_source=github" target="_blank" rel="noopener noreferrer" data-no-image-dialog="true"><picture><source media="(prefers-color-scheme: dark)" srcset="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://www.cubic.dev/buttons/review-in-cubic-light.svg"><img alt="Review in cubic" src="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"></picture></a> <!-- End of auto-generated description by cubic. -->
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.
Release Eligibility applies desktop-changelog-entry per push on the main lane, where PR labels are invisible — #11373 and #11376 both failed it, leaving the newest releasable SHA permanently ineligible while the served beta is broken (#11374). This pairs a comment-only Swift touch with its own unreleased fragment so the next releasable SHA passes and the candidate cuts. No code change.