Skip to content

test(android): Home/Recents restoration assertion flakes in the smoke lane #4990

Open

Description

@thymikee

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.

Activity

  1. apex-sentinel-staging commented on Nov 22, 2026

    @apex-sentinel-staging

    Apex Sentinel · Issue review

    Suggested label: bug

    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.

    Required sections

    • Steps to reproduce (missing)
    • Expected and actual behavior (missing)
    • Version or environment (missing)
  2. added
    bug
    on Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions