Repository navigation
feat(bin): read Android emulator availability in the fleet snapshot - #321
Merged
Merged
Conversation
…nown Keep only emulator-* serials in the AVD name check, render a physical adb device as its own row, and render an unresolved running emulator once as avd=unknown. When adb is missing or failing, a listed AVD is unknown with the adb reason instead of stopped. Add tests for all three.
sKeLe100
force-pushed
the
fm/fleet-snapshot-android-reader
branch
from
November 23, 2026 06:57
017dac1 to
b4ea242
Compare
sKeLe100
added a commit
that referenced
this pull request
Nov 23, 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.
Intent
We should be filing any tasks in relation to the gaps mentioned this session as priority 0 on pc01 and within resources
Context: the fleet inventory (bin/fm-resource-snapshot.sh, behind /fleet) lists
android,no reader for Android emulator availabilityunderunavailable. Phone checks are run by workers on the Android emulator (PC01 emulator recorded in data/hosts.md), so the fleet view cannot currently say whether an emulator is available for that work.What Changed
bin/fm-resource-snapshot.shgains a read-only Android reader that probesemulator -list-avds,adb devices, andgetprop sys.boot_completedon the local host and on PC02 over a bounded ssh batch. It emits a newandroid[]section (machine, avd, serial, state, boot_completed, detail, read_utc). Listed AVDs with no running emulator show asstopped. The state isunknownwhen adb is missing or failing, or when another emulator's AVD name can't be resolved.nonemeans both probes read cleanly and found nothing. A missing adb or emulator is reported as anunavailable[]row with its reason, and timeouts are reported as bound hits instead of zero devices. NewFM_RESOURCE_ANDROID_FIXTURE,FM_RESOURCE_ADB,FM_RESOURCE_EMULATOR, and timeout overrides are the test seams..agents/skills/fleet/SKILL.mdnow lists Android emulator availability among the snapshot's sources and tells/fleethow to render it. It names each host's AVDs, serials, adb state, and boot completion, and states a missing tool with its reason.tests/fm-resource-snapshot.test.shadds about 300 lines of coverage for the Android reader.bin/fm-test-run.shanddocs/fm-test-portable-shards.mdrefresh thetests/fm-self-repo-role.test.shserial timing hint (7363 ms to 11958 ms).Risk Assessment
✅ Low: The change adds a bounded, read-only Android emulator reader with fixture and PC02 paths. I traced the unresolved-serial, missing-adb, offline-serial and non-emulator-serial cases and found no wrong-output path. The other edits are a docs line and a timing hint.
Testing
The configured baseline command had already passed. I then ran
tests/fm-resource-snapshot.test.shin full, which drives the realbin/fm-resource-snapshot.shagainst fakeadb/emulatorbinaries, a fixture, and a fake ssh boundary for PC02. All Android scenarios passed. The one skipped test is the opt-in live fleet check. Real adb and emulator are not installed here, so the fakes stand in for them and no real emulator was exercised. The changed surface is CLI/JSON/TOON output with no UI, so no screenshots apply.Evidence: resource snapshot test transcript
Source: resource snapshot test transcript
Pipeline
Updates from git push no-mistakes
✅ **Intent** - passed
✅ No issues found.
✅ **Rebase** - passed
✅ No issues found.
✅ **Review** - passed
✅ No issues found.
✅ **Test** - passed
✅ No issues found.
bin/fm-test-run.sh --changed --exclude-family real-herdr-gated --exclude-quarantined --pc02-if-idlebash tests/fm-resource-snapshot.test.sh(all tests passed; the live opt-in check was skipped)✅ **Document** - passed
✅ No issues found.
✅ **Lint** - passed
✅ No issues found.
✅ **Push** - passed
✅ No issues found.