Skip to content

fix(release): bind candidates to build configuration - #10358

Merged
kodjima33 merged 1 commit into
mainfrom
kodjima33/codemagic-m4-release-planner
Jul 22, 2026
Merged

kodjima33 merged 1 commit into
mainfrom
kodjima33/codemagic-m4-release-planner

Conversation

@kodjima33

@kodjima33 kodjima33 commented Jul 22, 2026 •

Copy link
Copy Markdown
Collaborator

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

Review in cubic

@kodjima33 kodjima33 added the no-changelog-needed Skip desktop changelog enforcement for internal-only changes label Jul 22, 2026
@kodjima33
kodjima33 merged commit fed2296 into main Jul 22, 2026
29 of 35 checks passed
@kodjima33
kodjima33 deleted the kodjima33/codemagic-m4-release-planner branch July 22, 2026 23:13
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. -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-changelog-needed Skip desktop changelog enforcement for internal-only changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant