Skip to content

Preserve the requested resident launch across asynchronous Android completions - #2404

Draft
lalalune wants to merge 4 commits into
developfrom
codex/develop-resident-lifecycle-epochs
Draft

lalalune wants to merge 4 commits into
developfrom
codex/develop-resident-lifecycle-epochs

Conversation

@lalalune

@lalalune lalalune commented Dec 4, 2026 •

Copy link
Copy Markdown
Collaborator

Why

Keep the native resident race repair that unblocks downloadable launcher and Pixel releases on the development line. The same two Java files were present on both branches. The main resident job built the launcher, then stopped before uploading it when the local agent reported a live state immediately after an explicit stop. The same suite passed in Android foundation on the same commit. Resident failure · Foundation job

Change

  • Publish the desired native agent state, epoch and failure details together. The worker accepts configuration, failure, readiness and delayed retries only for the current launch.
  • Track the child process epoch independently. Cleanup and Cloud handoff retire the channel belonging to that launch. A replacement launch takes over the predecessor that was serving when its owner requested the handoff.
  • Extend the existing Robolectric lifecycle journey with a held Android asset read. Stop the owner, optionally start its successor, then deliver the original unavailable asset and check the state and epoch reported to the owner.
  • Exercise the actual channel policy across an automatic retry. It can replace the captured Cloud predecessor and refuses a newer Cloud epoch opened independently before local readiness. This case exercises channel ownership without launching a native Node subprocess.

Verification

The original hosted resident suite failed at the synchronous stop assertion. Replaying on its source with a held Android asset read reproduced the exact owner-visible error: the runner reported failed after stop(). Android Gradle reported 1 failed test of 131. The corrected source passed all 131 with zero ignored, including stop, immediate restart, admitted Cloud handoff on retry and refusal of an intervening Cloud owner. Its debug, release and instrumentation APK packaging also passed. The APKs are CI build artifacts. Original replay and Gradle report · Corrected Gradle report · Corrected Android build

The two repaired files match the release candidate in main PR #2401 byte for byte.

@lalalune
lalalune requested a deployment to turbo-cache-read December 4, 2026 20:42 — with GitHub Actions In progress
@lalalune
lalalune requested a deployment to turbo-cache-read December 4, 2026 20:42 — with GitHub Actions In progress

This branch is being deployed

1 in progress deployment
turbo-cache-read — d25b599f Deployed Dec 4, 2026 by lalalune via verify #1633
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant