Hi!
I’ve set up a CI system for my project with gitlab-ci, using this repository as a template. I run the following batch script for the tests:
"Unity.exe" ^
-projectPath "%cd%" ^
-batchmode ^
-runTests ^
-testPlatform editmode ^
-testResults "%cd%\editmode-results.xml" ^
-logfile testlog.log ^
|| goto :error
echo "Tests successful!""
exit /b 0
:error
echo Failed with error #%errorlevel%.
exit /b %errorlevel%
The CI runner is running on my own computer on the same user, and when I manually go to the runner directory and run the scripts they are successful. However, when gitlab-ci does it, it fails with error code 255. The terminal shows nothing except for the command and the “Failed with error #255” message, and the result xml shows all the tests passed both when running local and on gitlab-ci. The log files (testlog.log) are almost identical except for the gitlab-ci one having two lines like this:
Symbol file LoadedFromMemory doesn't match image D:\Gitlab-Runner\builds\e4Y8wNDA\1\algoryx\external\unity-project\AGMSim\Library\PackageCache\com.unity.ext.nunit@1.0.0\net35\unity-custom\nunit.framework.dll
and the local one having these lines at the end:
Checking for leaked weakptr:
Found no leaked weakptrs.
##utp:{"type":"MemoryLeaks","version":2,"phase":"Immediate","time":1569912322617,"processId":29908,"allocatedMemory":1522783,"memoryLabels":[{"Default":1292},{"NewDelete":311155},{"Thread":-161},{"Manager":728},{"VertexData":480},{"GfxDevice":400},{"Audio":192},{"Font":1043876},{"Physics":177},{"Serialization":40},{"Terrain":112},{"String":51695},{"DynamicArray":28676},{"HashMap":14006},{"Curl":2192},{"PoolAlloc":8},{"ScriptManager":8971},{"Sprites":8},{"GI":400},{"VR":3956},{"Secure":8},{"Image":32768},{"EditorGui":40},{"EditorUtility":556},{"AssetImporter":32},{"RestService":256},{"UnityConnect":20224},{"Collab":696}]}
Anyone have any ideas what this could be about or how to investigate further? Another thing worth mentioning is that I have another job that builds the application in a similar way using the Unity CLI and it always works fine with no error messages.
I’m attaching the two log files (I had to change the file extensions to be able to upload them).
Thanks in advance,
Martin
5018540–491525–testlog_local.txt (234 KB)
5018540–491528–testlog_gitlab-ci.txt (234 KB)