Skip to content

desktop/macos/test.sh never reaches its Python or Swift sections: two discovered launcher tests need an argument the loop cannot supply #11747

Closed

Description

@kodjima33

Symptom

desktop/macos/test.sh — documented in desktop/macos/README.md:47 as "the full component/PR suite" and the desktop entry for Definition-of-Done item 2 ("the component's test suite passes, run locally before committing") — cannot reach its Python or Swift sections on any machine. It aborts inside the first section.

Root cause

The launcher-test loop is deliberately discovery-based (for t in tests/test-*.sh), but two discovered scripts take an argument the loop cannot supply:

  • tests/test-mounted-navigation-latency.sh needs a running app's automation token → FAIL: automation token is unavailable for port 47777, exit 1.
  • tests/test-named-bundle-resources.sh needs an installed named bundle path → usage: tests/test-named-bundle-resources.sh /Applications/your-named-omi.app, exit 64. With no argument it can never pass.

test.sh runs under set -euo pipefail, so the first of the two aborts the whole runner. The === Python Desktop Backend Tests === and === Swift App Tests === sections — the bulk of the suite — never execute.

CI does not hit this: the "Desktop launcher script tests" step in .github/workflows/desktop-swift-ci.yml:183 has a case/continue skipping exactly those two scripts. So the CI loop and the local loop diverged, and only the local one is broken.

Evidence

Running the discovery loop as test.sh defines it, on main at ec91cad1f7:

FAIL(1)  tests/test-mounted-navigation-latency.sh   FAIL: automation token is unavailable for port 47777
FAIL(64) tests/test-named-bundle-resources.sh       usage: tests/test-named-bundle-resources.sh /Applications/your-named-omi.app

Fix direction

Give test.sh the same skip list as the CI step (printing a visible skip: line, not a silent drop), and add a checker that fails when the two loops' skip lists diverge or name a script that no longer exists — the divergence is what made this reachable in the first place.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions