Repository navigation
fix(release): bind candidates to build configuration - #10358
Merged
Merged
Conversation
Failure-Class: new
kodjima33
added a commit
that referenced
this pull request
Jul 23, 2026
…es, docker-daemon health, resilient venv (#10363) ## Follow-up hardening for the desktop qualification lanes (#10354) #10354 landed the Codemagic-primary + self-hosted-fallback qualification restructure and registered failure class `FC-single-machine-release-gate`. This PR repairs three gaps found by cross-review and by the first live Codemagic-lane run — the merged version does not yet deliver the "any independent machine can qualify" guarantee the class promises. Instance fixes for the same boundary. ### 1. Independent per-machine fallback lanes (cross-review finding) The merged version had a single `qualify` self-hosted job routed to any matching runner, so a sick-but-online David machine could absorb the job and Nik's mini would never try. Replaced with: - `plan-fallbacks` — reads runner online-status via the runners API (`m1_online`/`m4_online`); a failed query fails open. Gates each machine lane so an **offline** runner is skipped instead of queue-stalling the per-tag concurrency group (offline self-hosted jobs queue up to 24h). - `qualify-m1-studio` (label `omi-qual-m1-studio`) then `qualify-m4-mini` (label `omi-qual-m4-mini`) — one lane per physical machine (labels applied to both registered runners via the API). Serialized so the mini lane runs only when the M1 lane did not publish evidence; a sick-but-online machine can no longer absorb the other's attempt. Byte-identical steps after `steps:` (enforced by `test_desktop_release_flow_contract.py`). - `verdict` passes iff `CM_QUALIFIED || M1_QUALIFIED || M4_QUALIFIED`. ### 2. Docker-daemon health in Typesense selection (cross-review finding) `typesense_runtime()` auto-picked docker on `which docker` alone, so a docker CLI with a **dead daemon** sank the lane even with a native binary present. Now probes `docker info` (`_docker_daemon_healthy`, 15s timeout); a dead daemon falls through to native `typesense-server`, and `prerequisite_report` distinguishes "docker daemon" (present-but-dead) from "docker missing". ### 3. Resilient backend venv provisioning (live CM-lane failure) The first live Codemagic-lane test on **v0.12.111** (build `6a61554646f44fbd4070c8cf`) failed at the qualify step: ``` error: No download found for request: cpython-3.11.15-macos-aarch64-none make: *** [setup-backend] Error 2 ``` `make setup-backend` runs `uv python install 3.11.15` (exact patch), but a freshly `brew install`ed uv on the ephemeral CM Mac has a python-build-standalone index that lacks that exact patch — so the venv-provisioning step added in #10354 hard-broke the lane it was meant to enable. Now: try `make setup-backend` (exact-patch CI parity), and on failure fall back to a venv on the pinned **minor** version + `uv pip sync` of the exact platform lock. The lockfile still pins every dependency exactly; only the interpreter patch floats to what uv can fetch. ## Verification Local (all green): - Exercised the venv fallback against the real backend: `uv venv --python 3.11 + uv pip sync pylock.macos.toml` → `python -c "import uvicorn, fastapi"` OK. - `bash -n desktop/macos/scripts/qualify-desktop-beta.sh` → OK - `python3 .github/scripts/test_desktop_release_flow_contract.py` → 19 OK (incl. new multi-lane independence + byte-identical-lanes assertions) - `python3 -m pytest scripts/dev-harness/tests/` → 50 passed (incl. broken-daemon fallback + dead-daemon preflight) - `python3 .github/scripts/check-release-process-guards.py` → passed (post-rebase over #10358's codemagic.yaml change) - `bash desktop/macos/tests/test-qualify-desktop-beta-contract.sh` → passed - `actionlint .github/workflows/desktop_qualify_beta.yml` → exit 0 (custom runner labels registered in `.github/actionlint.yaml`; only the pre-existing SC2086 info remains) - `python3 .github/scripts/check_agents_md_lean.py` → within budget Live (release-infra exercised for real): - Both machine labels applied to the two registered runners; `mac-mini-m4-qualification` already executed a real qualification job end-to-end in #10354's verification. - After merge I will re-run the Codemagic lane on the newest valid candidate to confirm the venv fallback carries it through T2 on the ephemeral Mac. **UNVERIFIED until that run passes** — the fix is proven at the unit/component level (fallback venv imports backend deps) but not yet through a full green CM T2. - Separately, the self-hosted lane is qualifying **v0.12.111** (the real beta-unblock candidate, carrying the #10350 crash fix) on David's M1 via the pre-merge tag script; that run is the operator's actual beta unblock and is independent of this PR. Failure-Class: FC-single-machine-release-gate <!-- This is an auto-generated description by cubic. --> <a href="https://cubic.dev/pr/BasedHardware/omi/pull/10363?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
…0358) ## Summary - Treat the root Codemagic configuration and desktop release-control files as immutable desktop candidate inputs. - Run the exact-SHA Desktop Swift checks whenever one of those inputs changes. - Keep the planner and CI path contracts aligned with regression coverage. ## Verification - `python3 .github/scripts/test_plan_desktop_release.py` - `python3 .github/scripts/test_desktop_swift_ci_contract.py` - `make preflight` Failure-Class: new <!-- This is an auto-generated description by cubic. --> <a href="https://cubic.dev/pr/BasedHardware/omi/pull/10358?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
…es, docker-daemon health, resilient venv (BasedHardware#10363) ## Follow-up hardening for the desktop qualification lanes (BasedHardware#10354) BasedHardware#10354 landed the Codemagic-primary + self-hosted-fallback qualification restructure and registered failure class `FC-single-machine-release-gate`. This PR repairs three gaps found by cross-review and by the first live Codemagic-lane run — the merged version does not yet deliver the "any independent machine can qualify" guarantee the class promises. Instance fixes for the same boundary. ### 1. Independent per-machine fallback lanes (cross-review finding) The merged version had a single `qualify` self-hosted job routed to any matching runner, so a sick-but-online David machine could absorb the job and Nik's mini would never try. Replaced with: - `plan-fallbacks` — reads runner online-status via the runners API (`m1_online`/`m4_online`); a failed query fails open. Gates each machine lane so an **offline** runner is skipped instead of queue-stalling the per-tag concurrency group (offline self-hosted jobs queue up to 24h). - `qualify-m1-studio` (label `omi-qual-m1-studio`) then `qualify-m4-mini` (label `omi-qual-m4-mini`) — one lane per physical machine (labels applied to both registered runners via the API). Serialized so the mini lane runs only when the M1 lane did not publish evidence; a sick-but-online machine can no longer absorb the other's attempt. Byte-identical steps after `steps:` (enforced by `test_desktop_release_flow_contract.py`). - `verdict` passes iff `CM_QUALIFIED || M1_QUALIFIED || M4_QUALIFIED`. ### 2. Docker-daemon health in Typesense selection (cross-review finding) `typesense_runtime()` auto-picked docker on `which docker` alone, so a docker CLI with a **dead daemon** sank the lane even with a native binary present. Now probes `docker info` (`_docker_daemon_healthy`, 15s timeout); a dead daemon falls through to native `typesense-server`, and `prerequisite_report` distinguishes "docker daemon" (present-but-dead) from "docker missing". ### 3. Resilient backend venv provisioning (live CM-lane failure) The first live Codemagic-lane test on **v0.12.111** (build `6a61554646f44fbd4070c8cf`) failed at the qualify step: ``` error: No download found for request: cpython-3.11.15-macos-aarch64-none make: *** [setup-backend] Error 2 ``` `make setup-backend` runs `uv python install 3.11.15` (exact patch), but a freshly `brew install`ed uv on the ephemeral CM Mac has a python-build-standalone index that lacks that exact patch — so the venv-provisioning step added in BasedHardware#10354 hard-broke the lane it was meant to enable. Now: try `make setup-backend` (exact-patch CI parity), and on failure fall back to a venv on the pinned **minor** version + `uv pip sync` of the exact platform lock. The lockfile still pins every dependency exactly; only the interpreter patch floats to what uv can fetch. ## Verification Local (all green): - Exercised the venv fallback against the real backend: `uv venv --python 3.11 + uv pip sync pylock.macos.toml` → `python -c "import uvicorn, fastapi"` OK. - `bash -n desktop/macos/scripts/qualify-desktop-beta.sh` → OK - `python3 .github/scripts/test_desktop_release_flow_contract.py` → 19 OK (incl. new multi-lane independence + byte-identical-lanes assertions) - `python3 -m pytest scripts/dev-harness/tests/` → 50 passed (incl. broken-daemon fallback + dead-daemon preflight) - `python3 .github/scripts/check-release-process-guards.py` → passed (post-rebase over BasedHardware#10358's codemagic.yaml change) - `bash desktop/macos/tests/test-qualify-desktop-beta-contract.sh` → passed - `actionlint .github/workflows/desktop_qualify_beta.yml` → exit 0 (custom runner labels registered in `.github/actionlint.yaml`; only the pre-existing SC2086 info remains) - `python3 .github/scripts/check_agents_md_lean.py` → within budget Live (release-infra exercised for real): - Both machine labels applied to the two registered runners; `mac-mini-m4-qualification` already executed a real qualification job end-to-end in BasedHardware#10354's verification. - After merge I will re-run the Codemagic lane on the newest valid candidate to confirm the venv fallback carries it through T2 on the ephemeral Mac. **UNVERIFIED until that run passes** — the fix is proven at the unit/component level (fallback venv imports backend deps) but not yet through a full green CM T2. - Separately, the self-hosted lane is qualifying **v0.12.111** (the real beta-unblock candidate, carrying the BasedHardware#10350 crash fix) on David's M1 via the pre-merge tag script; that run is the operator's actual beta unblock and is independent of this PR. Failure-Class: FC-single-machine-release-gate <!-- This is an auto-generated description by cubic. --> <a href="https://cubic.dev/pr/BasedHardware/omi/pull/10363?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.
Summary
Verification
python3 .github/scripts/test_plan_desktop_release.pypython3 .github/scripts/test_desktop_swift_ci_contract.pymake preflightFailure-Class: new