Fix main's cmuxTests build: check the vm ready poll interval in cmuxCLITests
Summary
cmuxTests doesn't compile on main, so no app-hosted test can run on any branch:
cmuxTests/CLIVMTransferTests.swift:730:21: error: type 'CMUXCLI' (aka 'CmuxTuiRemoteRouting') has no member 'vmReadyPollInterval'
#15381 added a direct call to CMUXCLI.vmReadyPollInterval(environment:) in the app-hosted CLIVMTransferTests. In that target CMUXCLI is typealias CMUXCLI = CmuxTuiRemoteRouting (cmuxTests/CLICoderouterCommandTests.swift:14), the app's routing enum. The helper exists only in the CLI target (CLI/CMUXCLI+VMTransfer.swift). Seen in focused runs 36778300752 and 36775744693.
This moves that pure check into cmuxCLITests (CLIVMReadyPollIntervalTests), which imports cmux_cli, and widens it from the one oversized case to every branch of the override policy. The process-level test in CLIVMTransferTests keeps its short valid override, so it still doesn't wait out the real cadence.
Testing
python3 scripts/verify-local.py passes 16/16 (test wiring, project, wire-app-sources included). Compilation and execution are this PR's CI; nothing was built on this Mac.
Changelog
none
🤖 Generated with Claude Code
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.
Summary by cubic
Fixes the cmuxTests build on main so app-hosted tests can run: CLIVMTransferTests called CMUXCLI.vmReadyPollInterval(environment:), but in that target CMUXCLI is the app's routing enum and the helper exists only in the CLI target.
- Moves the purity override check into
cmuxCLITests/CLIVMReadyPollIntervalTests.swift, which importscmux_cli, and widens it to cover valid, missing, oversized, zero, negative, NaN, and non-numeric overrides. - The process-level test in
CLIVMTransferTestskeeps its short valid override and no longer references the helper.
Summary by CodeRabbit
- Tests
- Expanded coverage for virtual machine startup polling intervals, including missing, invalid, out-of-range, and valid settings.
- Updated process-level test coverage to retain a valid custom polling interval.