Commit Graph

71 Commits

Author SHA1 Message Date
jerome delattre
34ea30d6d2 Use logcat to get Android log at runtime + fix missing obb files copy (re-insert the code block removed previously and use Android SDK v29 obb folder)
#jira UE-208540
#rnx

#rb brendan.lienau, Chris.Babcock, sean.sweeney, sebastian.lewicki

[CL 32324210 by jerome delattre in ue5-main branch]
2024-03-19 09:55:44 -04:00
brendan lienau
66591afe53 [Gauntlet] Implements new launch flow functions for TargetDeviceAndroid
#jira UE-201388
#rb Chris.Cossiah, Chris.Babcock

[CL 32062972 by brendan lienau in ue5-main branch]
2024-03-06 14:41:46 -05:00
brendan lienau
4db3c0ec18 [Gauntlet] Mark Gauntlet builds with whether or not they have the capability to copy additional files. UnrealSession will only copy files if the build supports it
#rb Andrew.Grant

[CL 32032840 by brendan lienau in ue5-main branch]
2024-03-05 15:15:35 -05:00
brendan lienau
671a6f3b63 [Gauntlet] Re-order TargetDeviceAndroid members/defintions
#jira UE-201388

[CL 31648546 by brendan lienau in ue5-main branch]
2024-02-20 12:10:44 -05:00
brendan lienau
c8e1e58227 [Gauntlet] Update InstallApplication function signature for new ITargetDevice flow by renaming it to InstallBuild
[CL 30485450 by brendan lienau in ue5-main branch]
2024-01-08 13:21:15 -05:00
brendan lienau
92f98b8dbd [Gauntlet] ITargetDevice cleanup/install functions
This CL stubs out the following ITargetDevice functions which will be implemented for each platform one by one
- FullClean
- CleanArtifacts
- InstallApplication (new signature)
- CreateAppInstall
- CopyAdditionalFiles

Once stubs have been implemented, UnrealSession.LaunchSession will optionally be able to execute a new flow using these modularized pieces
After further validations are made, the legacy implementation of LaunchSession will be deprecated and the new flow will become the standard

#jira UE-201403
#rb marcelo.gomes

[CL 30326785 by brendan lienau in ue5-main branch]
2023-12-14 13:58:12 -05:00
josh engebretson
ff9612e63d Gauntlet: Android platform use AppConfig for fullclean instead of looking in globals params
#rnx

[CL 29693779 by josh engebretson in ue5-main branch]
2023-11-13 15:51:40 -05:00
marcelo gomes
9ad17edc97 Implement FullClean method in TargetDevice for all platforms
#rba

[CL 28680451 by marcelo gomes in ue5-main branch]
2023-10-11 16:18:18 -04:00
marcelo gomes
9af9cb85fa Accepting SkipInstall, SkipDeploy and SkipCopy arguments to skip build installation.
Uses AutoParam functions to set an AppConfig flag.
This change affects all platforms that in some form implement the "skip install" behavior.

[CL 28470800 by marcelo gomes in ue5-main branch]
2023-10-04 15:38:42 -04:00
brendan lienau
b026015910 [Gauntlet] Stubs out installation flow changes to enable gradual platform changes
- Adds ITargetDevice.ClearSavedDirectory
- Adds ITargetDevice.CopyAppConfigFiles

Platforms that have these functions implemented change per pass implementation:

Adjusts per pass from FROM
Pass 1
 - InstallApplication (including clearing device cache and copying additional files)
 - Run the app

Pass 2 and beyond
- Run the app

TO
Pass 1
- ClearSavedDirectory
- InstallApplication
- CopyAppConfigFiles
- Run the app

Pass 2 and beyond
- ClearSavedDirectory
- CopyAppConfigFiles
- Run the app

#rb andrew.grant, adolf.stary

[CL 28005887 by brendan lienau in ue5-main branch]
2023-09-19 14:51:53 -04:00
joe barnes
caddcf8527 Add PreferenceOrder for IBuild. Give preference to packaged builds.
#rb heather.howell

[CL 27361356 by joe barnes in ue5-main branch]
2023-08-24 18:15:03 -04:00
gary yuan
5b2c084606 [Gauntlet] Fix Android device match regex to match emulated devices
#rb jerome.delattre
[REVIEW]

[CL 27031218 by gary yuan in ue5-main branch]
2023-08-11 12:05:33 -04:00
jerome delattre
51f6f270aa Force process output to be logged as verbose log level so it does not trigger the event parser
#rnx
#rb Eric.McDaniel

[CL 26217902 by jerome delattre in ue5-main branch]
2023-06-23 16:24:18 -04:00
nicolas mercier
f7a1503920 Added support for Build Flavor to Gauntlet, which allows to use different variants of a same configuration (i.e Test vanilla, Test Asan, etc...) for any role (client, server, etc)
Defaults to empty (vanilla)
If the specified role-configuration-flavor cannot be found, Gauntlet returns an error and does not use another flavor as a fallback.
Flavor can be specified on the command line (-<role>flavor=<flavor>, e.g. -clientflavor=clang -serverflavor=asan)

#rb mickael.gilabert
#tests on multiple combination of builds/platforms/tests, including ReplayRun, EditorTests, EngineTests, ASan PS5.

[CL 24924648 by nicolas mercier in ue5-main branch]
2023-04-05 04:08:23 -04:00
william ewen
d9ea36780f TargetDeviceAndroid: Adding extra checks so that the Timeout flow doesn't start extra adb instances we don't need after the device has already been disposed of
#rb j.baumgartner

[CL 24472107 by william ewen in ue5-main branch]
2023-03-01 17:21:27 -05:00
william ewen
8dd9116c04 Adding a force-close for ADB to ensure we don't leave processes running and unintentionally clog up system resources
#rb j.baumgartner

[CL 24412861 by william ewen in ue5-main branch]
2023-02-24 19:04:24 -05:00
Jerome Delattre
ecd49d9d5c Add mkdir for DeviceExternalFilesSavedPath before deploying on Android
#jira none
#preflight 63ea99a1e92f139c5159813e
#rb Chris.Babcock

[CL 24187360 by Jerome Delattre in ue5-main branch]
2023-02-13 15:38:18 -05:00
william ewen
aff1a9899b Device Cleanup
#rb Brendan.Lineau

[CL 23961031 by william ewen in ue5-main branch]
2023-02-01 19:26:55 -05:00
jerome delattre
8be6ee8ddb Improve Android device handling:
* Suspend log parsing when power on or off device
* Retry on disconnection when copy via adb push fails for disconnection
* Let DoAutoRenew() trap exceptions when renewing and deleting device

#jira UE-170029
#preflight 637801daf514e1ded9d705d1
#rb Chris.Constantinescu, Brendan.Lienau

[CL 23315216 by jerome delattre in ue5-main branch]
2022-11-29 14:37:28 -05:00
jerome delattre
3c4ffdb8f4 Use Structured Logging in Gauntlet
#jira UE-163471
#preflight 63700c1e0c74adb48bb9a5c9
#rb J.Baumgartner, Erik.Knapik, Chris.Constantinescu, Josh.Engebretson

[CL 23112357 by jerome delattre in ue5-main branch]
2022-11-12 18:42:11 -05:00
UnrealBot
73409369c0 Branch snapshot for CL 21319338
[CL 21319338 in ue5-main branch]
2022-08-10 16:03:37 +00:00
j baumgartner
617cc5161b [Automation] Use SrcFile as the regex match to ensure we copy to the correct destination path on Android
#jira UE-151756
#rb chris.babcock
#tests preflight replay run and ensure it copies the build and launches on android devices.
#preflight 62b0d2488e03312ad8367092

[CL 20743755 by j baumgartner in ue5-main branch]
2022-06-20 16:22:46 -04:00
j baumgartner
2e062281c0 [Automation] Fix for correct dest path for ADB
#rb chris.babcock
#jira UE-151756
#tests Ran ReplayRun preflight and the job no longer had issues with build copy
#preflight 6297b1f6e809e387be23529b

[CL 20456799 by j baumgartner in ue5-main branch]
2022-06-01 15:06:45 -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
william ewen
10c5859f32 Gauntlet Android: Making sure that we read the right Metadata field names (ie not prefixed with the package name)
#rb J.Baumgartner

#ROBOMERGE-AUTHOR: william.ewen
#ROBOMERGE-SOURCE: CL 19119634 via CL 19119681 via CL 19119730 via CL 19123251
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v921-19075845)

[CL 19154352 by william ewen in ue5-main branch]
2022-02-25 15:12:58 -05:00