Skip to content

[desktop/macos] CI: Swift app is never compiled or tested before merge #8842

Closed

Description

@Git-on-my-level

Area: Build & CI

Problem

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

  1. 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).
  2. 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

  1. added
    docs-tooling
    p3
    on Jul 4, 2026
  2. added a commit that references this issue on Jul 6, 2026
    730e3fc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    docs-toolingp3refactor

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions