Skip to content

ci(desktop): qualification fails open on infra, closed on genuine failure - #10408

Merged
kodjima33 merged 1 commit into
mainfrom
desktop/qualify-fail-open-on-infra
Jul 23, 2026
Merged

kodjima33 merged 1 commit into
mainfrom
desktop/qualify-fail-open-on-infra

Conversation

@kodjima33

@kodjima33 kodjima33 commented Jul 23, 2026 •

Copy link
Copy Markdown
Collaborator

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.

Review in cubic

…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
kodjima33 merged commit e44a7b6 into main Jul 23, 2026
@kodjima33
kodjima33 deleted the desktop/qualify-fail-open-on-infra branch July 23, 2026 17:08
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.
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