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
{{ message }}
Repository navigation
test(android): Home/Recents restoration assertion flakes in the smoke lane #4990
The Android smoke lane (test/integration/smoke-android-emulator.test.ts, tier smoke) intermittently fails at assertHomeAndRecentsRestoration (test/integration/android-emulator-e2e/live-automation-scenario.ts:283). After the Home and Recents steps, the foreground read still reports the fixture app (com.callstack.agentdevicelab / MainActivity), and the notStrictEqual assertion fails.
Occurrences on 0.22 PRs, all in changes that do not touch Android or the system-surface path:
Other 0.22 PRs pass the same job in the same period, so the failure is intermittent, not a broken base.
Needed
Find out why the foreground read can still see the fixture after Home. Possible causes: the read happens before the launcher takes focus, or a Recents transition is still running. Fix it at the owner: the scenario's wait condition, or the foreground observation. Do not add a sleep or a retry around the assertion.
Include the run's foreground observations and timings in the diagnosis.
The issue reports an intermittent Android smoke test failure where assertHomeAndRecentsRestoration still observes the fixture app as foreground after Home/Recents, with failing jobs and passing reruns on unrelated PRs. It identifies the test and assertion and asks for a root-cause fix in the wait condition or foreground observation.
Activity
apex-sentinel-staging commentedon Nov 22, 2026
Apex Sentinel · Issue review
Suggested label:
bugThe issue reports an intermittent Android smoke test failure where
assertHomeAndRecentsRestorationstill observes the fixture app as foreground after Home/Recents, with failing jobs and passing reruns on unrelated PRs. It identifies the test and assertion and asks for a root-cause fix in the wait condition or foreground observation.Required sections
test(android-e2e): wait for the foreground to leave the fixture after…
test(android-e2e): wait for the foreground to leave the fixture after…