Repository navigation
test: relaunch an Android test app that never initialised once - #2901
Draft
bitsandfoxes wants to merge 1 commit into
Draft
bitsandfoxes wants to merge 1 commit into
bitsandfoxes wants to merge 1 commit into
Conversation
bitsandfoxes
force-pushed
the
ci/android-launch-recovery
branch
from
October 25, 2026 11:14
1418b1b to
898ef9c
Compare
bitsandfoxes
force-pushed
the
ci/license-retry-jitter
branch
from
October 26, 2026 04:18
4e5baed to
216bb02
Compare
bitsandfoxes
force-pushed
the
ci/android-launch-recovery
branch
from
October 26, 2026 05:05
898ef9c to
84e7754
Compare
This was referenced Oct 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The Android integration tests now relaunch the app once when a launch hangs before the Unity engine starts, instead of failing every context after it.
Every so often, an Android launch hangs: the process is up, but the Unity engine never logs a line (sometimes not even past
JNI_OnLoad). It waits out app-runner's 300 s run timeout, and so far the process stayed alive afterwards, so every lateram start -Wbrought the hung app back to the front (same PID) instead of starting it again. That turned one hang into 3–4 red contexts. In the last 30 days, 7 Run Android jobs failed this way, 6 of them with 3 or more failed contexts (e.g. 118708786184:App PID: 4056for all five launches, 0/81 passed, 25 of the step's 30 minutes spent waiting). It hit the emulator legs; Redroid goes through the sameAdbProviderpath. In all 7 jobs, none of the hung launches logged aUnityline, and every launch that did initialise logged one.How it works now:
Invoke-TestActionruns each launch, includingcrash-send, throughInvoke-App. On Android, when the output has neither anEVENT_CAPTURED:nor aUnitylog line, it prints that launch's output in a collapsed group, warns with::warning::Android app never initialised, relaunching (1/1)and launches once more.Stacked on #2900. The app-runner pin from #2899 moves to the commit with the force-stop.
CI evidence: run 40185846696, with a throwaway commit (since dropped) that made the first launch wait for a debugger, so it never initialised. In all 4 Run Android jobs, the first launch (Message Capture) waited out the timeout, then logged
::warning::Android app never initialised, relaunching (1/1). The relaunch came up under a new PID (e.g. 121151142372:4326→6421) and each job passed 77/77 (4 skipped).Rebased onto #2907: run 40272431963 is green on the first attempt.
🤖 Generated with Claude Code