Skip to content

fix(ci): retain Android emulator post-timeout evidence - #142835

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

vincentkoc merged 1 commit into
mainfrom
fix/android-emulator-post-timeout-evidence

Conversation

@vincentkoc

Copy link
Copy Markdown
Member

What Problem This Solves

Resolves a diagnostic gap where the Android emulator workflow stopped at its 180-second readiness deadline without showing whether the same launched emulator became available shortly afterward.

Why This Change Was Made

The workflow now permanently latches the original timeout as failure, then observes only the owned emulator for at most 300 additional seconds. Every ADB probe shares that absolute deadline, validates the exact AVD identity, records fresh late-online and boot timestamps, and terminates only its own probe child. Latched cleanup skips potentially blocking ADB calls while still terminating the owned emulator and preserving the unconditional diagnostic artifact.

This does not increase the release readiness timeout, retry a failed run, alter release authority, change the frozen candidate, or claim that observed progress proves eventual boot success or CPU causality.

User Impact

Release operators get bounded post-timeout evidence that distinguishes a hard startup failure from an emulator that becomes ready shortly after the qualification deadline. The diagnostic remains failed in both cases, so release qualification cannot be weakened by late readiness.

Evidence

  • Red proof on the landed baseline: owner suite 61/62; the new post-deadline boundary was absent.
  • Focused executable proof: late readiness remains exit 1; unrelated AVD identity is rejected; the 300-second cap is modeled; a hanging ADB probe is terminated and joined; owned-emulator cleanup still runs.
  • Final owner suite before review: 62/62 passed.
  • Final affected regression after review repairs: 1/1 passed.
  • Static proof: actionlint, embedded Bash bash -n, repository formatter, scoped oxlint, git diff --check, and privacy scan passed.
  • P1 autoreview: initial AVD-identity and deadline-completion race findings fixed; final exact-byte review clean at 0.97 confidence.
  • LOC: workflow/tooling +184/-6; tests +222/-1. Production growth owns the bounded probe lifecycle, irreversible failure latch, same-AVD validation, and nonblocking cleanup contract.

Hosted execution remains required to capture real post-deadline emulator behavior. No Android release, Play upload, App Review, production promotion, or candidate mutation is part of this PR.

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: M maintainer Maintainer-authored PR labels Sep 9, 2026
@vincentkoc
vincentkoc marked this pull request as ready for review September 9, 2026 04:44
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. 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: needs maintainer review before merge. Reviewed September 9, 2026, 12:50 AM ET / 04:50 UTC.

ClawSweeper review

What this changes

The PR retains bounded Android emulator observations after readiness times out, preserves the failed result, and adds regression coverage for probe deadlines and cleanup.

Merge readiness

✅ Ready for maintainer review

Keep open: this provides useful diagnostic coverage absent from current main, and no blocking patch defect was found. The member-authored, maintainer-labeled PR is also protected from cleanup closure.

Priority: P2
Reviewed head: 37d4b2844647c7f31e8e890c558b058a263bfc4f

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused diagnostic extension with meaningful lifecycle regression coverage and no identified blocking defect; hosted behavior is not claimed as proven.
Proof confidence 🌊 off-meta tidepool Not applicable: The MEMBER-authored PR is exempt from the external-contributor proof gate and does not materially change authority. Its extracted workflow tests exercise synthetic ADB timeout and cleanup scenarios; the body explicitly leaves real hosted emulator observations pending.
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 does not materially change authority. Its extracted workflow tests exercise synthetic ADB timeout and cleanup scenarios; the body explicitly leaves real hosted emulator observations pending.
Evidence reviewed 7 items Introduced behavior and failure preservation: The complete workflow uses a shared absolute observation deadline, checks AVD identity before recording late readiness, returns failure after observation, and skips potentially blocking ADB cleanup calls on the latched path. Existing readiness windows and artifact upload remain intact.
Current main still lacks this coverage: The fetched main workflow immediately exits after either readiness timeout and has no post-deadline observation phase; the requested diagnostic improvement remains distinct.
Focused executable regression coverage: Inspected cases cover late readiness retaining exit 1, rejection of another AVD, observation expiration, completion at the deadline, and termination/joining of a hanging probe followed by emulator cleanup. These use synthetic ADB executables; no tests were executed during this read-only review.
Findings None None.
Security None None.

How this fits together

The manual Android diagnostic workflow starts an emulator using trusted tooling and records startup evidence for release operators. Its timeout result and uploaded artifacts help diagnose failures without granting release or publishing authority.

flowchart TD
  A[Manual diagnostic request] --> B[Validate target and trusted tooling]
  B --> C[Start owned emulator]
  C --> D{Ready within deadline?}
  D -->|Yes| E[Successful diagnostic]
  D -->|No| F[Latch failure and observe up to 300 seconds]
  F --> G[Clean up and retain failure]
  E --> H[Upload diagnostic artifacts]
  G --> H
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Tests +221, Config +178. Total +399 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 222 1 +221
Docs 0 0 0 0
Config 1 184 6 +178
Generated 0 0 0 0
Other 0 0 0 0
Total 2 406 7 +399

Review metrics

Metric Value Why it matters
Diagnostic observation budget Up to 300 additional seconds after failure; existing 180-second readiness windows unchanged The additional runner time collects evidence without extending the acceptance deadline.
Production versus test growth Workflow/tooling net +178 lines; tests net +221 lines The PR explains the growth through bounded probe lifecycle, AVD identity checks, failure preservation, and cleanup coverage.

Technical review

Best possible solution:

Keep late-startup observations bounded and clearly separate from the original readiness verdict, with cleanup and artifacts preserving the failed outcome.

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

Not applicable as a new diagnostic capability: source confirms main stops observing at readiness failure, while the PR adds a subsequent observation phase.

Is this the best way to solve the issue?

Yes. Extending the existing diagnostic owner while preserving its failure verdict is a focused solution; the regression cases exercise the important timeout and cleanup boundaries.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 6d8281b385d0.

Labels

Label changes:

  • add P2: This is a bounded improvement to release-operator diagnostics without changing application behavior or release qualification.
  • 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 does not materially change authority. Its extracted workflow tests exercise synthetic ADB timeout and cleanup scenarios; the body explicitly leaves real hosted emulator observations pending.

Label justifications:

  • P2: This is a bounded improvement to release-operator diagnostics without changing application behavior or release qualification.
  • 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 does not materially change authority. Its extracted workflow tests exercise synthetic ADB timeout and cleanup scenarios; the body explicitly leaves real hosted emulator observations pending.

Evidence

What I checked:

  • Introduced behavior and failure preservation: The complete workflow uses a shared absolute observation deadline, checks AVD identity before recording late readiness, returns failure after observation, and skips potentially blocking ADB cleanup calls on the latched path. Existing readiness windows and artifact upload remain intact. (.github/workflows/android-emulator-diagnostic.yml:196, 37d4b2844647)
  • Current main still lacks this coverage: The fetched main workflow immediately exits after either readiness timeout and has no post-deadline observation phase; the requested diagnostic improvement remains distinct. (.github/workflows/android-emulator-diagnostic.yml:275, 6d8281b385d0)
  • Focused executable regression coverage: Inspected cases cover late readiness retaining exit 1, rejection of another AVD, observation expiration, completion at the deadline, and termination/joining of a hanging probe followed by emulator cleanup. These use synthetic ADB executables; no tests were executed during this read-only review. (test/scripts/mobile-release-authority.test.ts:2072, 37d4b2844647)
  • Merged related work and proof context: fix(ci): capture Android emulator boot telemetry #142809 is verified merged and adds earlier boot telemetry, not post-timeout observation. Its discussion explicitly defers hosted evidence until trusted workflow code lands on main, explaining the existing validation pattern. (cb1aaefad26f)
  • Feature-history routing: Current-main history identifies Vincent Koc on the diagnostic creation and telemetry commits. GitHub independently verifies vincentkoc authored both merged changes. Local blame could not complete because a required historical object was unavailable, so no source-line introduction attribution is asserted. (.github/workflows/android-emulator-diagnostic.yml, cb1aaefad26f)
  • Release boundary: The diagnostic workflow is absent from the supplied latest release tag, v2026.9.3; this is subsequent repository tooling work rather than a shipped application fix. (.github/workflows/android-emulator-diagnostic.yml, 1391f7cd2d40)

Likely related people:

  • vincentkoc: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

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 0367f4d into main Sep 9, 2026
187 checks passed
@vincentkoc
vincentkoc deleted the fix/android-emulator-post-timeout-evidence branch September 9, 2026 04:59
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash.

vincentkoc added a commit to LiuwqGit/openclaw that referenced this pull request Sep 9, 2026
…1-prep

* commit 'b04a3f83adad8bd6a2ca8408e7940fc6bcbde212': (636 commits)
  docs(cli): split the doctor command reference by reader job (openclaw#142855)
  fix(ui): explain paused weekly skill reviews (openclaw#142840)
  docs(automations): describe supported schedule options (openclaw#135964)
  fix(image): close registration resources after generation (openclaw#142843)
  fix(slack): keep ack reactions independent of status reactions (openclaw#142595)
  fix(ui): avoid flashes when switching cold sessions (openclaw#134868)
  refactor(tests): share independent no-queued-reply expectations (openclaw#142845)
  perf: reduce generated media reference formatting overhead (openclaw#142836)
  fix: sessions_yield keeps long transcript history available (openclaw#137381)
  fix(music): close registration resources after generation (openclaw#142834)
  fix: update confirmation shows stale commit counts after refresh (openclaw#142837)
  fix(ci): retain Android emulator post-timeout evidence (openclaw#142835)
  fix(talk): retain final delivery across delegation waves (openclaw#142830)
  docs(gateway): run Linux system services as the state owner (openclaw#136266)
  fix(models): align static Anthropic aliases with manifest (openclaw#137376)
  test(gateway): simplify session lifecycle gates and report early rollback failures (openclaw#142833)
  refactor(ai): keep model policy parsing independent of transport host (openclaw#142804)
  refactor: simplify interactive SDK forwarding (openclaw#142824)
  fix(cli): finish pending cleanup before automatic macOS exit (openclaw#142814)
  docs(memory-lancedb): clarify enforced compatibility ranges (openclaw#142827)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: M 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