ci: run CmuxCloud package tests and move 22 Cloud logic suites out of the app host
Summary
Two related gaps in how Cloud logic is tested:
Packages/macOS/CmuxCloudhas had a test target since #14818 (11 tests), butCmuxCloudwas never in theswift-package-testslane, so those tests have never run in CI.- 22 suites in
cmuxTestsexercise only CmuxCloud's own types:VMTunnelManager, the SOCKS5 client, env and file delivery, notification sync,RemotesClient, tunnel backend selection, IP prefix routing and so on. They compiled into the app's test bundle and ran inside the launched app host, though none of them touches the app.
This PR:
- adds
CmuxCloudto the lane's package list, and to theneeds_ghosttykitset, since CmuxCloud depends on CmuxTerminal; - moves those 22 suites (209 tests) into
CmuxCloudTestsunchanged, except for imports (@testable import CmuxCloudin place of thecmux_DEV/cmuxblock); - gives
CmuxCloudTeststhe libghostty test stubs (likeCmuxCloudTuiTests) and Swift 5 language mode, matching howcmuxTestscompiled them; - removes them from
cmuxTestswiring (scripts/sync-test-wiring).
Suites that share helpers with tests staying in the app host (CloudTunnelTestFakes, CloudTerminalMutationTestTransport, CloudTerminalMutationSocketRunner and their users) stay where they are.
What this buys
These suites are cheap to run (about 0.4 s of app-host test time in total), so this does not shorten an app-host shard by itself. It does three things:
- It closes the CI gap above.
- The app-host compile in compile admission, which every PR shard waits on, has 22 fewer test files to compile.
- A Cloud change that touches only
Packages/macOS/CmuxCloudnow gets these 209 tests from the package lane, instead of only from the app-host lane.
The measurement behind choosing this group, and the app-host test inventory, is in the comment below.
Testing
scripts/sync-test-wiring --check,scripts/check-pbxproj.shandscripts/check-workspace-package-groups.pypass locally.- No local
swift test: CmuxCloud builds CmuxTerminal and most of the Cloud stack.swift-package-testsin this PR's CI is the compile and run check. The lane script changed, so it selects every package on this PR.
Changelog
none
🤖 Generated with Claude Code
Summary by cubic
Runs CmuxCloud's package tests in the swift-package-tests lane, closing a gap where those tests never ran in CI. Moves 22 app-host test suites (209 tests) that exercise only CmuxCloud's own types into CmuxCloudTests, so they no longer compile into the app target or launch the app host.
Moved suites
- Covers the tunnel manager, SOCKS5 client, env and file delivery, notification sync,
RemotesClient, tunnel backend selection, and IP prefix routing. - Imports switch from the conditional
cmux_DEV/cmuxblock to@testable import CmuxCloud. CmuxCloudTestsgains the libghostty test stubs and Swift 5 language mode to match howcmuxTestscompiled them.- Suites that share helpers with app-host tests (
CloudTunnelTestFakes, the terminal mutation transports) stay put.
CI lane
CmuxCloudjoins the lane's package list and theneeds_ghosttykitset, since it depends onCmuxTerminal.- The lane tolerates the GhosttyKit
binaryTargetdiagnostic forCmuxCloud, matchingCmuxCloudTui. - The app-host compile in compile admission now has 22 fewer test files to compile.
Summary by CodeRabbit
- Tests
- Cloud package tests now run consistently across supported build configurations, with broader coverage for cloud, terminal, workspace, and virtual machine functionality.
- Package test runs now account for the terminal runtime requirements needed by cloud tests.
- Chores
- Updated project and package configuration to support the revised test setup.