Skip to content

Fix the Android emulator gate and update every workflow - #79

Merged
JoshuaPeddle merged 1 commit into
masterfrom
fix-android-emulator-gate
Aug 30, 2026
Merged

JoshuaPeddle merged 1 commit into
masterfrom
fix-android-emulator-gate

Conversation

@JoshuaPeddle

Copy link
Copy Markdown
Owner

The Android smoke test has been red on every run since master last built. It is not a
flake and it is not the code.

Proof: I re-ran the Android job from master commit 30951244265 — untouched code that
passed on 2026-08-04 — and it failed today with the identical
Timeout waiting for emulator to boot. The runner image moved from
ubuntu24/20260720.247 to ubuntu24/20260823.283 in between.

What was wrong

The emulator started, printed Found systemPath and its core-count warning, then died
without ever registering with adb. It was being given 2 cores, 2GB RAM and a 2GB disk,
with a further -partition-size 2048 on top. The older, smaller system images tolerated
that; the current ones do not.

It now gets what the runner actually has (4 cores, 4GB RAM, 8GB disk, no redundant
partition override), and aosp_atd replaces google_atd — the app never used Google APIs,
so this is a lighter image and a faster boot.

The reclaim step that existed for the emulator's benefit now reports free space either
side, so the next failure can be told apart at a glance: no disk, or a real crash.

The pin nobody could read

ReactiveCircus/android-emulator-runner was pinned to
4c44018e59b437e86cdfc41da381398f93ed8808, which does not resolve to any commit in that
repository
GET /commits/{sha} returns 422. Actions could still fetch it, but nobody
could audit what was running. Now pinned to v2.38.0 by SHA with the version in a comment.

Everything else was stale too

Every action in the repo was one to four major versions behind:

Action Was Now
actions/checkout v4 v7
actions/setup-dotnet v4 v6
actions/setup-java v3 v6
actions/upload-artifact v4 v7
actions/download-artifact v4 v8
android-actions/setup-android v3 v4
docker/setup-buildx-action v2 v4
docker/login-action v3 v4
docker/build-push-action v3 v7
softprops/action-gh-release v2 v3 (SHA-pinned)

I checked the two risky bumps against their action.yml rather than assuming:
download-artifact@v8 still has merge-multiple, and setup-android@v4's inputs are all
optional with workable defaults.

Also updated the workflow the template ships to a user's game — a generated project
should not start life four majors behind.

Added concurrency groups (cancel superseded PR runs, never cancel a release) and
per-workflow least-privilege permissions.

Verification

All five workflow files parse. The real check is this PR's own CI run: if the Android job
goes green, the gate is fixed, since that is the same job on the same runners that has
failed three times in a row today.

https://claude.ai/code/session_01NkneJGya3dNr2huxsgfuja

The Android smoke test has been failing on every run since master last built.
It is not a flake and it is not the code: re-running master's own 2026-08-04
build today fails identically, on the same commit that passed then. The runner
image moved from ubuntu24/20260720.247 to 20260823.283 in between.

The emulator process started, printed "Found systemPath" and its core-count
warning, then died without ever registering with adb. It was being given 2 cores,
2GB of RAM and a 2GB disk with a further -partition-size 2048 on top — a starved
configuration that the older, smaller system images tolerated and the current
ones do not. It now gets what the runner actually has, and the reclaim step that
used to run for the emulator's benefit reports free space either side, so a
future failure to boot can be told apart from a failure to run.

Switching from google_atd to aosp_atd drops the Google APIs the app never used,
for a lighter image and a faster boot.

The emulator action was pinned to a SHA that no longer resolves to any commit in
its repository, so what was actually running could not be audited. It is now
pinned to v2.38.0 by SHA, with the version in a comment.

Every other action across all four workflows — and the one the template ships to
a user's game — was one to four major versions behind. All are current.
Concurrency groups cancel superseded PR runs but never a release, and each
workflow declares its own least-privilege permissions.

Claude-Session: https://claude.ai/code/session_01NkneJGya3dNr2huxsgfuja
@JoshuaPeddle
JoshuaPeddle merged commit 1f4b4da into master Aug 30, 2026
3 checks passed
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