PhoneVR icon indicating copy to clipboard operation
PhoneVR copied to clipboard

Implement gvr/noGvr variants

Open nift4 opened this issue 1 year ago • 12 comments

nift4 avatar Aug 08 '24 18:08 nift4

/ok-to-test sha=781f74b

ShootingKing-AM avatar Aug 08 '24 21:08 ShootingKing-AM

📷 Screenshots of tests:

📱gvr: emulator-5554 - 11

🔧 ALVRActivityTest_saveDeviceScreenBitmap

🔧 ALVRActivityTest_saveDeviceScreenBitmap_LookingDown

🔧 ALVRActivityTest_saveDeviceScreenBitmap_LookingFrontDown

🔧 ALVRActivityTest_saveDeviceScreenBitmap_Popup

🔧 InitActivityTest_saveDeviceScreenBitmap

🔧 MainActivityTest_saveDeviceScreenBitmap

🔧 SettingsActivityTest_saveDeviceScreenBitmap

🔧 view-op-error-1

📱noGvr: emulator-5554 - 11

🔧 ALVRActivityTest_saveDeviceScreenBitmap

🔧 ALVRActivityTest_saveDeviceScreenBitmap_LookingDown

🔧 ALVRActivityTest_saveDeviceScreenBitmap_LookingFrontDown

🔧 ALVRActivityTest_saveDeviceScreenBitmap_Popup

🔧 InitActivityTest_saveDeviceScreenBitmap

🔧 view-op-error-1

For commit c2dd013a3bf13776f740347c540f87708945e1cd

github-actions[bot] avatar Aug 08 '24 22:08 github-actions[bot]

Maybe we just should drop legacy server/gvr support?

kotleni avatar Aug 25 '24 11:08 kotleni

that can be done easier when variants are separated like this (just need to delete some folders and change very few lines in build script) in a follow-up commit :P

nift4 avatar Aug 25 '24 11:08 nift4

To clarify, this PR also includes fixes for building with newer Android Gradle Plugin (including moving from synthetic binding to view binding) and removing implicit dependencies on resources by GVR SDK, so it's easier to just merge this and drop support afterwards as I already did the untangling work.

nift4 avatar Aug 25 '24 11:08 nift4

To clarify, this PR also includes fixes for building with newer Android Gradle Plugin (including moving from synthetic binding to view binding) and removing implicit dependencies on resources by GVR SDK, so it's easier to just merge this and drop support afterwards as I already did the untangling work.

Can you look at the CI erros and try fixing them ? There seems to some errors

ShootingKing-AM avatar Aug 26 '24 01:08 ShootingKing-AM

/ok-to-test sha=5aca661

ShootingKing-AM avatar Aug 29 '24 10:08 ShootingKing-AM

/ok-to-test sha=5425808

ShootingKing-AM avatar Aug 31 '24 08:08 ShootingKing-AM

@nift4 Ping me when you can E2E Test to run, i.e after you are done with all your changes

ShootingKing-AM avatar Aug 31 '24 08:08 ShootingKing-AM

@ShootingKing-AM I'm pretty confident it'll work now

nift4 avatar Aug 31 '24 10:08 nift4

AlvrActivityTest is flaky, I wonder why, but I don't think it's my fault

nift4 avatar Aug 31 '24 13:08 nift4

/ok-to-test sha=88efd6a

ShootingKing-AM avatar Sep 01 '24 05:09 ShootingKing-AM

@ShootingKing-AM The tests all succeeded and the comment text + images was successfully generated, it just wasn't posted due to some permission error, can you check why or merge?

nift4 avatar Sep 01 '24 17:09 nift4

The E2E test run is https://github.com/alvr-org/PhoneVR/actions/runs/10651245975/job/29523607769. Ok-to-run lauches a seprate github action run the E2E test to circumvent some github limitations (Goto PhoneVR Repo->Actions->CI and the e2e tests are with the name ok-to-test-command). The error is in the attachments of Action Summary.

The error is given there. Am guessing, since we are using the same apk name, and same emulator instance, you need to remove the already installed gvr apk before trying to install and test noGvr apk onto emulator.

Exception thrown during onBeforeAll invocation of plugin AndroidTestApkInstallerPlugin: ErrorName: UNKNOWN
NameSpace: DdmlibAndroidDeviceController
ErrorCode: 1
ErrorType: TEST
Message: Failed to install split APK(s): [/Users/runner/work/PhoneVR/PhoneVR/code/mobile/android/PhoneVR/app/build/outputs/apk/noGvr/debug/PhoneVR-v2.0.0-beta-noGvr-debug.apk]
Failed to install split APK(s): [/Users/runner/work/PhoneVR/PhoneVR/code/mobile/android/PhoneVR/app/build/outputs/apk/noGvr/debug/PhoneVR-v2.0.0-beta-noGvr-debug.apk]
'package install-create -r -t -S 107735948' returns error 'Unknown failure: cmd: Can't find service: package'
com.android.ddmlib.InstallException: 'package install-create -r -t -S 107735948' returns error 'Unknown failure: cmd: Can't find service: package'
	at com.android.ddmlib.SplitApkInstallerBase.createMultiInstallSession(SplitApkInstallerBase.java:124)
	at com.android.ddmlib.SplitApkInstaller.install(SplitApkInstaller.java:68)
	at com.android.ddmlib.IDeviceSharedImpl.installPackages(IDeviceSharedImpl.java:395)
	at com.android.ddmlib.internal.DeviceImpl.lambda$installPackages$36(DeviceImpl.java:1492)
	at com.android.ddmlib.internal.DeviceImpl.logRun3(DeviceImpl.java:1834)
	at com.android.ddmlib.internal.DeviceImpl.installPackages(DeviceImpl.java:1489)
	at com.android.ddmlib.internal.DeviceImpl.lambda$installPackages$37(DeviceImpl.java:1504)
	at com.android.ddmlib.internal.DeviceImpl.logRun3(DeviceImpl.java:1834)
	at com.android.ddmlib.internal.DeviceImpl.installPackages(DeviceImpl.java:1500)
	at com.android.tools.utp.plugins.deviceprovider.ddmlib.DdmlibAndroidDevice.installPackages(DdmlibAndroidDevice.kt:74)
	at com.android.tools.utp.plugins.deviceprovider.ddmlib.DdmlibAndroidDeviceController$executeAsync$deferred$1.invokeSuspend(DdmlibAndroidDeviceController.kt:254)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
	at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:570)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:749)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:677)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:664)

ShootingKing-AM avatar Sep 02 '24 17:09 ShootingKing-AM

service package not available would mean the emulator hasn't finished booting or has crashed, I believe. It's also weird cuz tests succeeded in my physical device and in GitHub CI of my fork

nift4 avatar Sep 02 '24 21:09 nift4

/ok-to-test sha=49ea617

ShootingKing-AM avatar Sep 03 '24 03:09 ShootingKing-AM

This is kinda weird i just merged my #375 there were no permission issues there Oo There seems to be 2 issues here one with CI actions one with noGvr

ShootingKing-AM avatar Sep 03 '24 04:09 ShootingKing-AM

/ok-to-test sha=49ea617

ShootingKing-AM avatar Sep 04 '24 15:09 ShootingKing-AM

This is kinda weird i just merged my #375 there were no permission issues there Oo There seems to be 2 issues here one with CI actions one with noGvr

CI Issues are resolved in #375 and https://github.com/EnricoMi/publish-unit-test-result-action/issues/620

ShootingKing-AM avatar Sep 04 '24 17:09 ShootingKing-AM

/ok-to-test sha=c9a7408

ShootingKing-AM avatar Sep 08 '24 09:09 ShootingKing-AM

/ok-to-test sha=c066368

ShootingKing-AM avatar Sep 08 '24 16:09 ShootingKing-AM

/ok-to-test sha=c066368

ShootingKing-AM avatar Sep 08 '24 17:09 ShootingKing-AM

/ok-to-test sha=0256abf

ShootingKing-AM avatar Sep 08 '24 18:09 ShootingKing-AM

/ok-to-test sha=7cec1f7

ShootingKing-AM avatar Sep 08 '24 20:09 ShootingKing-AM

/ok-to-test sha=7cec1f7

ShootingKing-AM avatar Sep 10 '24 02:09 ShootingKing-AM

/ok-to-test sha=c2dd013

ShootingKing-AM avatar Sep 10 '24 05:09 ShootingKing-AM

release action tested in #384

ShootingKing-AM avatar Sep 10 '24 10:09 ShootingKing-AM

Applause for this huge and complex work is definitely warranted 🎉 Hopefully you keep contributing more to the code base 😄

ShootingKing-AM avatar Sep 10 '24 12:09 ShootingKing-AM