Repository navigation
tests: cut simulator runs by ten minutes and run only unit tests in CI - #8206
Merged
Merged
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 runsimctl diagnoseeven when every test passes. On the iOS 27.1 simulator that collection never finishes (darwinup listinside the simulator does not answer).scripts/test_utm.sh -snow passes-collect-test-diagnostics never; a caller can pass its own value to collect them anyway.testEveryVmSettingsPaneFitsTheSheetWithLongLabelsgets 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 onmain, 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-submitnow 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 tomain, 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:
mainpassed its 213 tests in 2.6 s, then xcodebuild waited for the 600 s timeout (testing phase 625 s). The single testVMNameFieldTests/testSettingsNameFieldIsSingleLinealone also took 606 s; a class without runtime warnings (QEMUArgumentFragmentTests) did not wait. The CI result bundle showed the same:simctl diagnoseoutput with an emptydiagnose.loganddarwinupList.log../scripts/test_utm.sh -s: 217 tests passed, testing phase 25 s, no timeout. With-collect-test-diagnostics on-failurepassed by the caller, xcodebuild received only the caller's value../scripts/test_utm.sh): 288 passed, 16 skipped (the VM lifecycle tests, which skip outside the signed host)../scripts/test_utm.sh -only-testing:UTMUITests, in a desktop session): 12/12 passed;testEveryVmSettingsPaneFitsTheSheetWithLongLabelstook 78.6 s../scripts/test_utm.sh -s iPad -only-testing:UTMUITests-iOS): 7/7 passed, 291 s end to end (the CI step averaged 24 minutes).sh Tests/Static/run_all.sh --no-sdppasses, and the workflow parses with the intended job conditions (static-checks,test-utmandtest-utm-iosskip onrelease; no UI job remains). The workflow itself has not run yet; this PR's own CI run is its first.