Commit Graph

179 Commits

Author SHA1 Message Date
David Harvey
fd4e90d66f do not fail a -noclient -server build if there are multiple game build targets.
- this matches the logic when running UAT with -target=myserver etc.


#jira UE-169814
#rb Josh.Adams
#preflight 6374ab6f1c114bec05ee01f9

[CL 23151764 by David Harvey in ue5-main branch]
2022-11-16 04:34:44 -05:00
Dan Thompson
739a2dcf5c Add a way to save iostore containers that get modified as part of the deployment/staging process.
#rb fabian.giesen
#preflight 6362b0a71a32af63a8f3ba32

[CL 22922682 by Dan Thompson in ue5-main branch]
2022-11-02 14:29:26 -04:00
chris varnsverry
e6e16a972e - Refactor "Default Editor" mechanism to enable specifying default Server too.
[REVIEW] [at]Rob.Cannaday [at]Graeme.Thornton [at]Sam.Zamani

[CL 22802851 by chris varnsverry in ue5-main branch]
2022-10-26 22:19:05 -04:00
josh adams
a7c8ca547e - Extended the "UnstagedRuntimeDependencies" concept for pulling only minimal files needed for platform (console mainly) cooking into a directory at stage time, called "CookerSupportFiles"
- It needs to have CookerSupportFilesSubdirectory passed in to BuildCookRun to activate (giving it the name of a subdirectory under the Staged directory to put the SDK files)
- it also writes a .bat file that can set the envvars needed for the minimal SDKs to be found by Unreal
#rb graeme.thornton
#preflight 634f1e9069246074dba2f09a
#p4v-cherrypick 22616289

[CL 22634717 by josh adams in ue5-main branch]
2022-10-19 15:11:10 -04:00
Per Larsson
f0b70dbbb5 UAT - added comand line option -NoZenAutoLaunch
#rb trivial
#jira none
#preflight 634fde92b7420ffb4a5c4651
#rnx

[CL 22622177 by Per Larsson in ue5-main branch]
2022-10-19 07:46:07 -04:00
paul chipchase
de15bdda17 Add '-rehydrate' to .umap/.uasset files when creating a PakResponse file, if the '-rehydrate' command line was used.
#rb CarlMagnus.Nordin, Per.Larsson
#rnx
#preflight 63497178fd22d1fbdec55b2d

[CL 22595712 by paul chipchase in ue5-main branch]
2022-10-18 05:24:09 -04:00
Dan Thompson
1648e152b4 Fix passing -WriteBackMetadataToAssetRegistry via RunUAT. Now you can pass this in ushell after the -- when doing .stage game.
#rb martin.ridgers
#preflight 6320b01c506f1a33e05a6765

[CL 21986745 by Dan Thompson in ue5-main branch]
2022-09-13 13:21:49 -04:00
Josh Adams
5b2f23198f - Allow staging/packaging of programs (requires the program have a basic .uproject, see the new SlateUGS.uproject)
- Added code to patch paths for handling Programs having source in /Engine/Source/Programs/XYZ, their config fies, etc in /Engine/Programs/XYZ, and staging using /XYZ
- Mac can now apply -specifiedarchitecture to UAT builds of programs
- Added support to SlateUGS to load Pak files (programs have to opt-in to it in their main Build.cs)
#rb brandon.schaefer,david.harvey
#preflight 631a03202b7fe03eb6b0f16a

[CL 21894674 by Josh Adams in ue5-main branch]
2022-09-08 11:22:00 -04:00
David Harvey
5996881bca Fix error message when multiple Client or Server target.cs files exist, but -Target= is not specified.
#jira UE-152652
#rb trivial
#rnx
#preflight 6315aee47562a90dfa9a804d

[CL 21789934 by David Harvey in ue5-main branch]
2022-09-05 04:27:53 -04:00
Dan Thompson
7c8f356b9a Removing GetNumCookersToSpawn as it hasn't been used in a long long time.
#jira UE-158607
#preflight 62cc784c173a4f340870d564
#rb matt.peters

[CL 21046824 by Dan Thompson in ue5-main branch]
2022-07-11 16:33:40 -04:00
Ben Marsh
64b6cb04f1 BuildGraph: Fix UDN documentation output.
#preflight none

[CL 20774471 by Ben Marsh in ue5-main branch]
2022-06-22 10:42:19 -04:00
justin marcus
6c728ff8b9 Build Automation Fixes.
Fix DLCOverrideCookedSubDir  param being used for DLCOverrideStagedSubDir if DLCOverrideStagedSubDir was not specified via commandline.
Don't allow TargetPlatformDescriptor.CookFlavor to be null - it needs to be empty string to be a valid key.
[REVIEW] [at]Graeme.Thornton [at]Daniel.Lamb

#ROBOMERGE-AUTHOR: justin.marcus
#ROBOMERGE-SOURCE: CL 20626127 via CL 20626141 via CL 20626144 via CL 20626147
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v955-20579017)

[CL 20627099 by justin marcus in ue5-main branch]
2022-06-13 10:43:21 -04:00
mark lintott
2fdabe835a Added support for sessionlabel to UAT. -sessionlabel was not being passed through from UAT commandline to the exe commandline.
#rb joe.kirchoff
#jira none
#preflight 62a22a61415407fc4cd55b97

[CL 20581017 by mark lintott in ue5-main branch]
2022-06-09 13:53:57 -04:00
Per Larsson
e0fa4b3b40 Added UAT parameter -NoZenAutoLaunch for easier debugging of Zen server
#rb trivial
#jira none
#preflight none

[CL 20325946 by Per Larsson in ue5-main branch]
2022-05-23 09:24:09 -04:00
josh adams
381fbb5b95 - Fixed up the EditorOptional directories to have a different save vs input, since the save dir needs to be cleaned, but the input one cannot get cleaned
#rb francis.hurteau
#preflight 6286c9041e478b95c7ccaa2a

#ROBOMERGE-AUTHOR: josh.adams
#ROBOMERGE-SOURCE: CL 20289363 via CL 20289803 via CL 20289816 via CL 20289832
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v948-20297126)

[CL 20304893 by josh adams in ue5-main branch]
2022-05-20 18:49:22 -04:00
Dan Thompson
3a6321167b Packaging Reference Chunk Database - "Lossless Patch Preventer"
Can now provide reference iostore containers to reuse compressed chunks from. If a match is found on *the decompressed data*, instead of recompressing the blocks, they are read off of disk. This allows tweaks of the compressor algorithm without introducing changes as the runtime still sees the exact same data. Additionally this allows for fairly dramatic staging speedups as nvme speeds are significantly faster than high effort compressions. This is distinct from the DDC compression because:
1) DDC compression ties in the compressor version/method
2) We are explicitly interested in chunks that are deployed to end users, not merely cached for speed.

To facilitate this, several changes were made to IoStore:

FIoStoreReader now directly reads from IFileHandles* instead of routing through the GenericPlatformFile async read system, as that system is sensitive to build #defines and can result in constant file opens under load (indeed, for anything not a .pak file, every read is an open/close).

Cold file cache read speed improvements from ~140MB/s to ~1 GB/s. Hot is more.

Additionally:
    FIoStoreReader switched to UE::Tasks from taskgraph for tasks in order to facilitate task retraction during waits as the previous ReadAsync call was trivial to deadlock when called from worker threads due to its use of TFuture<>.
    FIoStoreReader::ReadCompressed now returns the compressed blocks as they were on disk - padded to AES encryption block size.

#rb fabian.giesen
#rb jeff.roberts
#preflight 627586dcf77c9c2b543d4d8b

[CL 20086673 by Dan Thompson in ue5-main branch]
2022-05-06 18:22:44 -04:00
Josh Adams
f18143aa8b - Added missing commandline option for the optional file staging directory (-optionalfilestagingdirectory=)
#rb trivial
#preflight 627423bafd59d6606e0162f0

[CL 20063141 by Josh Adams in ue5-main branch]
2022-05-05 15:36:34 -04:00
Josh Adams
defdfa230a - Added option for IoStore to write optional files (.o.ucas) to a different directory. This is used when making a a cooked editor as DLC against a client build (the client build has to make the optional editor data, but we do not want to ship the optional data with the client). The MakeCookedEditor script will then copy the files from that location into the editor's Stage directory (under Content/Paks)
#rb carl-magnus.nordin,francis.hurteau
#preflight 6273f8fd8d32cd80d8a8ecdb

[CL 20059504 by Josh Adams in ue5-main branch]
2022-05-05 12:28:59 -04:00
Francis Hurteau
c719a4680a Add commandline boilerplate to support optional cooking through UAT
#rb Matt.Peters
#jira UE-142231
#preflight none

[CL 19929815 by Francis Hurteau in ue5-main branch]
2022-04-26 17:52:04 -04:00
jonathan adamczewski
d4f03243e3 Remove various obsolete (deprecated) items in C# code
#jira none
#trivial
#rnx
#preflight 625a32bbde3638cefa4106cb

[CL 19786027 by jonathan adamczewski in ue5-main branch]
2022-04-18 11:27:53 -04:00
PJ Kack
5f6c6d5beb UAT: Add BuildCookRun support for running both a dedicated server and cotf server.
Merge RunClientWithServer() and RunStandAloneClient() functions into one RunClient() function to resolve numerous inconsistencies between them and between unattended/non-unattended mode.
Always use SC.StageTargetPlatform.RunClient() to launch clients so that the logic works on all platforms.
When either the client, dedicated server or cook server exits, then all other processes exits too.
Hitting Ctrl-c in UAT kills all processes.

ShooterGame testing on Win64, consoles and android:
BuildCookRun -project=ShooterGame -platform=Win64 -config=development -skipbuild -cook -stage -pak -deploy -run
BuildCookRun -project=ShooterGame -platform=Win64 -config=development -skipbuild -skipcook -skipstage -skipdeploy -run
BuildCookRun -project=ShooterGame -platform=Win64 -config=development -skipbuild -skipcook -skipstage -skipdeploy -run -unattended
BuildCookRun -project=ShooterGame -platform=Win64 -config=development -skipbuild -cookonthefly -stage -deploy -run
BuildCookRun -project=ShooterGame -platform=Win64 -config=development -skipbuild -cookonthefly -stage -deploy -run -unattended
BuildCookRun -project=ShooterGame -platform=Win64 -config=development -skipbuild -cookonthefly -zenstore -stage -deploy -run
BuildCookRun -project=ShooterGame -platform=Win64 -config=development -skipbuild -cookonthefly -zenstore -stage -deploy -run -unattended

ShooterGame Win64 Desktop specific testing with lan server and multiple clients:
BuildCookRun -project=ShooterGame -platform=Win64 -config=development -skipbuild -cookonthefly -zenstore -server -stage -run -map=Highrise -numclients=3
BuildCookRun -project=ShooterGame -platform=Win64 -config=development -skipbuild -cookonthefly -zenstore -server -stage -run -map=Highrise -numclients=3 -unattended

EngineTest testing on Win64 and console:
BuildCookRun -project=EngineTest -platform=Win64 -config=development -skipbuild -cook -stage -pak -deploy -run -runautomationtest=Project.System
BuildCookRun -project=EngineTest -platform=Win64 -config=development -skipbuild -cookonthefly -stage -deploy -run -runautomationtest=Project.System
BuildCookRun -project=EngineTest -platform=Win64 -config=development -skipbuild -cookonthefly -zenstore -stage -deploy -run -runautomationtest=Project.System

#jira none
#rb carlmagnus.nordin
#rnx
#preflight 624d79fdbf5b974989964f4c

[CL 19645492 by PJ Kack in ue5-main branch]
2022-04-06 08:03:43 -04:00
Catalin Dragoiu
aba8c30dbe Added support for the -trace and -tracehost parameters for BuildCookRun
#jira UE-101084
#rb Ryan.Hummer Ionut.Matasaru
#preflight 6221e6d1a00412627d36aafc

[CL 19265555 by Catalin Dragoiu in ue5-main branch]
2022-03-04 09:14:28 -05:00
josh adams
7b222e8da6 - Added NeverPackage flag to BuildCookRun which can skip steps in Staging knowing that Packaging will never happen (different than SkipPackage which assumes Packaging happened at some other point)
#rb luke.thatcher
#preflight skip

#ROBOMERGE-AUTHOR: josh.adams
#ROBOMERGE-SOURCE: CL 18800102 via CL 18826763 via CL 18826847 via CL 18826897 via CL 18835856 via CL 18836710
#ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v910-18824042)

[CL 18836905 by josh adams in ue5-main branch]
2022-02-02 18:42:06 -05:00
chris caulfield
29ccf263b4 Fix MapsToCook when multiple +-separated maps are provided to the cooker
#rb jor.kirchoff
#jira none
#preflight 61e1ef2b4b4bd12cbee803d9

#ROBOMERGE-AUTHOR: chris.caulfield
#ROBOMERGE-SOURCE: CL 18624077 in //UE5/Release-5.0/... via CL 18624109 via CL 18624120
#ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v899-18417669)

[CL 18624165 by chris caulfield in ue5-main branch]
2022-01-14 17:16:46 -05:00
joe kirchoff
ce3aa781de Fixed the initial map setting of the project launcher being ignored when also specifying maps to cook (from jamie.dale)
#jira UE-119188
[FYI] jamie.dale
#rb trivial
#preflight 61e081ce787db720a912c783

#ROBOMERGE-AUTHOR: joe.kirchoff
#ROBOMERGE-SOURCE: CL 18602768 in //UE5/Release-5.0/... via CL 18602826 via CL 18602868
#ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v899-18417669)

[CL 18602899 by joe kirchoff in ue5-main branch]
2022-01-13 15:09:04 -05:00