Commit Graph

958 Commits

Author SHA1 Message Date
mattias jansson
eba1214cf5 Avoid waiting for std streams timeout in consecutive calls if WaitForExit is called multiple times on the process result object
#rb Yuriy.ODonnell

[CL 30695273 by mattias jansson in ue5-main branch]
2024-01-18 15:46:51 -05:00
will brown
cd95976e6b UAT - Extending ICustomStageCopyHandler to support overriding of the plugin manifest file creation. Allows game projects to have control over how plugin descriptors are added to the manifest
#rb Josh.Adams, robert.millar

[CL 30668433 by will brown in ue5-main branch]
2024-01-17 16:09:07 -05:00
josh adams
980ffe3ce7 - Allow for code to set ProjectParams.UnrealExe (not used in Main, but this restores functionality that was removed)
#rb josh.adams

[CL 30661384 by josh adams in ue5-main branch]
2024-01-17 12:15:06 -05:00
josh adams
8de5dde4df - Added support for UAT to cook with a specific project's editor .exe for projects that use a Unique BuildEnvironment (this will cook with the game's editor, so it will use the game's uniquely compiled engine modules (useful for per-project SDKs that have different targetplatform dlls)
- The target receipt already listed the proper exe to run, taking unique/shared into account, so this change delayed-looks-up the path from the receipt on first use (like when running the editor to cook)
#rb david.harvey

[CL 30658383 by josh adams in ue5-main branch]
2024-01-17 10:07:42 -05:00
mattias jansson
08e098801d Add command line option to control stdout/stderr read timeout in child processes of AutomationTool. Needed for workaround in Wine where stderr is not always properly closed, causing a minute delay on some operations. Patching Wine is cumbersome at this point, and this command line option introduces a workaround while maintaining current behaviour by default.
Tested by running AutomationTool under Wine using Linux and noticing a one minute delay as process exit is waiting for stderr to close. Then re-running the test with -WaitForStdStreams=100 and verifying the exit happens within 100ms and no output is lost.

#rb Ben.Marsh

[CL 30648254 by mattias jansson in ue5-main branch]
2024-01-16 17:48:35 -05:00
sebastian schoner
a7c5f5f909 Allow to skip -fileopenlog for cooks
The file open log is a facility that automatically keeps a log of all files the process has opened and their order. This is rather expensive as it (a) also tracks failed attempts to open files and (b) it maintains a large table in memory, storing which files have already been opened (so every file is only logged once). This table can easily grow into the tens of megabytes; even on an empty project I see this taking 60MB by itself. Making this optional allows us to skip this step for UEFN cloud cooks: in these cases we're throwing that log file away anyway.

#rb rob.perren

[CL 30344591 by sebastian schoner in ue5-main branch]
2023-12-15 04:22:42 -05:00
joe kirchoff
8e674c1c47 Update System.Drawing.Common to 4.7.3
#rnx

[CL 30279376 by joe kirchoff in ue5-main branch]
2023-12-12 17:25:50 -05:00
will brown
3a3e27c70e AutomationTool changes to support game projects overriding how to copy files during staging. InternalUtils.SafeCopyFile now takes an optional delegate to call when copying files. A CustomStageCopyHandler can be implemented to supply the copy operation. This is useful for transforming files during staging.
#rb Josh.Adams

[CL 30192577 by will brown in ue5-main branch]
2023-12-07 16:35:45 -05:00
joshua shlemmer
7902c4cd98 reusable singleton httpclient as per MS guidance for .net5+
updates PDB telemetry task to use new client

[REVIEW] [at]Gary.Yuan, [at]Eric.Knapik

#rb Eric.Knapik

[CL 30122489 by joshua shlemmer in ue5-main branch]
2023-12-05 12:18:26 -05:00
joe kirchoff
3b999f8958 AutomationTool: Check for dotnet msbuild only when visual studio msbuild is not available on windows
#rnx

[CL 30105200 by joe kirchoff in ue5-main branch]
2023-12-04 20:21:02 -05:00
joe kirchoff
66277acc2a AutomationTool: Remove obsolete ParallelExecutor
#rnx
#rb Ryan.Hummer

[CL 30089190 by joe kirchoff in ue5-main branch]
2023-12-04 13:43:10 -05:00
joe kirchoff
d588504468 [Backout] - CL30061307
[FYI] Joe.Kirchoff
Original CL Desc
-----------------------------------------------------------------
AutomationTool: Check for dotnet instead of always relying on an installed visual studio

#rnx

[CL 30088082 by joe kirchoff in ue5-main branch]
2023-12-04 13:02:02 -05:00
joe kirchoff
eaaeb691d7 AutomationTool: Check for dotnet instead of always relying on an installed visual studio
#rnx

[CL 30061318 by joe kirchoff in ue5-main branch]
2023-12-01 19:22:00 -05:00
gary yuan
25d1c6b9bb Add ParamKeyValueDelimiter field to ParamHelpAttribute to be used with flags that use alternative strings to separate the key value pairs of arguments. For example, timeout /t 10
#rb Eric.Knapik

[CL 29950673 by gary yuan in ue5-main branch]
2023-11-27 18:38:01 -05:00
wojciech krywult
e178b6db03 Automation: Source indexing: Fixed source indexing working incorrectly for branches using the 'import' functionality on P4.
On Windows the code assumed that all source files come from the game's branch, which may not be true when importing parts of other branches. Modified the code to query the locally synced files using 'p4 have' which returns a list of correct local - depot mappings. Minor but related fixes on other platforms.

#rb David.Harvey

[CL 29784146 by wojciech krywult in ue5-main branch]
2023-11-16 13:36:31 -05:00
per larsson
5d4e6f8552 IAS - added UAT option -Upload=<args> for uploading ondemand content to S3 compatible endpoint
Use -Upload=LocalZen to upload to local Zen server

#rb Paul.Chipchase

[CL 29777954 by per larsson in ue5-main branch]
2023-11-16 10:37:28 -05:00
josh adams
e94ead8457 - Replaced System.Environment.MachineName (and System.Net.Dns.GetHostName()) with Unreal.MachineName, since Environment.MachineName is capped at 15 characters, and not every machine name is that short. Uses System.Net.Dns.GetHostName() internally unless is throws an exception, then it falls back to Env.MachineName
#rb adam.kinge, joe.kirchoff

[CL 29712082 by josh adams in ue5-main branch]
2023-11-14 09:40:24 -05:00
josh engebretson
5036eb1867 Gauntlet: Support recovery with a new device when using a device reservation block, make it so don't need to specify fullclean/skipinstall when running in a block vs individually
#rnx
#rb trivial

[CL 29693518 by josh engebretson in ue5-main branch]
2023-11-13 15:44:47 -05:00
josh adams
7c3ccfd8b8 - Only apply UE_RELATIVE_BASE_DIR if it exists (ie has not been staged to a differnet dir structure)
- SubmitTool now will set the projectdir to the Restricted location only if not-staged
- Disabled some settings in SubmitTool to reduce unused staged files (dlls, etc)
- Disabled VULKAN_HAS_DEBUGGING_ENABLED when IS_PROGRAM, and no longer stage all the VkLayers when staging a Program (helps save over 20mb from standalone programs on Windows)
- No longer force ShaderFormats to true when building a program that is TargetPlatform enabled
#rb j.baumgartner

[CL 29527715 by josh adams in ue5-main branch]
2023-11-07 14:04:01 -05:00
david harvey
a2124892b5 Added a helper function to resolve the UNC share path for a mapped network drive
#jira UE-198716
#rnx
#rb Josh.Adams

[CL 29229449 by david harvey in ue5-main branch]
2023-10-30 07:15:32 -04:00
josh adams
976eced673 - Fixed uncooking of maps after recent fix for .ini files
#rb francis.hurteau
#jira UE-198593

[CL 29096546 by josh adams in ue5-main branch]
2023-10-25 14:27:23 -04:00
ben marsh
93ffbc126f Horde: Make all DDC warnings systemic.
#jira UE-180177

[CL 28856083 by ben marsh in ue5-main branch]
2023-10-17 17:31:08 -04:00
ben marsh
a93fe81feb Match multi-line shader compilation errors as log events.
#jira

[CL 28718432 by ben marsh in ue5-main branch]
2023-10-12 13:54:33 -04:00
josh adams
08bfa6ba5f - Fixed an issue with moving remapped files from UFS to NonUFS when making cooked editor, where it was using UnmakeStagedFileReference unnecessarily, and getting it wrong when a file was remapped
- Removed UnmakeStagedFileReference
#rb bernard.lambert

[CL 28325981 by josh adams in ue5-main branch]
2023-09-28 15:23:02 -04:00
leon huang
083d45ac4d Updated P4Utils to also support adds and deletes on a list of files to avoid blowing the command line.
#rnx
#jira: none
#rb: Joe.Kirchoff
#test: Have some shelved C# scripts that use the functions and behavior seems to be the same using both the Add() function that takes a list of files vs taking a concatenated string of all the files.

[CL 28296795 by leon huang in ue5-main branch]
2023-09-27 18:02:54 -04:00