Skip to content

Android smoke: plain close fails with 'com.android.settings process remained running after close' since #4881 #4901

Closed

Description

@thymikee

Purpose

Since #4881 (merged 2026-11-21, 0525c45), a plain close closes the session app and fails when the app does not exit. The Android emulator smoke replay test/integration/replays/android/emulator/01-settings.ad now fails intermittently at that step, and the failure is not retried:

⨯ 01-settings.ad
  failed at: Android app com.android.settings process remained running after close

Seen three times in about 10 minutes on unrelated PR branches: runs 44913451859 and 44913878501 (#4897, an iOS-only change) and 44913308426 (refactor/0.22-limrun-provider-plugin). Main passed once at 721adbc. Any PR can fail this lane.

Required behavior

  • Find why the Settings process is still present after the close fence (for example a system restart of com.android.settings, a fence that checks too early, or a pid read that catches a new process).
  • Fix it at the owner of the Android app-close fence, using typed evidence (process identity, not just "a process with that name exists"). Do not add retries or longer sleeps as the fix, and do not revert fix(close): close the session app when close omits the app #4881's behavior.
  • A device-free regression for the identified cause, and the smoke replay green across several CI runs.

Activity

  1. added
    bug
    in-progress
    on Nov 21, 2026
  2. apex-sentinel-staging commented on Nov 21, 2026

    @apex-sentinel-staging

    Apex Sentinel · Issue review

    Suggested label: bug

    Reports a concrete regression after #​4881 where the Android smoke replay intermittently fails with 'com.android.settings process remained running after close', including failing runs and a clear owner area to investigate.

    Required sections

    • Steps to reproduce (missing)
    • Expected and actual behavior (missing)
    • Version or environment (missing)
  3. removed
    in-progress
    on Nov 21, 2026
  4. added a commit that references this issue on Nov 21, 2026
    b656532
  5. added a commit that references this issue on Nov 21, 2026
    ffef4b7
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

    bugready-for-agent

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions