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
Martin Sevigny
5e46fadaee
Make the AutomationTool emit an error code when it terminates on an exception. This will result in failing the operation instead of reporting a false success. An example is when aborting for multiple instances in RunSingleInstanceThread.
...
#jira UE-183338
#rb francis.hurteau
#preflight 64397079ec219759f51d6620
[CL 25041761 by Martin Sevigny in ue5-main branch]
2023-04-14 11:50:30 -04:00
Joe Kirchoff
7749d6f625
AutomationTool: Fix resolving relative .uproject path for -ScriptsForProject
...
#rnx
#rb Josh.Adams
#jira UE-126532
#preflight 63c083600b358b97d10ad218
[CL 23670442 by Joe Kirchoff in ue5-main branch]
2023-01-12 17:19:13 -05:00
Ryan Hummer
3934ea81f0
Provided better messaging when DirectoryItem.CacheDirectories runs into duplicate keys
...
#rnx
#jira none
#rb joe.kirchoff, brandon.schaefer
#preflight none
[CL 23667501 by Ryan Hummer in ue5-main branch]
2023-01-12 14:37:47 -05:00
Tim Smith
84b619d84c
Added -NoCompileUAT as an ignored parameter to allow it to be present in command lines where no commands are present.
...
#rb josh.adams gary.yuan
#preflight 63b71c8fe26e31879b97c354
[CL 23590911 by Tim Smith in ue5-main branch]
2023-01-05 14:04:33 -05:00
adam kinge
1b9334b751
Handle macOS zombie process that can occur when Ctrl-C is pressed in a terminal or when cancelling an Xcode build.
...
#jira UE-154138
[REVIEW] [at]josh.adams [at]jack.porter
#rnx
#preflight 6351d1797261e565c4457fd7
#lockdown jack.porter
[CL 22723905 by adam kinge in ue5-main branch]
2022-10-24 09:11:38 -04:00
Ben Marsh
fe2c895552
Add build steps for static analysis of UBT and UAT, and to test project file generation.
...
#preflight 62b37e6ad76167320e3a224d
[CL 20781813 by Ben Marsh in ue5-main branch]
2022-06-22 17:12:30 -04:00
Josh Adams
fd4ec7b1d1
- Added a ctrl-c handler to AutomationTool, which helps keep zombie dotnet processes, at least on Mac, maybe Linux
...
#rb brandon.schaefer
#jira UE-153975,UE-154138
#preflight 62967428261e39f62069e31d
[CL 20443401 by Josh Adams in ue5-main branch]
2022-05-31 18:16:47 -04:00
Ben Marsh
cbb950c578
UBT: Use ILogger throughout UBT, rather than legacy EpicGames.Core.Log methods. All output going forwards should use structured logging rather than String.Format style logging.
...
#preflight 628e9dc6e746de4961f60032
[CL 20373777 by Ben Marsh in ue5-main branch]
2022-05-25 19:55:37 -04:00
Ben Marsh
06673f202c
UAT: Move logger matcher initialization into AutomationUtils, since it's not a hard dependency of AutomationTool.
...
#jira UE-153354
#preflight 6287e8208828ea88c87c54cd
[CL 20301330 by Ben Marsh in ue5-main branch]
2022-05-20 15:27:15 -04:00
Ben Marsh
cf237169dc
Undo single //UE5/Main/Engine/Source/Programs/AutomationTool/Program.cs revision 40
...
#preflight none
[CL 20300329 by Ben Marsh in ue5-main branch]
2022-05-20 14:53:32 -04:00
Ben Marsh
ec2455e9fb
UAT: Fix log event matchers not being registered at UAT startup.
...
#preflight none
#jira UE-153354
[CL 20300217 by Ben Marsh in ue5-main branch]
2022-05-20 14:49:24 -04:00
Ben Marsh
6f0dd55f41
Horde: Run event matchers inside UAT and UBT, rather than relying on Horde to do so. This is a step towards having having structured log events emitted at source, where we can make smarter decisions as to the meaning of tool output, and add additional context when parsing it.
...
#preflight 628550d8660b4a15be5a9859
[CL 20278597 by Ben Marsh in ue5-main branch]
2022-05-19 08:16:07 -04:00
PJ Kack
6b6bc48fc5
UAT: Add additional startup and BuildCookRun logging and timings
...
#jira none
#rb trivial
#rnx
#preflight 627379dda56dd762120e6e2e
[CL 20055418 by PJ Kack in ue5-main branch]
2022-05-05 03:40:01 -04:00
Tim Smith
92be35bfde
Removed temporary code that was causing UAT to always rebuild plugins.
...
#rb trivial
#rnx
#preflight 62699d0f2735a2c0ea8ef83a
[CL 19945588 by Tim Smith in ue5-main branch]
2022-04-27 16:05:00 -04:00
Tim Smith
9753bb366a
Adjustments to the script module compiler code in preperation for use by UBT.
...
#rn trivial
#rnx
#preflight 625db2a9804460ab0fd83165
[CL 19792014 by Tim Smith in ue5-main branch]
2022-04-18 15:18:21 -04:00
Tim Smith
dfb68b18b4
Moved C# project build support from UAT to EpicGames.Build. Isolated code referencing Microsoft.Build into a dll to avoid any issues calling Assembly.GetTypes(). In prior code, it would attempt to resolve the types for things using Microsoft.Build.Framework and fail to load it. By resolving that issue, any future changes to UBT that will utilize this code will not result in any build/target scripts needing to be modified if they use Assembly.GetTypes().
...
#rnx
#rb jonathan.adamczewski
#preflight 625d7777d4124345879a84a7
#preflight 625d89af6813aa38e3cff392
[CL 19786950 by Tim Smith in ue5-main branch]
2022-04-18 12:17:12 -04:00
jonathan adamczewski
c1bb6901bf
Upgrade to .NET 6.0
...
#jira UE-119846
#preflight 624cbb2ecc0872e96b0d5181
[CL 19652696 by jonathan adamczewski in ue5-main branch]
2022-04-06 14:46:50 -04:00
jonathan adamczewski
5c68d1d9ef
Revert //UE5/Main/... changelist 19531725 - return to NET Core 3.1
...
#preflight 62422fd0470aff98e946bfce
#jira UE-119846
[CL 19534572 by jonathan adamczewski in ue5-main branch]
2022-03-28 18:25:19 -04:00
jonathan adamczewski
18ac15cbb1
Upgrade to .NET 6.0
...
#jira UE-119846
#preflight 6241fc06470aff98e943c035
[CL 19531725 by jonathan adamczewski in ue5-main branch]
2022-03-28 15:30:56 -04:00
Tim Smith
76b3f0f74a
Undo //UE5/Main/Engine/Source/Programs/... changelist 19477828
...
#preflight skip
#rnx
[CL 19477910 by Tim Smith in ue5-main branch]
2022-03-23 08:30:01 -04:00
Tim Smith
40be3125a0
Moved C# project build support from UAT to EpicGames.Build. Isolated code referencing Microsoft.Build into a dll to avoid any issues calling Assembly.GetTypes(). In prior code, it would attempt to resolve the types for things using Microsoft.Build.Framework and fail to load it. By resolving that issue, any future changes to UBT that will utilize this code will not result in any build/target scripts needing to be modified if they use Assembly.GetTypes().
...
#rnx
#rb jonathan.adamczewski
#preflight 623b0e64c73745c600b8e626
[CL 19477828 by Tim Smith in ue5-main branch]
2022-03-23 08:17:23 -04:00
jonathan adamczewski
a69a2e922f
AutomationTool: More idiomatic perhaps
...
#jira none
#trivial
#preflight 61f094c1be0f0e0a621b5a0b
#ROBOMERGE-OWNER: jonathan.adamczewski
#ROBOMERGE-AUTHOR: jonathan.adamczewski
#ROBOMERGE-SOURCE: CL 18730575 in //UE5/Release-5.0/... via CL 18730582 via CL 18730716
#ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v903-18687472)
#ROBOMERGE-CONFLICT from-shelf
[CL 18730893 by jonathan adamczewski in ue5-main branch]
2022-01-25 20:02:49 -05:00
jonathan adamczewski
82d7339dea
AutomationTool: Remove error string that served only to misdirect
...
#jira none
#trivial
#preflight none
#ROBOMERGE-AUTHOR: jonathan.adamczewski
#ROBOMERGE-SOURCE: CL 18647776 in //UE5/Release-5.0/... via CL 18649279 via CL 18649652
#ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v900-18638592)
[CL 18649944 by jonathan adamczewski in ue5-main branch]
2022-01-18 17:45:21 -05:00
jonathan adamczewski
fb9901fe24
AutomationTool: Remove UE4 references
...
#jira UE-111740
#preflight none
#trivial
#ROBOMERGE-AUTHOR: jonathan.adamczewski
#ROBOMERGE-SOURCE: CL 18576039 in //UE5/Release-5.0/... via CL 18576055 via CL 18576072
#ROBOMERGE-BOT: STARSHIP (Release-Engine-Test -> Main) (v899-18417669)
[CL 18576082 by jonathan adamczewski in ue5-main branch]
2022-01-11 15:16:51 -05:00