Im trying to run fastlane scan on Jenkins, the tests execute well, pass, but on the last part it seems to fail because it can't access or start the simulator :
[32;1m Executed 337 tests, with 0 failures (0 unexpected) in 5.657 (5.702) seconds
[0m
2018-12-19 11:09:41.006 xcodebuild[87795:568022] [MT] IDETestOperationsObserverDebug: 34.991 elapsed -- Testing started completed.
2018-12-19 11:09:41.006 xcodebuild[87795:568022] [MT] IDETestOperationsObserverDebug: 0.000 sec, +0.000 sec -- start
2018-12-19 11:09:41.007 xcodebuild[87795:568022] [MT] IDETestOperationsObserverDebug: 34.991 sec, +34.991 sec -- end
2018-12-19 11:09:41.007 xcodebuild[87795:568022] Error Domain=IDETestOperationsObserverErrorDomain Code=6 "Early unexpected exit, operation never finished bootstrapping - no restart will be attempted" UserInfo={NSLocalizedDescription=Early unexpected exit, operation never finished bootstrapping - no restart will be attempted, NSUnderlyingError=0x7fa957d4a580 {Error Domain=IDETestOperationsObserverErrorDomain Code=5 "Test runner exited before starting test execution." UserInfo={NSLocalizedDescription=Test runner exited before starting test execution., NSLocalizedRecoverySuggestion=If you believe this error represents a bug, please attach the log file at /Users/admin/.jenkins/workspace/app/jenkins_build/app/logs/App Development.test_result/3_Test/Diagnostics/App-C8F63971-F551-4B88-9B36-2CD1895231B9/Lassie-55B9D4CF-E286-4D7E-9C3D-2F9EF57C9E2B/Session-Lassie-2018-12-19_110906-AgsuGb.log}}}
Testing failed:
App Development.app (92694) encountered an error (Early unexpected exit, operation never finished bootstrapping - no restart will be attempted. (Underlying error: Test runner exited before starting test execution.))
** TEST FAILED **
The weird part is: if it try to run the same command in shell, it works just fine. Already tried to restart and reset all simulators before starting the build, changed Always embed swift standard libraries to No, disabled parallel testing, but nothing works...
[EDIT]: Added Xcode build log:
12:13:25.326 xcodebuild[4767:695436] 📱<DVTiPhoneSimulator (0x7ff3b2a46860), iPhone 7, unknown class, 11.0.1 (15A8401), 5BDE8E89-5FC4-47FF-860A-EDBE34C64EED> got death notice for pid 9688, removing from SimulatorSessionMap
12:13:25.326 xcodebuild[4767:695436] 📱<DVTiPhoneSimulator (0x7ff3b2a46860), iPhone 7, unknown class, 11.0.1 (15A8401), 5BDE8E89-5FC4-47FF-860A-EDBE34C64EED> claim LaunchSessionClaim_0x7ff3b50bab40 on simulator was relinquished
12:13:25.327 xcodebuild[4767:695436] 📱<DVTiPhoneSimulator (0x7ff3b2a46860), iPhone 7, unknown class, 11.0.1 (15A8401), 5BDE8E89-5FC4-47FF-860A-EDBE34C64EED> claim LaunchSessionClaim_0x7ff3b50bab40 on simulator was relinquished
12:13:25.724 xcodebuild[4767:695436] <IDETestOperationCoordinator: 0x7ff3b5260130> finished receiving data from testing launch session
12:13:25.724 xcodebuild[4767:695436] <IDETestOperationCoordinator: 0x7ff3b5260130>: _considerFlushingDelegateBlockQueue - nothing to flush
12:13:32.328 xcodebuild[4767:695436] Test operation failure: Test runner exited before starting test execution.
12:13:32.328 xcodebuild[4767:695436] _finishWithError:Error Domain=IDETestOperationsObserverErrorDomain Code=5 "Test runner exited before starting test execution." UserInfo={NSLocalizedDescription=Test runner exited before starting test execution.}
from Fastlane failing tests on Jenkins
No comments:
Post a Comment