Post

Replies

Boosts

Views

Activity

Reply to Xcode 11.x Build Service Error: Integration results could not be uploaded.
I'm seeing this problem after upgrading to Xcode12, but it is intermittent. Duplicating all my bots did not work. Looking in the logs, it seems to be a timeout (30 seconds) in the command to copy the integration assets. I tried supressing the error in the build report, but the overall bot status still shows 'failed'. How can this be fixed? I'm pulling my hair out with frustration. I have post-build/test scripts that only run on 'bot success' and won't ever be called even though there are no build errors and all the tests pass.
Oct ’20
Reply to Xcode 12.x Build Service Error: Integration results could not be uploaded.
Here's some more info from the buildService.log file. Rather than a 30 second timeout, it looks like a 10 second one due to an internal network call being made to the bot server (?) Oct&#9;7 13:28:35&#9;[54077] <Info>: Completed integration step XCSProcessBuildResultsIntegrationStep without error Oct&#9;7 13:28:36&#9;[54077] <Info>: Uploading file /Users/xcodeserver/Library/Caches/XCSBuilder/Integration-5edb0de71a3e9dd13e1844b98966e59e/xcodebuild_result.xcresult.zip Oct&#9;7 13:38:36&#9;[54077] <Error>: Error: The request timed out. Oct&#9;7 13:38:36&#9;[54077] <Error>: Error trying to upload /Users/xcodeserver/Library/Caches/XCSBuilder/Integration-5edb0de71a3e9dd13e1844b98966e59e/xcodebuild_result.xcresult.zip: Unable to perform the request. CFNetwork error: The request timed out. (-1001 - kCFURLErrorTimedOut) Oct&#9;7 13:38:36&#9;[54077] <Error>: XCSProcessTestResultsIntegrationStep finished integration with an error: Error Domain=XCSBuildServiceDomain Code=-1 "Integration results could not be uploaded. Test attachments and integration logs may be unavailable for this integration." UserInfo={NSLocalizedDescription=Integration results could not be uploaded. Test attachments and integration logs may be unavailable for this integration.} Oct&#9;7 13:38:37&#9;[54077] <Info>: Executing trigger 'post_build_error'
Oct ’20
Reply to Xcode 12.x Build Service Error: Integration results could not be uploaded.
After observing the system in more detail, I see more of what's happening. When I initiate an integration for a bot, a unix-executable file is generated in the folder /Library/Developer/XcodeServer/IntegrationAssets. This file is supposed to have the permissions -rwxrwx--- but instead has permissions -rw-r-r--. Before: -rw-r--r--   1 _xcsd  _xcs     48948 Oct  9 14:12 5b6890ca4afc71b3c85c5f931176d970 After: -rwxrwx---   1 _xcsd  _xcs     48948 Oct  9 14:12 5b6890ca4afc71b3c85c5f931176d970 When the bot finishes and the file permissions are broken, the bot fails and gives me the warning about not being able to upload the integration assets. It also fails to delete the folder for the integration assets located at ~/Library/Caches/XCSBuilder/Integration-04f7a1d672eaf280a992b4001d5367b4 (the guid changes per build) If I run sudo xcrun xcscontrol --fix-permissions in time, the permissions get fixed and the bot finishes normally. Here's the real bummer: The permissions are only wrong about 1 out of every 4 integrations. Anybody have any further suggestions? What script is creating that file with the incorrect permissions sometimes?
Oct ’20