Skip to content

fix(ci): capture Android emulator boot telemetry - #142809

Merged
vincentkoc merged 1 commit into
mainfrom
fix/android-emulator-observability
Sep 9, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
fix/android-emulator-observability

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Sep 9, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

Resolves a problem where the secretless Android emulator diagnostic could prove that the fixed phone emulator stayed offline for 180 seconds, but did not retain enough bounded host, acceleration-capability, kernel, and owned-process telemetry to distinguish guest boot progress from runner-capacity or emulator-runtime failure.

Why This Change Was Made

The diagnostic remains manual, exact-SHA-bound, read-only, and candidate-inert. It adds supported verbose/kernel emulator logging, bounded accelerator-capability capture with a 10-second deadline, fixed host CPU/memory facts, and timestamped CPU/RSS samples for the exact emulator PID. None of this telemetry changes either existing 180-second readiness decision.

User Impact

Release operators get a more useful failure artifact from the next secretless phone-emulator qualification run. This change does not modify release authority, credentials, candidate bytes, signing, store destinations, App Review, or production promotion.

Evidence

  • Before: the exact diagnostic run https://github.com/openclaw/openclaw/actions/runs/34305338368 timed out waiting for one online emulator while QEMU remained alive; the retained artifact could not establish the underlying cause.
  • Red: the focused owner test failed on the missing instrumented diagnostic contract before the workflow change.
  • Green: test/scripts/mobile-release-authority.test.ts passed 62/62.
  • Executable boundary proof: nonzero emulator -accel-check status is retained without blocking startup; a hung check is terminated at the bounded deadline and recorded as timeout status 124.
  • Static proof: Actionlint, Bash syntax, Oxfmt, Oxlint, workflow parsing, privacy scan, and git diff --check passed.
  • Independent P1 autoreview: clean, confidence 0.94.
  • Delta: workflow production/tooling +60/-2; focused tests +79/-1. Production growth is the bounded telemetry and exact-PID timeout/cleanup path required to diagnose the observed failure without weakening readiness.
  • Limitation: no new emulator runtime claim is made by this PR. One fresh original secretless diagnostic is conditionally authorized only after exact-head CI and native landing; the actual hosted result remains required.

Maintainer Decision

ClawSweeper's requested hosted telemetry trace is intentionally deferred until after landing. The one-shot diagnostic must execute the exact trusted workflow from main; running a branch variant before merge would weaken that evidence identity. Parent and independent review accepted this bounded defer: merge only after exact-head CI, then run one original secretless diagnostic against the frozen candidate and stop at its first terminal result.

Punchcard-Session: calm-meadow-summit-7q

Punchcard-Session: calm-meadow-summit-7q
@vincentkoc vincentkoc self-assigned this Sep 9, 2026
@clawsweeper

clawsweeper Bot commented Sep 9, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added size: S maintainer Maintainer-authored PR labels Sep 9, 2026
@vincentkoc
vincentkoc marked this pull request as ready for review September 9, 2026 03:38
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 9, 2026
@clawsweeper

clawsweeper Bot commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 8, 2026, 11:43 PM ET / September 9, 2026, 03:43 UTC.

ClawSweeper review

What this changes

Adds host capacity facts, bounded acceleration checks, kernel logging, and emulator process samples to Android boot diagnostics, with focused regression coverage.

Merge readiness

⛔ Blocked before merge - 1 item remains

Keep open: the diagnostic gap remains on main, and this focused, maintainer-authored patch has no identified blocking defect. Hosted telemetry collection remains explicitly unverified.

Priority: P3
Reviewed head: 4d774f81368449c34ed8214418a9e95f1d3cc0fa

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused diagnostic improvement with meaningful failure-path coverage and no identified blocking defect.
Proof confidence 🌊 off-meta tidepool Not applicable: The MEMBER-authored PR is exempt from the external-contributor proof gate and changes no authority boundary; executable accelerator fixtures are supplemental, and the body explicitly defers hosted collection evidence until after landing.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The MEMBER-authored PR is exempt from the external-contributor proof gate and changes no authority boundary; executable accelerator fixtures are supplemental, and the body explicitly defers hosted collection evidence until after landing.
Evidence reviewed 7 items Introduced telemetry and preserved boundaries: Read the complete workflow: the acceleration check records failure or timeout without rejecting startup, retained acceleration output is capped at 16 KiB, and process sampling uses the launched emulator PID. Manual dispatch, read-only permissions, isolated candidate validation, readiness deadlines, and artifact retention remain unchanged.
Focused executable regression coverage: The new fixture extracts the workflow's acceleration function and supplies executable stand-ins for exit status 7 and a hung process, asserting successful diagnostic continuation and recorded timeout status 124. These are supplemental tests, not hosted emulator proof; tests were inspected but not executed during this read-only review.
Current-main necessity: Neither touched file changed between the pinned merge base and fetched main, so main retains the diagnostic without this added telemetry. The verified test merge changes only the two introduced paths.
Findings None None.
Security None None.

How this fits together

The manual Android diagnostic workflow validates a selected commit and starts a fixed phone emulator using trusted tooling. It retains startup evidence for release operators without building or publishing an app.

flowchart LR
  A[Manual request and commit SHA] --> B[Validate target and tooling parity]
  B --> C[Trusted Android toolchain]
  C --> D[Collect host and acceleration facts]
  D --> E[Start and observe phone emulator]
  E --> F[Readiness result]
  E --> G[Diagnostic artifact]
  F --> G
Loading

Before merge

  • Resolve merge risk (P1) - The supplied evidence does not yet show the new telemetry artifacts from the actual hosted macOS emulator run.
Agent review details

Security

None.

PR surface

Tests +78, Config +58. Total +136 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 79 1 +78
Docs 0 0 0 0
Config 1 60 2 +58
Generated 0 0 0 0
Other 0 0 0 0
Total 2 139 3 +136

Review metrics

Metric Value Why it matters
Production versus test growth Production/tooling net +58 lines; tests net +78 lines The body justifies production growth with bounded telemetry collection and timeout handling, accompanied by executable failure-path coverage.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Keep instrumentation in the existing diagnostic owner, preserving readiness decisions and execution isolation while making failed boots explainable.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best possible solution:

Keep instrumentation in the existing diagnostic owner, preserving readiness decisions and execution isolation while making failed boots explainable.

Do we have a high-confidence way to reproduce the issue?

Not applicable as a runtime bug fix: this patch improves observability, and the linked failed diagnostic run establishes the motivating context without proving the emulator's underlying failure.

Is this the best way to solve the issue?

Yes: extending the existing secretless diagnostic is a focused solution, and nonzero acceleration results remain evidence rather than a new readiness gate.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 3f0f98ef7efe.

Labels

Label changes:

  • add P3: This improves a manual diagnostic artifact without changing application behavior or release readiness decisions.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The MEMBER-authored PR is exempt from the external-contributor proof gate and changes no authority boundary; executable accelerator fixtures are supplemental, and the body explicitly defers hosted collection evidence until after landing.

Label justifications:

  • P3: This improves a manual diagnostic artifact without changing application behavior or release readiness decisions.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The MEMBER-authored PR is exempt from the external-contributor proof gate and changes no authority boundary; executable accelerator fixtures are supplemental, and the body explicitly defers hosted collection evidence until after landing.

Evidence

What I checked:

  • Introduced telemetry and preserved boundaries: Read the complete workflow: the acceleration check records failure or timeout without rejecting startup, retained acceleration output is capped at 16 KiB, and process sampling uses the launched emulator PID. Manual dispatch, read-only permissions, isolated candidate validation, readiness deadlines, and artifact retention remain unchanged. (.github/workflows/android-emulator-diagnostic.yml:145, 4d774f813684)
  • Focused executable regression coverage: The new fixture extracts the workflow's acceleration function and supplies executable stand-ins for exit status 7 and a hung process, asserting successful diagnostic continuation and recorded timeout status 124. These are supplemental tests, not hosted emulator proof; tests were inspected but not executed during this read-only review. (test/scripts/mobile-release-authority.test.ts:2028, 4d774f813684)
  • Current-main necessity: Neither touched file changed between the pinned merge base and fetched main, so main retains the diagnostic without this added telemetry. The verified test merge changes only the two introduced paths. (.github/workflows/android-emulator-diagnostic.yml, 3f0f98ef7efe)
  • Existing diagnostic provenance: GitHub confirms fix(ci): add Android emulator diagnostic #142780 merged the original diagnostic. Its implementation deliberately separates candidate validation from trusted emulator execution; this PR preserves that decision. (.github/workflows/android-emulator-diagnostic.yml:89, f882bfdc8674)
  • Observed predecessor run: The linked pre-change run passed target validation and toolchain setup, failed the phone emulator diagnostic, and successfully uploaded its artifact. This supports the operational context but does not establish after-change telemetry behavior. (f882bfdc8674)
  • Historical routing: Blame identifies Vincent Koc's merged diagnostic commit on the unchanged runner and readiness configuration. Its raw recorded parent lacks the workflow path, confirming this is prior merged work rather than attribution from the proposed branch. (.github/workflows/android-emulator-diagnostic.yml:95, f882bfdc8674)

Likely related people:

  • Vincent Koc: Raw commit f882bfd adds .github/workflows/android-emulator-diagnostic.yml:95 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: f882bfdc8674; files: .github/workflows/android-emulator-diagnostic.yml)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

@vincentkoc
vincentkoc merged commit cb1aaef into main Sep 9, 2026
192 checks passed
@vincentkoc
vincentkoc deleted the fix/android-emulator-observability branch September 9, 2026 04:03
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer Maintainer-authored PR P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: S status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant