You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[desktop/macos] CI: Swift app is never compiled or tested before merge #8842
PR CI for desktop/macos runs rustfmt + cargo check on the Rust backend and the changelog/agent-runtime checks, but never compiles or tests the Swift app (466 files, ~196k lines, 104 test files). The first compile of merged Swift code is the Codemagic release build, triggered after merge to main auto-tags a release.
Evidence
.github/workflows/lint.yml — desktop steps are rustfmt --check + cargo check --locked only (no swift build, no swift test, no cargo test).
codemagic.yaml:2241,2255 — only xcrun swift build -c release at release time; no swift test anywhere in CI.
desktop/macos/test.sh — the only place Swift tests run (locally), and it permanently --skips 4 suites (CrispManagerLifecycleTests, MemoriesViewModelObserverTests, TasksStoreObserverTests, OnboardingFlowTests) labeled "pre-existing, not PR-related" — an opt-out list with no force shrinking it.
AGENTS.md tells contributors "run a clean release build before merge for cross-file type changes" — prose rule, nothing enforces it.
Stakes: ~1190 commits/month touch desktop/macos; ~35% of commit subjects contain fix/revert (git log --since="1 month ago" --format=%s -- desktop/macos). Broken merges become broken releases here because merge auto-tags a beta.
Suggested fix
Add a macos-14/macos-15 runner job to PR CI, path-filtered on desktop/macos/Desktop/**: xcrun swift build -c release --package-path Desktop --triple arm64-apple-macosx + xcrun swift test --package-path Desktop (reusing the same skip list as test.sh, sourced from one shared file so they can't drift).
Fix the 4 skipped suites (3 crash on missing FirebaseApp.configure() in headless env — inject/stub instead) and delete the skip list, or add a ratchet so the list can only shrink.
Open questions
macOS runner minutes/cost budget — if a full test run per PR is too expensive, gate on changed paths and make build (not test) the hard gate.
Activity
ci(desktop): build and test Swift app in PRs (#9111)