Skip to content

SCA-52: prevent desktop admission Firebase emulator leaks - #10323

Merged
Git-on-my-level merged 2 commits into
mainfrom
agent/m1-studio-codex-terra/264dec87
Jul 22, 2026
Merged

Git-on-my-level merged 2 commits into
mainfrom
agent/m1-studio-codex-terra/264dec87

Conversation

@Git-on-my-level

@Git-on-my-level Git-on-my-level commented Jul 22, 2026 •

Copy link
Copy Markdown
Member

Summary

  • run the desktop Beta admission Firebase emulator in a dedicated process group and drain that group on normal exit, failure, timeout, and cancellation
  • allocate explicit per-run Firestore API and websocket ports, avoiding Firebase's shared websocket defaults
  • add a macOS CI lifecycle guard that proves owned grandchildren are reaped while unrelated processes survive

Verification

  • node --test backend/testing/desktop_beta_admission/test_supervise.mjs
  • python3 .github/scripts/test_run_checks.py
  • bash backend/testing/desktop_beta_admission/run.sh
  • make preflight

Failure class

Failure-Class: none

The guard is local to the Firebase emulator runner because process-group ownership and temporary-directory lifetime are specific to that tool's JVM launch model. It directly covers SCA-52's trusted-M1 emulator contamination incident.

Closes SCA-52

Review in cubic

Git-on-my-level and others added 2 commits July 22, 2026 15:19
@Git-on-my-level
Git-on-my-level merged commit affb402 into main Jul 22, 2026
9 of 11 checks passed
@Git-on-my-level
Git-on-my-level deleted the agent/m1-studio-codex-terra/264dec87 branch July 22, 2026 19:23
Git-on-my-level pushed a commit that referenced this pull request Jul 22, 2026
…t fixture

PR #10323 merged a stray "Cache Test / fixture" commit (991d02a) that
replaced desktop/macos/Desktop/Package.swift (166 lines) and Package.resolved
(212 lines) with a one-line stub ("// package-a"). This breaks every desktop
release build at the "Resolve SPM packages" step and blocks the beta pipeline.

Restore both files verbatim from the pre-stub parent fe323c0 (identical to
the manifest on the shipped redesign merge 60e3e76). No dependency-graph change.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
Git-on-my-level added a commit that referenced this pull request Jul 22, 2026
…t fixture (#10323) (#10333)

## Problem

`main` desktop release builds are **currently broken** at the `Resolve
SPM packages` step. PR #10323 ("SCA-52: prevent desktop admission
Firebase emulator leaks") merged a stray commit titled **"Cache Test /
fixture"** (`991d02a345`) that replaced:

- `desktop/macos/Desktop/Package.swift` (166 lines → `// package-a`
stub)
- `desktop/macos/Desktop/Package.resolved` (212 lines → stub)

With no real package manifest, SPM cannot resolve dependencies, so every
Codemagic `omi-desktop-swift-release` build fails before compiling, and
the beta release pipeline is blocked. The current `main` tip still
carries the stub.

## Fix

Restore both files verbatim from the pre-stub parent `fe323c0379` —
which is byte-identical to the manifest on the shipped redesign merge
(`60e3e766`). **No dependency-graph change**; this is a pure revert of
the accidental stub. No commit after the fixture legitimately touched
these files, so nothing else is clobbered.

## Verification

- `Package.swift` back to 166 lines (`name: "Omi Computer"`, swift-tools
6.0, Firebase/Sentry/GRDB/Sparkle/FluidAudio/onnxruntime deps).
- `Package.resolved` back to 212 lines.
- `git diff fe323c0 HEAD -- Package.swift Package.resolved` is empty
(exact restore).

🤖 Generated with [Claude Code](https://claude.com/claude-code)

https://claude.ai/code/session_012weG6Y6Fhae8nLrp83aZKV

<!-- This is an auto-generated description by cubic. -->
<a
href="https://cubic.dev/pr/BasedHardware/omi/pull/10333?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
…are#10323)

## Summary

- run the desktop Beta admission Firebase emulator in a dedicated
process group and drain that group on normal exit, failure, timeout, and
cancellation
- allocate explicit per-run Firestore API and websocket ports, avoiding
Firebase's shared websocket defaults
- add a macOS CI lifecycle guard that proves owned grandchildren are
reaped while unrelated processes survive

## Verification

- `node --test
backend/testing/desktop_beta_admission/test_supervise.mjs`
- `python3 .github/scripts/test_run_checks.py`
- `bash backend/testing/desktop_beta_admission/run.sh`
- `make preflight`

## Failure class

Failure-Class: none

The guard is local to the Firebase emulator runner because process-group
ownership and temporary-directory lifetime are specific to that tool's
JVM launch model. It directly covers SCA-52's trusted-M1 emulator
contamination incident.

Closes SCA-52
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