Change theme
Help
Press space for more information.
Show links for this issue (Shortcut: i, l)
Copy issue ID
Previous Issue (Shortcut: k)
Next Issue (Shortcut: j)
Sign in to use full features.
Vote: I am impacted
Notification menu
Refresh (Shortcut: Shift+r)
Go home (Shortcut: u)
Pending code changes (auto-populated)
[ID: 558956]
View issue level access limits(Press Alt + Right arrow for more information)
Attachment actions
Unintended behavior
View staffing
Description
Hi!
In our project we generate baseline and startup profiles through GMDs running on GitHub Actions. Those recently started to fail. I discovered that those tests are running fine if I launch them on a local device or an emulator, however if I run them with a GMD they become extremely flaky. I am able to consistently reproduce the issue and can see those tests pass live.
Our tests are pretty simple - first part based on XML works fine, however Compose part (scrolling a LazyColumn plus tapping an element on it) is the one failing the most. When dumping screenshots it looks like everything is there, dumping view hierarchy results in either views missing or just a simple empty
FrameLayout
being present.Noticed that opening
Recents App
and coming back to it helps out a bit, which seemed odd:In the meantime, I got a tip that there is an existing UiAutomator issue and workaround for it located in here:https://github.com/mobile-dev-inc/maestro/pull/1078/files
It seems that calling this function before trying to find any
UiObject2
drastically increases chances of success, which makes me think that there is an ongoing caching problem:Setup:
Test results - did run 10 iterations of each and counted
UiObject2
related crashes that would happen if not caught:Tested GMDs: