Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request; exclude patterns for create-version #4

Open
SoylentGraham opened this issue Aug 29, 2023 · 6 comments
Open

Feature request; exclude patterns for create-version #4

SoylentGraham opened this issue Aug 29, 2023 · 6 comments
Labels
feature request Feature Request

Comments

@SoylentGraham
Copy link

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

@SoylentGraham
Copy link
Author

@SoylentGraham
Copy link
Author

SoylentGraham commented Aug 29, 2023

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 :)

@SoylentGraham
Copy link
Author

SoylentGraham commented Aug 29, 2023

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)

@SoylentGraham
Copy link
Author

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

@yoan-bernatchez yoan-bernatchez added the feature request Feature Request label Sep 6, 2023
@SoylentGraham
Copy link
Author

The failed upload stuff here was a server side problem.
Unity game hosting builds can't update giant builds, and just fail as above.

@GabrielBelmonteUnity
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Feature Request
Projects
None yet
Development

No branches or pull requests

3 participants