We have a test suite that passes when tests are run manually via Xcode.
But when run through Xcode Server on about 50 different simulators and devices (most combinations of iOS versions vs device type) we get "random" errors and failures. The devices/OS versions that it happens on always changes from intergration to intergration, but the tests that fail or error are typically the same few over and over again. This would suggest timing issues or similar, but it doesn't seem to be the case.
For example, some of them (#3 and #4) are cases of "1" is not not equal "1"-type failures.
Has anyone else had problems with sporadic Xcode Server CI test failures?
These two tests error (they never complete):
#1
Issue: Run test suite ResetPasswordHelperTests encountered an error (Test session exited(-1) without completing. If you believe this error repre.
Integration Number: 18.
Integration URL: https://[redacted].local/xcode/bots/D5DE641/integrations
Description: Run test suite ResetPasswordHelperTests encountered an error (Test session exited(-1) without completing. If you believe this error represents a bug, please attach the log file at /Library/Developer/XcodeServer/Integrations/Integration-a65a88452e866909928d000cda035549/Session-2015-07-21_14:41:17-SzQyLx.log).
Committers: Introduced 1 integration ago.
#2
Issue: test_send_request_reset_response_failed encountered an error (Test session exited(-1) without completing. If you believe this error represen.
Integration Number: 18.
Integration URL: https://[redacted].local/xcode/bots/D5DE641/integrations
Description: test_send_request_reset_response_failed encountered an error (Test session exited(-1) without completing. If you believe this error represents a bug, please attach the log file at /Library/Developer/XcodeServer/Integrations/Integration-a65a88452e866909928d000cda035549/Session-2015-07-21_14:40:33-Xtlc7c.log).
Committers: Introduced 3 integrations ago.
These tests fail:
#3
Issue: ((self.logEvents) equal to (@"/startLoading[https://www.mock.unitest.com/api/v1/search/?q=allBooksWithThisTerm&filter=book&sort=created_time.
File: SearchManagerTest.m.
Test Case: -[SearchManagerTest testNilCompletionBlock].
Integration Number: 17.
Integration URL: https://[redacted].local.local/xcode/bots/D5DE641/integrations
Description: ((self.logEvents) equal to (@"/startLoading[https://www.mock.unitest.com/api/v1/search/?q=allBooksWithThisTerm&filter=book&sort=created_time]/stopLoading[https://www.mock.unitest.com/api/v1/search/?q=allBooksWithThisTerm&filter=book&sort=created_time]")) failed: ("/startLoading[https://www.mock.unitest.com/api/v1/search/?q=allBooksWithThisTerm&filter=book&sort=created_time]/stopLoading[https://www.mock.unitest.com/api/v1/search/?q=allBooksWithThisTerm&filter=book&sort=created_time]") is not equal to ("/startLoading[https://www.mock.unitest.com/api/v1/search/?q=allBooksWithThisTerm&filter=book&sort=created_time]/stopLoading[https://www.mock.unitest.com/api/v1/search/?q=allBooksWithThisTerm&filter=book&sort=created_time]").
#4
Issue: ((self.logEvents) equal to (@"/taskStateDidChange[0]/taskStateDidChange[2]/taskStateDidChange[3]")) failed: ("/taskStateDidChange[0]/taskSta.
File: URLRequestTest.m.
Test Case: -[URLRequestTest testCancelAllTasks].
Integration Number: 17.
Integration URL: https://[redacted].local.local/xcode/bots/D5DE641/integrations
Description: ((self.logEvents) equal to (@"/taskStateDidChange[0]/taskStateDidChange[2]/taskStateDidChange[3]")) failed: ("/taskStateDidChange[0]/taskStateDidChange[2]/taskStateDidChange[3]") is not equal to ("/taskStateDidChange[0]/taskStateDidChange[2]/taskStateDidChange[3]").
#5
Issue: failed: caught "NSInvalidArgumentException", "+entityForName: nil is not a legal NSManagedObjectContext parameter searching for entity name .
File: CoreDataItemProviderTests.m.
Test Case: -[CoreDataItemProviderTests test_CoreDataItemProvider_should_not_crash].
Integration Number: 17.
Integration URL: https://[redacted].local.local/xcode/bots/D5DE641/integrations
Description: failed: caught "NSInvalidArgumentException", "+entityForName: nil is not a legal NSManagedObjectContext parameter searching for entity name '[Redacted]'"