Repository navigation
ci(desktop): qualification fails open on infra, closed on genuine failure - #10408
Merged
Merged
Conversation
…uine failure If a qualification machine ran the gate and the build genuinely FAILED, block promotion (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. Removes the single-machine SPOF that stalled beta releases this week. Each lane emits lane_verdict = qualified | failed | unavailable (keyed off whether the qualification step RAN and how it exited, so the contested qualify-desktop-beta.sh is untouched). The verdict job: any 'failed' -> block; else any 'qualified' -> promote; else (all 'unavailable') -> fail open. Caveat: an infra failure INSIDE the qualification run (mid-run timeout) still classifies as 'failed'; cleanly separating that needs a structured verdict from the qualify script (coordinated follow-up). Verified: pytest flow-contract + plan 27 passed; actionlint clean; release process guards pass; make preflight green (9 checks).
kodjima33
added a commit
that referenced
this pull request
Jul 23, 2026
…evidence success can't promote and shadows real runs (#10409) Reverts #10408. A verdict that concludes `success` with no lane evidence (all lanes unavailable) does NOT ship: `desktop_promote_beta.yml` calls the backend `/v2/desktop/beta/promote-qualified`, which requires qualification evidence, so promotion fails on the missing artifact — and the evidence-less 'successful' run can shadow an earlier genuinely-qualified run. Verdict success must imply real evidence. Truly shipping when qualification infra is unavailable requires a backend-accepted no-evidence path (auto-invoke the break-glass admission on infra-unavailability) — a prod-backend, safety-critical change to design with sign-off, not this workflow-only shortcut. Restores the evidence-backed at-least-one-passes verdict. pytest flow-contract + plan 27 passed; actionlint clean.
Archit-lal
pushed a commit
to Archit-lal/omi
that referenced
this pull request
Jul 23, 2026
…uine failure (BasedHardware#10408)" This reverts commit e44a7b6, reversing changes made to 1379096.
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.
undivisible
pushed a commit
to undivisible/omi
that referenced
this pull request
Sep 29, 2026
…uine failure (BasedHardware#10408)" This reverts commit f2afd12, reversing changes made to b92ca20.
undivisible
pushed a commit
to undivisible/omi
that referenced
this pull request
Sep 29, 2026
…complete: no-evidence success can't promote and shadows real runs (BasedHardware#10409) Reverts BasedHardware#10408. A verdict that concludes `success` with no lane evidence (all lanes unavailable) does NOT ship: `desktop_promote_beta.yml` calls the backend `/v2/desktop/beta/promote-qualified`, which requires qualification evidence, so promotion fails on the missing artifact — and the evidence-less 'successful' run can shadow an earlier genuinely-qualified run. Verdict success must imply real evidence. Truly shipping when qualification infra is unavailable requires a backend-accepted no-evidence path (auto-invoke the break-glass admission on infra-unavailability) — a prod-backend, safety-critical change to design with sign-off, not this workflow-only shortcut. Restores the evidence-backed at-least-one-passes verdict. pytest flow-contract + plan 27 passed; actionlint clean.
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.
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 alane_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
verdictjob (the only job that can fail the run; all lanes arecontinue-on-error):failed→ exit 1 (block promotion),qualified→ exit 0 (promote),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 asfailed/blocking; cleanly separating that would require the qualify script to emit a structured passed/failed/errored verdict — recommended as a coordinated follow-up.Verification
pytestflow-contract + plan suites → 27 passed, 37 subtests. actionlint clean.check-release-process-guards.pypasses. AGENTS.md updated.