Repository navigation
fix(release): raise qualification cold-build timeout so fresh tags stop timing out (Beta unblock) - #10374
Merged
Conversation
kodjima33
added a commit
that referenced
this pull request
Jul 23, 2026
A release gate whose fixed time budget is smaller than the worst-case cold rebuild fails closed on healthy candidates and, because a timed-out build poisons the warm-retry cache, never self-heals. Canonical prevention is sizing the budget to the cold cost with headroom and a static timing-contract test that records the recurrence history. Evidence: #10374 (3rd occurrence; prior bumps 1800→3600 in runs 29904736566 and 29965341760).
kodjima33
added a commit
that referenced
this pull request
Jul 23, 2026
A release gate whose fixed time budget is smaller than the worst-case cold rebuild fails closed on healthy candidates and, because a timed-out build poisons the warm-retry cache, never self-heals. Canonical prevention is sizing the budget to the cold cost with headroom and a static timing-contract test that records the recurrence history. Evidence: #10374 (3rd occurrence; prior bumps 1800→3600 in runs 29904736566 and 29965341760).
kodjima33
force-pushed
the
kodjima33/qualification-coldbuild-timeout
branch
from
July 23, 2026 02:15
cc4ff90 to
be2e475
Compare
This was referenced Jul 23, 2026
kodjima33
added a commit
that referenced
this pull request
Jul 23, 2026
…back gating (#10380) ## Two robustness defects in the merged qualification lanes (#10354/#10363) Cross-review found two real gaps in the multi-lane qualification, neither covered by the existing tests. Both keep the "at least one lane qualifies a healthy candidate" guarantee honest. ### 1. Codemagic artifact handoff was shape-fragile (and unverified end-to-end) The CM lane publishes `build/qualification/**` (JSON). Codemagic exposes recognized build outputs (`.app`/`.dmg`/`.zip`/…) as top-level artefacts but packages arbitrary files matching a directory/`**` glob into a **single zip artefact**. `desktop_codemagic_qualification.py` only matched a top-level `qualification-result.json`, so a zipped artefact would make the driver fail to find the result → **every CM qualification silently falls through to the self-hosted lanes**, defeating the CM-primary design. `fetch_result_artifact` now prefers a top-level file and otherwise **extracts the result from a zip artefact by basename** (so an internal path like `qualification/qualification-result.json` still resolves). The driver adapts to whatever shape Codemagic produces, so the digest-pinned `codemagic.yaml` needs no change. *Honesty note:* all prior live CM test builds died at the venv step (fixed separately in #10374), so a real CM build never produced this artefact — the handoff stays **UNVERIFIED end-to-end** until #10374 lets a CM qualification complete. This PR makes the driver correct for both artefact shapes and covers them with tests; the live confirmation is a follow-up once a green CM build exists. ### 2. `plan-fallbacks` did not fully fail open The `gh api` runner-status step fails open, but a failure in the **earlier token-generation step** fails the whole `plan-fallbacks` job with empty outputs. The lanes gated on `m{1,4}_online == 'true'`, so empty `!= 'true'` → **both self-hosted fallbacks skipped** — re-creating the single-machine outage on any token hiccup. Gate now fails open: `m{1,4}_online != 'false'` — a lane is skipped only when the planner **explicitly** reports the runner offline. A planner failure now lets the fallbacks attempt. ## Verification - `python3 .github/scripts/test_desktop_codemagic_qualification.py` → 13 OK (new: extract-from-zip, prefer-top-level-over-zip, zip-without-result-fails) - `python3 .github/scripts/test_desktop_release_flow_contract.py` → 20 OK (asserts `!= 'false'` fail-open gating on both lanes; `== 'true'` explicitly forbidden) - `actionlint .github/workflows/desktop_qualify_beta.yml` → exit 0 - `python3 .github/scripts/check-release-process-guards.py` → passed - `bash scripts/dev-harness/run-tests.sh` → 50 passed - `bash desktop/macos/tests/test-qualify-desktop-beta-contract.sh` → passed - `make preflight` → (see checks) Failure-Class: FC-single-machine-release-gate <!-- This is an auto-generated description by cubic. --> <a href="https://cubic.dev/pr/BasedHardware/omi/pull/10380?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. -->
…a unblock) Every fresh candidate v0.12.99–v0.12.113 failed the self-hosted qualification lane with 'desktop launch not dispatched within 3600s': the cold rebuild of the exact tag compiles ~1190 SwiftPM modules (~75 min with packaging/launch) but the budget was 60 min, so it timed out mid-compile at [~1139/1190] and left no reusable .build for the warm retry — an unbreakable loop, with hourly new tags superseding before any retry. Same boundary already bumped 1800→3600 (run 29904736566); still short. Raise default to 5400s (90 min), env-overridable via OMI_QUALIFY_PREPARE_WAIT_SECS. Contract test updated to the new bound. Verified: bash -n OK; test-qualify-desktop-beta-contract.sh passed; check-release-process-guards passed. Value resolves as int (default 5400, override honored). Failure-Class: FC-gate-timeout-below-cold-cost
kodjima33
force-pushed
the
kodjima33/qualification-coldbuild-timeout
branch
from
July 23, 2026 05:07
be2e475 to
e98218a
Compare
kodjima33
added a commit
that referenced
this pull request
Jul 23, 2026
…ock main CI) (#10387) #10374's timeout bump touched a test under `desktop/macos/tests/`; the `no-changelog-needed` label only satisfied the PR run, so the post-merge push run of `desktop-changelog-entry` failed on the merge commit and reddened main's Desktop Swift CI, blocking auto-release from cutting a tag. Test files are never user-facing, so exempt the `desktop/macos/tests/` prefix by path (durable across PR and push). Verified: `check-desktop-changelog.py --base 4d6539e~1 --head 4d6539e` → no changelog needed; a `Desktop/Sources/*.swift` change still requires one. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Git-on-my-level
pushed a commit
to Git-on-my-level/omi
that referenced
this pull request
Jul 23, 2026
…robust Two defects found in the merged qualification lanes (BasedHardware#10354/BasedHardware#10363), neither covered by the existing tests: 1. Codemagic artifact handoff was unverified and shape-fragile. The CM lane publishes build/qualification/** (JSON), and Codemagic packages arbitrary files matching a directory/** glob into a single zip artefact rather than exposing each as a top-level artefact. desktop_codemagic_qualification.py only matched a top-level 'qualification-result.json', so a zipped artefact would make every CM qualification silently fall through to the self-hosted lanes — defeating the CM-primary design. fetch_result_artifact now prefers the top-level file and otherwise extracts the result from a zip artefact by basename. Regression tests cover both shapes + zip-missing-result. 2. plan-fallbacks did not fully fail open. The gh-api status step fails open, but a failure in the earlier token-generation step fails the whole job with empty outputs, and the lanes gated on 'm{1,4}_online == true' → empty != true → BOTH self-hosted fallbacks skipped, re-creating the single-machine outage on any token hiccup. Gate now fails open ('!= false'): a lane is skipped only when the planner explicitly reports the runner offline. Verified: test_desktop_codemagic_qualification 13 OK (incl. zip cases); test_desktop_release_flow_contract 20 OK (asserts fail-open gating); actionlint exit 0; check-release-process-guards passed; dev-harness 50 passed; qualification bootstrap contract passed. Note: end-to-end CM handoff on a real green build stays UNVERIFIED until the cold-build timeout fix (BasedHardware#10374) lets a CM qualification build complete; the driver is now correct for whatever artefact shape Codemagic produces. Failure-Class: FC-single-machine-release-gate
Git-on-my-level
pushed a commit
to Git-on-my-level/omi
that referenced
this pull request
Jul 23, 2026
BasedHardware#10374's timeout bump touched desktop/macos/tests/test-qualify-desktop-beta-contract.sh. The no-changelog-needed label satisfied the PR run, but the post-merge push run of desktop-changelog-entry re-runs with no label and demanded a fragment — so it failed on the merge commit (run 29981338556), reddening main's Desktop Swift CI and blocking auto-release from cutting a tag (it fails closed without that CI green). Test files are never user-facing app changes, so exempt the desktop/macos/tests/ prefix by path (durable across PR and push), same as Backend-Rust/. Verified: the exact failing merge diff (4d6539e) now reports no changelog needed; a Desktop/Sources/*.swift change still requires one.
kodjima33
added a commit
that referenced
this pull request
Jul 23, 2026
…10404) ## Summary Restore **continuous deployment** of the desktop beta: plan a candidate on **every macOS-affecting merge to main** (revert of the 6-hourly-only #10386), with the hourly `schedule` as a backstop. The candidate then flows through the existing two-machine qualification pipeline and, on pass, promotes to beta — no new downstream wiring needed. ## Full pipeline (unchanged downstream, restored front-end) 1. **`desktop_auto_release.yml`** — `push` on `main` (releasable desktop paths) → plans + tags `v*-macos`. (this PR) 2. **Codemagic `omi-desktop-swift-release`** — builds universal binary, Developer ID sign, Apple notarize, DMG + **Sparkle ZIP**, publishes immutable candidate. 3. **`desktop_qualify_beta.yml`** — Codemagic primary lane + self-hosted `qualify-m1-studio` and `qualify-m4-mini` (the 2 machines), fail-closed, at-least-one-passes verdict. 4. **`desktop_promote_beta.yml`** — on qualification success, advances the beta channel pointer to the qualified, Sparkle-signed artifact. ## Changes - `desktop_auto_release.yml`: re-added the `push` trigger (paths: `desktop/macos/**`, `codemagic.yaml`, planner script, the two workflows); schedule reverted to hourly `17 * * * *` backstop. - Contract tests restored to require the push trigger + the push-paths↔releasable-paths alignment guard (`test_push_paths_cover_releasable_desktop_paths` + `_parse_push_filter`); cron assertion back to hourly. Kept the #10402 bash-3.2 readiness regression test. - `desktop/macos/AGENTS.md`: Release Pipeline section describes the continuous cadence. ## Verification - `pytest` plan + flow-contract suites → 27 passed, 37 subtests. actionlint clean. YAML triggers = [workflow_dispatch, push, schedule]. Note: end-to-end auto-promotion to beta additionally depends on qualification passing (the cold-build-timeout fix #10374 and the just-landed pre-tag-readiness bash-3.2 fix #10402). Those are the qualification gates, separate from this front-end trigger change.
kodjima33
added a commit
that referenced
this pull request
Jul 23, 2026
…lure (#10408) ## Summary Make the desktop beta qualification **fail open on infra, fail closed on genuine failure**. If a qualification machine actually ran the gate and the build **failed**, promotion is blocked (a bad build must never reach Beta). But if the machines are **down / unresponsive / broke before qualifying**, that must not block the release — it still ships to Codemagic/Sparkle/Beta. This removes the single-machine SPOF that stalled beta releases all week. ## Change Each lane (`codemagic-lane`, `qualify-m1-studio`, `qualify-m4-mini`) now emits a `lane_verdict`: - `qualified` — ran qualification and published immutable evidence. - `failed` — the qualification step RAN and returned failure (genuinely bad build). - `unavailable` — the qualification step never ran (runner offline, skipped, or a setup failure before it), so infra could not produce a verdict. The `verdict` job (the only job that can fail the run; all lanes are `continue-on-error`): 1. any lane `failed` → **exit 1** (block promotion), 2. else any lane `qualified` → exit 0 (promote), 3. else (all `unavailable`) → **exit 0, fail open** (unreachable machines don't block). ## Scope / caveat (honest) The distinction uses the qualification **step outcome** (ran-and-failed vs never-ran), so it does not modify the contested `qualify-desktop-beta.sh`. It correctly fails open for the cases you asked about — machines offline/unresponsive/setup-failed. An infra failure that happens *inside* the qualification run (e.g. a mid-run timeout, the cold-build-timeout being fixed separately in #10374) still classifies as `failed`/blocking; cleanly separating that would require the qualify script to emit a structured passed/failed/errored verdict — recommended as a coordinated follow-up. ## Verification - `pytest` flow-contract + plan suites → 27 passed, 37 subtests. actionlint clean. `check-release-process-guards.py` passes. AGENTS.md updated.
Git-on-my-level
added a commit
that referenced
this pull request
Jul 29, 2026
SettingsContentView+DeveloperKeys.swift and StartupWarmupPolicyTests.swift predate the .swift-format config added in #10374 and had double blank lines (maximumBlankLines: 1). This unblocks desktop-swift-format-lint for PRs that trigger the full lint-scope check.
kodjima33
pushed a commit
that referenced
this pull request
Jul 29, 2026
* fix(desktop): repair onboarding PTT presentation Failure-Class: none * style(desktop): fix pre-existing swift-format drift in two files SettingsContentView+DeveloperKeys.swift and StartupWarmupPolicyTests.swift predate the .swift-format config added in #10374 and had double blank lines (maximumBlankLines: 1). This unblocks desktop-swift-format-lint for PRs that trigger the full lint-scope check. --------- Co-authored-by: David Zhang <[email protected]>
undivisible
pushed a commit
to undivisible/omi
that referenced
this pull request
Sep 29, 2026
…robust Two defects found in the merged qualification lanes (BasedHardware#10354/BasedHardware#10363), neither covered by the existing tests: 1. Codemagic artifact handoff was unverified and shape-fragile. The CM lane publishes build/qualification/** (JSON), and Codemagic packages arbitrary files matching a directory/** glob into a single zip artefact rather than exposing each as a top-level artefact. desktop_codemagic_qualification.py only matched a top-level 'qualification-result.json', so a zipped artefact would make every CM qualification silently fall through to the self-hosted lanes — defeating the CM-primary design. fetch_result_artifact now prefers the top-level file and otherwise extracts the result from a zip artefact by basename. Regression tests cover both shapes + zip-missing-result. 2. plan-fallbacks did not fully fail open. The gh-api status step fails open, but a failure in the earlier token-generation step fails the whole job with empty outputs, and the lanes gated on 'm{1,4}_online == true' → empty != true → BOTH self-hosted fallbacks skipped, re-creating the single-machine outage on any token hiccup. Gate now fails open ('!= false'): a lane is skipped only when the planner explicitly reports the runner offline. Verified: test_desktop_codemagic_qualification 13 OK (incl. zip cases); test_desktop_release_flow_contract 20 OK (asserts fail-open gating); actionlint exit 0; check-release-process-guards passed; dev-harness 50 passed; qualification bootstrap contract passed. Note: end-to-end CM handoff on a real green build stays UNVERIFIED until the cold-build timeout fix (BasedHardware#10374) lets a CM qualification build complete; the driver is now correct for whatever artefact shape Codemagic produces. Failure-Class: FC-single-machine-release-gate
undivisible
pushed a commit
to undivisible/omi
that referenced
this pull request
Sep 29, 2026
…back gating (BasedHardware#10380) ## Two robustness defects in the merged qualification lanes (BasedHardware#10354/BasedHardware#10363) Cross-review found two real gaps in the multi-lane qualification, neither covered by the existing tests. Both keep the "at least one lane qualifies a healthy candidate" guarantee honest. ### 1. Codemagic artifact handoff was shape-fragile (and unverified end-to-end) The CM lane publishes `build/qualification/**` (JSON). Codemagic exposes recognized build outputs (`.app`/`.dmg`/`.zip`/…) as top-level artefacts but packages arbitrary files matching a directory/`**` glob into a **single zip artefact**. `desktop_codemagic_qualification.py` only matched a top-level `qualification-result.json`, so a zipped artefact would make the driver fail to find the result → **every CM qualification silently falls through to the self-hosted lanes**, defeating the CM-primary design. `fetch_result_artifact` now prefers a top-level file and otherwise **extracts the result from a zip artefact by basename** (so an internal path like `qualification/qualification-result.json` still resolves). The driver adapts to whatever shape Codemagic produces, so the digest-pinned `codemagic.yaml` needs no change. *Honesty note:* all prior live CM test builds died at the venv step (fixed separately in BasedHardware#10374), so a real CM build never produced this artefact — the handoff stays **UNVERIFIED end-to-end** until BasedHardware#10374 lets a CM qualification complete. This PR makes the driver correct for both artefact shapes and covers them with tests; the live confirmation is a follow-up once a green CM build exists. ### 2. `plan-fallbacks` did not fully fail open The `gh api` runner-status step fails open, but a failure in the **earlier token-generation step** fails the whole `plan-fallbacks` job with empty outputs. The lanes gated on `m{1,4}_online == 'true'`, so empty `!= 'true'` → **both self-hosted fallbacks skipped** — re-creating the single-machine outage on any token hiccup. Gate now fails open: `m{1,4}_online != 'false'` — a lane is skipped only when the planner **explicitly** reports the runner offline. A planner failure now lets the fallbacks attempt. ## Verification - `python3 .github/scripts/test_desktop_codemagic_qualification.py` → 13 OK (new: extract-from-zip, prefer-top-level-over-zip, zip-without-result-fails) - `python3 .github/scripts/test_desktop_release_flow_contract.py` → 20 OK (asserts `!= 'false'` fail-open gating on both lanes; `== 'true'` explicitly forbidden) - `actionlint .github/workflows/desktop_qualify_beta.yml` → exit 0 - `python3 .github/scripts/check-release-process-guards.py` → passed - `bash scripts/dev-harness/run-tests.sh` → 50 passed - `bash desktop/macos/tests/test-qualify-desktop-beta-contract.sh` → passed - `make preflight` → (see checks) Failure-Class: FC-single-machine-release-gate <!-- This is an auto-generated description by cubic. --> <a href="https://cubic.dev/pr/BasedHardware/omi/pull/10380?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. -->
undivisible
pushed a commit
to undivisible/omi
that referenced
this pull request
Sep 29, 2026
…op timing out (Beta unblock) (BasedHardware#10374) ## Problem — this is why Beta has been stuck since v0.12.103 Every fresh desktop candidate times out in qualification. Root cause, from run [29965341760](https://github.com/BasedHardware/omi/actions/runs/29965341760) (v0.12.111 on David's M1): ``` qualification failed: desktop launch not dispatched within 3600s ``` A cold, from-scratch rebuild of the exact tag compiles **~1190 SwiftPM modules** (FluidAudio, MarkdownUI, Firebase, ONNX, …) *before* the named bundle is even packaged, signed, installed, and launched. On a self-hosted M1 that cold build alone runs ~65 min and dispatches the launch at ~75 min — past the **3600s (60 min)** `DESKTOP_PREPARE_WAIT_SECS` budget. The build log ends at `[1139/1190] Compiling` right at the deadline. It doesn't self-heal: a timed-out build leaves an incomplete `.build` that the qualification swift-cache **fail-closes on**, so the warm retry rebuilds cold and times out again — an unbreakable loop. And the hourly auto-release cuts a new tag (superseding the old one) before any tag's retry can pass. Result: v0.12.99–v0.12.112 all failed qualification; Beta served v0.12.103 for a day. This is the **same boundary already bumped once** (1800s→3600s, run 29904736566, which stalled at `1107/1182`). 3600s was still short. ## Fix Raise the default cold-preparation budget to **5400s (90 min)**, overridable via `OMI_QUALIFY_PREPARE_WAIT_SECS`, covering the observed ~75-min cold path with headroom while staying under the self-hosted job cap. Warm same-SHA retries still finish in a fraction of this. The static timing-contract test is updated to the new default and records the recurrence history. Two-line functional change (`desktop/macos/scripts/qualify-desktop-beta.sh`) plus its contract test. Independent of BasedHardware#10363 (which hardens the *lanes*); this fixes the *time budget* every lane shares. It takes effect for tags cut after merge — so the next hourly `v*-macos` tag is the first that can actually qualify. **Note on the Codemagic lane:** CM's `max_build_duration` is 120 min, so a *cold* CM build (90-min prepare + install + T2) may exceed it; the self-hosted lanes are the reliable cold-build path under the at-least-one-passes verdict, and CM carries warm/incremental builds. Raising CM's budget is a follow-up (touches the same codemagic.yaml workflow as BasedHardware#10363). ## Verification - Reproduced the root cause from the live run log (`not dispatched within 3600s`, build at `[1139/1190]` at the 3600s mark, job window 23:11→00:24 = 73 min). - `bash -n desktop/macos/scripts/qualify-desktop-beta.sh` → OK - Value resolves as an integer for the `SECONDS + DESKTOP_PREPARE_WAIT_SECS` arithmetic; default 5400, `OMI_QUALIFY_PREPARE_WAIT_SECS` override honored. - `bash desktop/macos/tests/test-qualify-desktop-beta-contract.sh` → passed (asserts new 5400 default + 6300 combined bound) - `python3 .github/scripts/check-release-process-guards.py` → passed - `python3 .github/scripts/test_desktop_release_flow_contract.py` → 19 OK **UNVERIFIED until a post-merge tag runs:** that 5400s is actually sufficient end-to-end on the slowest registered runner. If a cold build ever exceeds 90 min, bump `OMI_QUALIFY_PREPARE_WAIT_SECS` on that runner — no code change needed. Failure-Class: new <!-- This is an auto-generated description by cubic. --> <a href="https://cubic.dev/pr/BasedHardware/omi/pull/10374?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. -->
undivisible
pushed a commit
to undivisible/omi
that referenced
this pull request
Sep 29, 2026
BasedHardware#10374's timeout bump touched desktop/macos/tests/test-qualify-desktop-beta-contract.sh. The no-changelog-needed label satisfied the PR run, but the post-merge push run of desktop-changelog-entry re-runs with no label and demanded a fragment — so it failed on the merge commit (run 29981338556), reddening main's Desktop Swift CI and blocking auto-release from cutting a tag (it fails closed without that CI green). Test files are never user-facing app changes, so exempt the desktop/macos/tests/ prefix by path (durable across PR and push), same as Backend-Rust/. Verified: the exact failing merge diff (fabf75f) now reports no changelog needed; a Desktop/Sources/*.swift change still requires one.
undivisible
pushed a commit
to undivisible/omi
that referenced
this pull request
Sep 29, 2026
…ock main CI) (BasedHardware#10387) BasedHardware#10374's timeout bump touched a test under `desktop/macos/tests/`; the `no-changelog-needed` label only satisfied the PR run, so the post-merge push run of `desktop-changelog-entry` failed on the merge commit and reddened main's Desktop Swift CI, blocking auto-release from cutting a tag. Test files are never user-facing, so exempt the `desktop/macos/tests/` prefix by path (durable across PR and push). Verified: `check-desktop-changelog.py --base fabf75f~1 --head fabf75f` → no changelog needed; a `Desktop/Sources/*.swift` change still requires one. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
undivisible
pushed a commit
to undivisible/omi
that referenced
this pull request
Sep 29, 2026
…asedHardware#10404) ## Summary Restore **continuous deployment** of the desktop beta: plan a candidate on **every macOS-affecting merge to main** (revert of the 6-hourly-only BasedHardware#10386), with the hourly `schedule` as a backstop. The candidate then flows through the existing two-machine qualification pipeline and, on pass, promotes to beta — no new downstream wiring needed. ## Full pipeline (unchanged downstream, restored front-end) 1. **`desktop_auto_release.yml`** — `push` on `main` (releasable desktop paths) → plans + tags `v*-macos`. (this PR) 2. **Codemagic `omi-desktop-swift-release`** — builds universal binary, Developer ID sign, Apple notarize, DMG + **Sparkle ZIP**, publishes immutable candidate. 3. **`desktop_qualify_beta.yml`** — Codemagic primary lane + self-hosted `qualify-m1-studio` and `qualify-m4-mini` (the 2 machines), fail-closed, at-least-one-passes verdict. 4. **`desktop_promote_beta.yml`** — on qualification success, advances the beta channel pointer to the qualified, Sparkle-signed artifact. ## Changes - `desktop_auto_release.yml`: re-added the `push` trigger (paths: `desktop/macos/**`, `codemagic.yaml`, planner script, the two workflows); schedule reverted to hourly `17 * * * *` backstop. - Contract tests restored to require the push trigger + the push-paths↔releasable-paths alignment guard (`test_push_paths_cover_releasable_desktop_paths` + `_parse_push_filter`); cron assertion back to hourly. Kept the BasedHardware#10402 bash-3.2 readiness regression test. - `desktop/macos/AGENTS.md`: Release Pipeline section describes the continuous cadence. ## Verification - `pytest` plan + flow-contract suites → 27 passed, 37 subtests. actionlint clean. YAML triggers = [workflow_dispatch, push, schedule]. Note: end-to-end auto-promotion to beta additionally depends on qualification passing (the cold-build-timeout fix BasedHardware#10374 and the just-landed pre-tag-readiness bash-3.2 fix BasedHardware#10402). Those are the qualification gates, separate from this front-end trigger change.
undivisible
pushed a commit
to undivisible/omi
that referenced
this pull request
Sep 29, 2026
…lure (BasedHardware#10408) ## Summary Make the desktop beta qualification **fail open on infra, fail closed on genuine failure**. If a qualification machine actually ran the gate and the build **failed**, promotion is blocked (a bad build must never reach Beta). But if the machines are **down / unresponsive / broke before qualifying**, that must not block the release — it still ships to Codemagic/Sparkle/Beta. This removes the single-machine SPOF that stalled beta releases all week. ## Change Each lane (`codemagic-lane`, `qualify-m1-studio`, `qualify-m4-mini`) now emits a `lane_verdict`: - `qualified` — ran qualification and published immutable evidence. - `failed` — the qualification step RAN and returned failure (genuinely bad build). - `unavailable` — the qualification step never ran (runner offline, skipped, or a setup failure before it), so infra could not produce a verdict. The `verdict` job (the only job that can fail the run; all lanes are `continue-on-error`): 1. any lane `failed` → **exit 1** (block promotion), 2. else any lane `qualified` → exit 0 (promote), 3. else (all `unavailable`) → **exit 0, fail open** (unreachable machines don't block). ## Scope / caveat (honest) The distinction uses the qualification **step outcome** (ran-and-failed vs never-ran), so it does not modify the contested `qualify-desktop-beta.sh`. It correctly fails open for the cases you asked about — machines offline/unresponsive/setup-failed. An infra failure that happens *inside* the qualification run (e.g. a mid-run timeout, the cold-build-timeout being fixed separately in BasedHardware#10374) still classifies as `failed`/blocking; cleanly separating that would require the qualify script to emit a structured passed/failed/errored verdict — recommended as a coordinated follow-up. ## Verification - `pytest` flow-contract + plan suites → 27 passed, 37 subtests. actionlint clean. `check-release-process-guards.py` passes. AGENTS.md updated.
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.
Problem — this is why Beta has been stuck since v0.12.103
Every fresh desktop candidate times out in qualification. Root cause, from run 29965341760 (v0.12.111 on David's M1):
A cold, from-scratch rebuild of the exact tag compiles ~1190 SwiftPM modules (FluidAudio, MarkdownUI, Firebase, ONNX, …) before the named bundle is even packaged, signed, installed, and launched. On a self-hosted M1 that cold build alone runs ~65 min and dispatches the launch at ~75 min — past the 3600s (60 min)
DESKTOP_PREPARE_WAIT_SECSbudget. The build log ends at[1139/1190] Compilingright at the deadline.It doesn't self-heal: a timed-out build leaves an incomplete
.buildthat the qualification swift-cache fail-closes on, so the warm retry rebuilds cold and times out again — an unbreakable loop. And the hourly auto-release cuts a new tag (superseding the old one) before any tag's retry can pass. Result: v0.12.99–v0.12.112 all failed qualification; Beta served v0.12.103 for a day.This is the same boundary already bumped once (1800s→3600s, run 29904736566, which stalled at
1107/1182). 3600s was still short.Fix
Raise the default cold-preparation budget to 5400s (90 min), overridable via
OMI_QUALIFY_PREPARE_WAIT_SECS, covering the observed ~75-min cold path with headroom while staying under the self-hosted job cap. Warm same-SHA retries still finish in a fraction of this. The static timing-contract test is updated to the new default and records the recurrence history.Two-line functional change (
desktop/macos/scripts/qualify-desktop-beta.sh) plus its contract test. Independent of #10363 (which hardens the lanes); this fixes the time budget every lane shares. It takes effect for tags cut after merge — so the next hourlyv*-macostag is the first that can actually qualify.Note on the Codemagic lane: CM's
max_build_durationis 120 min, so a cold CM build (90-min prepare + install + T2) may exceed it; the self-hosted lanes are the reliable cold-build path under the at-least-one-passes verdict, and CM carries warm/incremental builds. Raising CM's budget is a follow-up (touches the same codemagic.yaml workflow as #10363).Verification
not dispatched within 3600s, build at[1139/1190]at the 3600s mark, job window 23:11→00:24 = 73 min).bash -n desktop/macos/scripts/qualify-desktop-beta.sh→ OKSECONDS + DESKTOP_PREPARE_WAIT_SECSarithmetic; default 5400,OMI_QUALIFY_PREPARE_WAIT_SECSoverride honored.bash desktop/macos/tests/test-qualify-desktop-beta-contract.sh→ passed (asserts new 5400 default + 6300 combined bound)python3 .github/scripts/check-release-process-guards.py→ passedpython3 .github/scripts/test_desktop_release_flow_contract.py→ 19 OKUNVERIFIED until a post-merge tag runs: that 5400s is actually sufficient end-to-end on the slowest registered runner. If a cold build ever exceeds 90 min, bump
OMI_QUALIFY_PREPARE_WAIT_SECSon that runner — no code change needed.Failure-Class: new