Commit Graph

19757 Commits

Author SHA1 Message Date
Josh Engebretson
22bdfb2ac1 Horde: Use color preferences for agent view status icons
#jira none
#rnx
#skipci

[CL 26927736 by Josh Engebretson in ue5-main branch]
2023-08-08 15:47:54 -04:00
Ben Marsh
ee1532d7f7 Horde: Add functionality to the Horde tray app which will disable the agent when a workstation is active.
[CL 26922450 by Ben Marsh in ue5-main branch]
2023-08-08 13:29:31 -04:00
tyler staples
342b522b5f PerfReportTool - Fix a crash when reading partial csvs (just the end so we can read metadata).
#rnx
[FYI] ben.woodhouse

[CL 26922403 by tyler staples in ue5-main branch]
2023-08-08 13:28:43 -04:00
leon huang
721ed16c42 Unreal Build Tool:
Update PluginDescriptor to have parity with FPluginDescriptor in terms of handling custom JSON fields. The order in which the original fields are written to disk is preserved.
When saving the PluginDescriptor to disk, the same order is followed and any new entries are added to the end of the plugin file.
Note: PluginDescriptor.Save and PluginDescriptor.Save2 will exist concurrently for now. There are still parts of UBT that use PluginDescriptor.Write and the refactor to create a unified Save function will come later as a lot of testing still needs to be done.
JsonObject:
- Introduced AddOrSetFieldValue() methods overloaded on value types to add/set fields in JsonObject.
- Changed the underlying data structure of JsonObject from Dictionary<string,Object?> to OrderedDictionary to guarantee that order of all .uplugin fields (default and custom) are preserved
- Made the JsonObject constructor that takes an OrderedDictionary private to ensure type safety of values passed to JsonObject
- Introduced ToJsonString() for JsonObject that serializes the JsonObject to match the formatting of .uplugin
IMPORTANT: The ToJsonString() method uses the JavaScriptEncoder.UnsafeRelaxedJsonEscaping encoder for Utf8JsonWriter.
This allows +,<,>,&,` etc characters to be written properly for .uplugins. As per MS docs, with this encoding, none of the contents should be written to HTML or a script.
- Introduced JsonObjectTests that unit tested JsonObject to ensure previous behavior was maintained.
- Ensured that keys for the JsonObject are processed in a case insensitive and culture independent way.

PluginDescriptor
- Added a JsonObject field that acts as the cache of all fields that were read from a file or parsed from a json string.
- Cached JsonObject records the order of all fields that were read and captures custom fields in the .uplugin
- Introduced Save2(), the new save algorithm that writes all fields (default and custom) to disk.
- Deleted the private default constructor because it didn't seem to be used anywhere.
- Introduced PluginDescriptorTests to ensure previous behavior is maintained. In particular when dealing with a .uplugin with only default fields, results of Save() and Save2() are the same.

Descriptor Files:
- Introduced ToJsonObject() methods to replace the previous JsonWriter patterns of writing the descriptor data.
- Introduced the UpdateJsonObject pattern which mimics the old WriteArray pattern of writing data to a JsonWriter.

#rb: Mark.Winter, Joe.Kirchoff
#jira: none
#test: Developed this in a TDD style with unit tests for all the major functions. Also reviewed output of created .uplugins and diffed them.

[CL 26920712 by leon huang in ue5-main branch]
2023-08-08 12:52:41 -04:00
chris constantinescu
199373a78d UBT new plugin test - generate solution doesn't include create new target
#rb Jerome.Delattre, Eric.Day
#jira UE-192402

[CL 26919864 by chris constantinescu in ue5-main branch]
2023-08-08 12:26:25 -04:00
Joakim Lindqvist
f8aeedda0f Unreal Cloud DDC - Limit the number of server timings returned in the server timing header to avoid generating very large headers for calls that do a lot of operations.
[CL 26914114 by Joakim Lindqvist in ue5-main branch]
2023-08-08 08:40:36 -04:00
david harvey
bdb4199eeb Remove unnecessary WindowsHWrapper.h & MinWindows.h include - both files will be automatically included by AllowWindowsPlatformTypes.h
#jira UE-152863
#rnx
#rb Josh.Adams

[CL 26912096 by david harvey in ue5-main branch]
2023-08-08 05:50:53 -04:00
dmytro ivanov
a73d0e1f9f Enable support for non-4k virtual page sizes on Android, part 1
#jira UE-192126
#rb Chris.Babcock

[CL 26911522 by dmytro ivanov in ue5-main branch]
2023-08-08 04:17:39 -04:00
chris babcock
d43d1225fe Support resizeability for foldable devices / multiscreen
#jira UE-168578
#android
[REVIEW] [at]Jack.Porter
#rb Jack.Porter

[CL 26910173 by chris babcock in ue5-main branch]
2023-08-07 23:01:55 -04:00
sebastien lussier
fc658d89a3 WorldPartition - WorldPartitionBuilder.Automation.cs: Test if SubmitTags is null before accessing
#rb trivial

[CL 26909917 by sebastien lussier in ue5-main branch]
2023-08-07 22:38:45 -04:00
andrew grant
8168aa1717 Change UBT limiting of actions based on memory to use total ram on Mac instead of free ram.
This addresses issues with CPU resources on Mac going under utilized on systems where total RAM is only 2-3x the number of cores (e.g 8c/16GB, 10c/32GB) and the user has applications running (UE, XCode, browsers) that are occupying RAM.

Historically this check limited actions based on free memory to ensure action processes weren't forced to use swap, but there's strong evidence that limiting based on total system memory and relying on the OS to swap out other processes to make room is fine. That said only Mac has been extensively tested here in this scenario (and tends to have faster disk performance than other platforms). So for now we'll change Mac and leave Windows/Linux using the old behavior

Tests -

* Ran on an M1 8c/16GB Mac with Xcode & UE open and compared core utilization before (5) to after this change (8)
* Loaded up a bucket-load of apps, browser tabs, and a running game and verified engine built successfully 2x with no compiler OOMs

#jira UE-192238
#rb swarm
#swarm [at]Joe.Kirchoff [at]Zack.Neyland

[CL 26906094 by andrew grant in ue5-main branch]
2023-08-07 19:49:26 -04:00
marc audy
434a1b9e47 Remove circular reference entries that are no longer accurate post CL# 25899269
#jira
#rnx
[FYI] Bryan.Sefcik

[CL 26903173 by marc audy in ue5-main branch]
2023-08-07 18:43:44 -04:00
dmytro ivanov
2536e616e1 Update cmake to 3.22.1
#jira UE-192126
#rb Chris.Babcock

[CL 26894364 by dmytro ivanov in ue5-main branch]
2023-08-07 14:56:20 -04:00
marc audy
014705d82d Add missing IoHash dependency to IncludeTool
[CODEREVIEW] Joe.Kirchoff
#rnx
#jira

[CL 26891235 by marc audy in ue5-main branch]
2023-08-07 13:55:36 -04:00
andrew grant
725db830a1 Fixes regression where BenchmarkBuild script would not reliably measure build performance.
The fix is to restore the <= 5.1 behavior of UBT where the MaxParallelActions argument specifies the maximum number of actions to execute in parallel, not a cap on UBTs heuristic-based selection.

This change also modifies BenchmarkBuild so it will default to the available processor count if no -cores argument is specified. This ensures the behavior of repeated runs will be deterministic as UBT may select different values if the system free memory changes

#jira UE-192236
#rb swarm
[REVIEW] [at]Joe.Kirchoff
#tests Ran UBT / BenchmarkBuild with arguments that forces the number of actions higher than the locally available core count

[CL 26889927 by andrew grant in ue5-main branch]
2023-08-07 13:35:03 -04:00
Ben Marsh
4c41157226 Horde: Add a 'paused' state for agents, which cancels all current leases and prevents the agent taking on work.
[CL 26889347 by Ben Marsh in ue5-main branch]
2023-08-07 13:24:27 -04:00
james singer
431f42b4d8 Add 'cmdline' test to Linux TestPAL to aid in catching differences between how other platforms parse command line arguments
#rb zack.neyland, robert.seiver
#rnx

[CL 26889135 by james singer in ue5-main branch]
2023-08-07 13:18:02 -04:00
eric day
b99261a589 Update IncludeTool to ignore namespace in StateGraphFwd.h
[CL 26884356 by eric day in ue5-main branch]
2023-08-07 11:30:11 -04:00
johan berg
a6d6caa97f No master fix for UnrealVirtualizationTool
#jira UE-192221
#rb paul.chipchase

[CL 26883694 by johan berg in ue5-main branch]
2023-08-07 11:14:23 -04:00
carl bystrom
3d07725cbd Horde: Make a distinction between passwords and ticket for Perforce cluster credentials
When password is set for a service account, a Perforce login needs to be made. But in case of a ticket that's not necessary (and will not be accepted by login).

[CL 26883041 by carl bystrom in ue5-main branch]
2023-08-07 11:00:36 -04:00
Ben Marsh
beae760641 UnrealVS: Allow installing for Visual Studio 2022 on ARM64.
Also upgrade all NuGet packages (required for Arm64 support).

[CL 26881023 by Ben Marsh in ue5-main branch]
2023-08-07 09:17:40 -04:00
justin marcus
557b02454e Add UseDetailedInstallSizes to generate size metadata even if UseChunkDBs is false. UseDetailedInstallSizes defaults to true.
[REVIEW] [at]Eric.Knapik [at]Thomas.Ross

[CL 26856550 by justin marcus in ue5-main branch]
2023-08-04 15:11:18 -04:00
henrik karlsson
97a4015f60 [UBT]
* Added actions first produced item directory path as part of sorting for scheduling. This groups modules together nicely which will benefit when running things remotely where remotes takes batches of actions at the time meaning there is a higher chance each remote helper will need to download fewer variations of pch files

#rb  joe.kirchoff

[CL 26856192 by henrik karlsson in ue5-main branch]
2023-08-04 15:04:09 -04:00
brendan lienau
299c0598be [Gauntlet] Adds UnrealRoleConfiguration feature
IUnrealRoleConfigurations are a type that let you modularize functionality for any role in a gauntlet test. It's primarily designed to generate command line arguments, but can do anything that's desired to the target Role.
IUnrealRoleConfigurations supply two interface functions

-ApplyConfigToRole - Core implementation of the configuration, this is the "doing"
-VerifyRoleConfig - Verification implementation. This gives you a chance to verify the "Apply" step had the desired result.

#rb Clayton.Langford

[CL 26855812 by brendan lienau in ue5-main branch]
2023-08-04 14:57:58 -04:00
bryan sefcik
ca12a1a2e0 Cleaned up the project generator API by passing a struct of commonly used arguments. This makes it easier for us to add/remove arguments.
#rb joe.kirchoff
#jira

[CL 26854215 by bryan sefcik in ue5-main branch]
2023-08-04 14:18:11 -04:00