Since switching on LFS on my project (which is well over the 2GB size for the main git repository in Bitbucket), I’m having problems with Cloud Build. It will do one of two things: fail or time out and cancel itself, during the source control step.
This is the error message:
fatal: Assets/3rdParty/BulletImpacts/scene/impactPlane.png: smudge filter lfs failed
217: git-lfs/1.4.1 (GitHub; darwin amd64; go 1.7; git 2070e4c)
218: git version 2.6.6
219: Error downloading object: Assets/3rdParty/BulletImpacts/scene/impactPlane.png (2738114c01ca94ce2e9e2f265371534aaa77fe74ec93abb37aeb98b5c3a1e81f)
220: Smudge error: Error downloading 2738114c01ca94ce2e9e2f265371534aaa77fe74ec93abb37aeb98b5c3a1e81f: batch request: exit status 255: batch request: exit status 255
We sometimes get ‘smudge failed’ problems locally using sourcetree too, it seems to be a rather global problem with flakiness in the LFS implementation. Hitting Pull again seems to fix it. I feel that this shouldn’t be a problem in the Cloud Build process, that Cloud Build should detect this one specific message and know to retry the pull and continue building. Of course, if anyone knows a way to stop this error altogether, I’m all ears!
This is the time out/cancel message:
Cloning the remote Git repository
38: Cloning repository ssh://git@bitbucket.org/dogboat/mrshifty.git
39: Fetching upstream changes from ssh://git@bitbucket.org/dogboat/mrshifty.git
40: Fetching upstream changes from ssh://git@bitbucket.org/dogboat/mrshifty.git
41: Checking out Revision 60613b7afc81bf85d7e0aa2efbe09fd5918dcec9 (refs/remotes/origin/master)
42: Build was canceled
43: ********************************************************************************
44: This build was automatically canceled by the Cloud Build service. This usually
45: happens when log output stops for an extended period of time. If you suspect
46: this is due to a problem with the Cloud Build service, please contact support.
47: Unity ID
48: ********************************************************************************
I’m not sure what to do about the time outs.
We had only minor problems with Cloud Build before we started using LFS. It’s now almost completely useless. I build three platforms once daily from a scheduler. Not a single build has succeeded getting through the source control step in about a month now.
Is there any help out there? I really like Cloud Build in concept and when it was working for us it was very cool.