Feature request; exclude patterns for create-version
Linux_BackUpThisFolder_ButDontShipItWithYourGame
Linux_BurstDebugInformation_DoNotShip
With our workflow tool https://github.com/condensereality/UnityGameHostingAction It would be GREAT, if I could exclude these from the upload, rather than have to move/delete them in the workflow to not upload them
https://github.com/Unity-Technologies/unity-gaming-services-cli/blob/main/Unity.Services.Cli/Unity.Services.Cli.GameServerHosting/Handlers/BuildCreateVersionFileUploadHandler.cs#L17
I guess being able to add stuff here (though ultimately multiple *xxx* patterns) is what I'd want
A little context; with the script above, I'm getting a 500 error
{
"Message": "Error calling CreateOrUpdateBuildFile: {\"status\":500,\"title\":\"Internal Server Error\",\"requestId\":\"8887ba1b-53b3-4470-9e98-9717031172f4\"}",
"Type": "Error"
}
With
Total in BuildFiles Files=782(1560.39mb) Large=347(1467.53mb) Non-files: 0 when running on a linux runner, (still waiting for local mac to finish running), and wondering if size is part of the reason
Biggest; Large file! GameAssembly.debug; 646.47mb...
EDIT: this was a misnomer, but at least it adds SOME context :)
May be a different issue, same files, same version of tool, uploaded okay on mac. But Failed with linux on a github runner...
Fails with only a few files on runner/linux. (This is a seperate issue)
edit: worked locally, failed on linux runner, failed on macos runner, took same exact command line and failed locally on my mac (can't quite see what's wrong)
./UnityGameHostingAction/CliExe/ugs-macos-x64 gsh build create-version 50141 --directory BuildFiles --json --environment-name staging --project-id xxxxxx
More testing (will spin off another bug, as this fails with 50mb upload, so is unrelated)
Edit: seems like this was maybe a whole misnomer, the backend falls over if you have a 1.5gb build (can't update in web interface, nor CLI)
My nice-for-now workaround for any readers, is to not extract these files in the first place;
unzip ${{ env.ARTIFACT_FILENAME }} -d "BuildFiles" -x "*DoNotShip*" -x "*DontShip*"
https://github.com/condensereality/UnityCloudBuildAction/blob/UploadToUnityGameHosting/.github/workflows/UnityCloudBuild.yml#L223
The failed upload stuff here was a server side problem. Unity game hosting builds can't update giant builds, and just fail as above.
Hey, was doing a pass on issues.
This is supported from the editor package using the deployment window.
Example from the megacity metro: https://github.com/Unity-Technologies/megacity-metro/blob/master/Assets/Settings/UGS/GSH/game-server-hosting-config-template.gsh#L6
likely we'll support that file in the future in the CLI