Skip to content

tests: cut simulator runs by ten minutes and run only unit tests in CI - #8206

Merged
osy merged 3 commits into
mainfrom
ci/test-runtime
Nov 18, 2026
Merged

osy merged 3 commits into
mainfrom
ci/test-runtime

Conversation

@osy

@osy osy commented Nov 18, 2026

Copy link
Copy Markdown
Contributor

Three changes that make the test runs faster and their results trustworthy.

Simulator runs no longer wait ten minutes after the tests pass. Every iOS simulator test run in CI spent 600 seconds after its last test on Failure collecting diagnostics from simulator: Timed out after 600.0 seconds. Two unit tests report SwiftUI runtime warnings (VMDetailsViewTests.testDetailsRenderForARegistryOnlyVM, VMNameFieldTests.testSettingsNameFieldIsSingleLine), and a runtime issue makes xcodebuild run simctl diagnose even when every test passes. On the iOS 27.1 simulator that collection never finishes (darwinup list inside the simulator does not answer). scripts/test_utm.sh -s now passes -collect-test-diagnostics never; a caller can pass its own value to collect them anyway.

testEveryVmSettingsPaneFitsTheSheetWithLongLabels gets five minutes. It passes in 80 to 105 seconds and crossed the two-minute default allowance on two of the last four macOS UI runs on main, failing them as a hang.

CI runs only the unit tests, and none on a release. The macOS and iOS UI flows ran after every merge as allowed-to-fail steps that failed on runner timing more often than on regressions. They are removed from the workflow; utm-submit now requires the unit tests on both hosts before every PR, and the UI suites when the change touches UI code. A release run skips the static checks and the unit tests: the commits it ships were tested by their pull requests and pushes to main, and the version bump it is cut from changes nothing they cover.

Testing

Tested by an AI agent on a MacBook Pro (Mac14,6) with macOS 27.2, Xcode 27.1 and the iOS 27.1 simulators, on the final commits of this branch:

  • Diagnostics wait, before: the full iOS simulator unit suite on main passed its 213 tests in 2.6 s, then xcodebuild waited for the 600 s timeout (testing phase 625 s). The single test VMNameFieldTests/testSettingsNameFieldIsSingleLine alone also took 606 s; a class without runtime warnings (QEMUArgumentFragmentTests) did not wait. The CI result bundle showed the same: simctl diagnose output with an empty diagnose.log and darwinupList.log.
  • Diagnostics wait, after: ./scripts/test_utm.sh -s: 217 tests passed, testing phase 25 s, no timeout. With -collect-test-diagnostics on-failure passed by the caller, xcodebuild received only the caller's value.
  • Unit tests, macOS (./scripts/test_utm.sh): 288 passed, 16 skipped (the VM lifecycle tests, which skip outside the signed host).
  • UI tests, macOS (./scripts/test_utm.sh -only-testing:UTMUITests, in a desktop session): 12/12 passed; testEveryVmSettingsPaneFitsTheSheetWithLongLabels took 78.6 s.
  • UI tests, iOS (./scripts/test_utm.sh -s iPad -only-testing:UTMUITests-iOS): 7/7 passed, 291 s end to end (the CI step averaged 24 minutes).
  • Workflow: sh Tests/Static/run_all.sh --no-sdp passes, and the workflow parses with the intended job conditions (static-checks, test-utm and test-utm-ios skip on release; no UI job remains). The workflow itself has not run yet; this PR's own CI run is its first.

osy added 3 commits November 18, 2026 00:16
Every iOS simulator test run in CI spent 600 seconds after its last test
waiting for xcodebuild to log "Failure collecting diagnostics from simulator:
Timed out after 600.0 seconds". Two unit tests report SwiftUI runtime
warnings, and a runtime issue makes xcodebuild run simctl diagnose even when
every test passes. On the iOS 27.1 simulator that collection never finishes
(darwinup list inside the simulator does not answer), so the wait was most
of the Test UTM (iOS Simulator) job: 13.7 minutes, of which the tests take
seconds.

Pass -collect-test-diagnostics never for simulator runs. On the test Mac, a
run of one warning-reporting test took 606 seconds before and 25 after.

Assisted-by: Claude:claude-opus-5-5
testEveryVmSettingsPaneFitsTheSheetWithLongLabels creates a VM through the
wizard, relaunches UTM in Russian and visits every settings pane. On the CI
runner it passes in 80 to 105 seconds and every step is evenly slower on a
loaded runner, so it crossed the two-minute default allowance on two of the
last four macOS UI runs on main and failed them as a hang. Allow it five
minutes; a real hang is still caught.

Assisted-by: Claude:claude-opus-5-5
The macOS and iOS UI flows ran after every merge as allowed-to-fail steps.
The macOS flows need a desktop session the runners do not reliably have,
and both suites fail on runner timing more often than on regressions
(testEveryVmSettingsPaneFitsTheSheetWithLongLabels and the iOS flows went
over their allowance on loaded runners), so their red steps were no signal.
Drop both from CI. Instead, utm-submit now requires the unit tests on both
hosts before every PR, and the UI suites as well when the change touches UI
code, since that run is now the only one before merge.

A release ships commits that their pull requests and pushes to main already
tested, and the version bump it is cut from changes nothing the tests cover,
so the release run skips the static checks and the unit tests and only
builds and packages.

Assisted-by: Claude:claude-opus-5-5
@osy
osy merged commit c9d753e into main Nov 18, 2026
30 checks passed
@osy
osy deleted the ci/test-runtime branch November 18, 2026 08:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant