You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add emulator process kill timeout with ADB restart and comprehensive timeout protection (dotnet#30941)
* Initial plan
* Implement emulator process kill timeout with ADB restart functionality
Co-authored-by: PureWeen <5375137+PureWeen@users.noreply.github.com>
* Add timeout protection and error handling to PrepareDevice function
- Added AdbCommandTimeoutSeconds constant (30 seconds) following existing timeout patterns
- Created SafeAdbShell helper function with timeout protection for ADB shell commands
- Created SafeAdbLogcat helper function with timeout protection for logcat operations
- Updated PrepareDevice function to use safe ADB operations with proper error handling
- Added try-catch blocks around EnsureAdbKeys, logcat setup, and property configuration
- Operations continue gracefully on non-critical failures (logcat, properties) instead of throwing
- Maintains existing functionality while preventing indefinite hangs in CI/CD environments
Co-authored-by: PureWeen <5375137+PureWeen@users.noreply.github.com>
* Add ADB server restart at 90 seconds during emulator boot wait to recover from authorization issues
Co-authored-by: PureWeen <5375137+PureWeen@users.noreply.github.com>
* Fix emulator process kill timeout mechanism to use WaitForExit instead of Task.Run
Co-authored-by: jsuarezruiz <6755973+jsuarezruiz@users.noreply.github.com>
* Fix AndroidEmulatorProcess WaitForExit compilation error by using Task.Run on WaitForExit instead of Kill
Co-authored-by: PureWeen <5375137+PureWeen@users.noreply.github.com>
* Remove timeout protection from PrepareDevice function as requested
Co-authored-by: PureWeen <5375137+PureWeen@users.noreply.github.com>
* Revert removal of timeout protection from PrepareDevice function
Co-authored-by: PureWeen <5375137+PureWeen@users.noreply.github.com>
* Remove non-android.cake formatting changes and wrap emulator Kill() operation with timeout
Co-authored-by: PureWeen <5375137+PureWeen@users.noreply.github.com>
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: PureWeen <5375137+PureWeen@users.noreply.github.com>
Co-authored-by: jsuarezruiz <6755973+jsuarezruiz@users.noreply.github.com>
0 commit comments