Skip to content

test(android): drain speech queue before Wear abort assertion - #172252

Merged
RomneyDa merged 1 commit into
mainfrom
fix/wear-abort-queue-fixture-20261014
Oct 14, 2026
Merged

RomneyDa merged 1 commit into
mainfrom
fix/wear-abort-queue-fixture-20261014

Conversation

@RomneyDa

@RomneyDa RomneyDa commented Oct 14, 2026 •

Copy link
Copy Markdown
Member

Wear speech stopping now runs on a background queue. The abort flow test clicks Abort and immediately checks the TTS shadow, so it can fail before that queue processes the stop. Main CI run 38581484814 failed this assertion at line 1970; the native recovery PR encountered the same unchanged fixture failure.

Drain the fixture’s existing UI and speech queues after the click. The abort RPC gate remains unresolved, so the assertion still proves that playback stops before the RPC outcome. Preserve the no-op, failed, confirmed, foreign-run, and subsequent-reply assertions.

Validation:

  • git diff --check passed.
  • Fresh independent P0–P2 review passed with complete speaker/UI/fixture/sibling source context (scoped-clean, confidence 0.97).
  • Exact-head ordinary CI run38586826127 Wear job115939132164 passed. Its JUnit artifact records all103 WearChatEventFlowTest cases passing, zero skipped/failures/errors, suite34.62s; the corrected appOwnAbortFollowsConfirmedOutcomeRatherThanTheRequest passed1.167s. The Wear unit-test Gradle command passed2m11s; Wear lint passed1m31s. Android ktlint and both packaged crypto jobs passed. Required aggregate CI remains pending; no landing claimed.
  • Existing test only; one queue drain added, with no new timers or test cases. Fresh ClawSweeper reviewed exactfff6 with zero findings and no before-merge requests.

@RomneyDa

Copy link
Copy Markdown
Member Author

@clawsweeper review

@clawsweeper

clawsweeper Bot commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@openclaw-barnacle openclaw-barnacle Bot added app: android App: android app: wearos App: wearos labels Oct 14, 2026
@RomneyDa
RomneyDa marked this pull request as ready for review October 14, 2026 15:09
@clawsweeper

clawsweeper Bot commented Oct 14, 2026

Copy link
Copy Markdown
Contributor

ClawSweeper reviews are opt-in for maintainers. If a review is required, finish the work and validation first, then comment @clawsweeper review. Please avoid repeated requests while a review is queued or running; agents should not request reviews automatically.

@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 Oct 14, 2026
@clawsweeper

clawsweeper Bot commented Oct 14, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR drains the existing UI and speech queues before asserting that Abort stops playback.

Example: Abort is clicked while “Existing speech” is playing and its RPC response is held.

  • Before: The test can check playback before the background stop executes.
  • After: The test drains queued work and checks that playback stopped before releasing the RPC response.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A useful, minimal fixture repair with no identified defect; candidate Android execution remains unverified.
Proof confidence 🌊 off-meta tidepool Not applicable: This maintainer-authored PR changes fixture synchronization only; it makes no new shipped-runtime behavior claim.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Test only · Worth it: Yes · Fix scope: Complete
User problem: Wear validation can fail before a correctly queued speech stop executes.
Reason: The maintainer-authored direction is established, and the minimal correction preserves the intended observable contract.

Merge readiness

✅ Ready for maintainer review

Keep open: this maintainer-authored PR makes a focused fixture correction while preserving the Abort outcome checks; no introduced defect was found.

Priority: P3
Reviewed head: fff6b49359c42911d4a191f7bac753ba2549e146

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: Candidate execution of the changed Robolectric test is not yet shown; a shipped-app demonstration is unnecessary for this test-only correction.
Agent review details

How this fits together

The Wear Compose action requests speech cancellation and a remote Abort; the Robolectric fixture observes playback and reply state while controlling the remote response.

flowchart LR
  A[Abort action] --> B[Wear speaker queue]
  B --> C[Android text to speech]
  A --> D[Wear ViewModel]
  D --> E[Held Abort response]
  F[Fixture queue drain] --> B
  F --> G[Playback assertion]
Loading

Technical review

Best possible solution:

Use the existing queue drain while retaining the unresolved RPC gate and all outcome assertions.

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

Source establishes that clicking Abort queues speech stopping while the old assertion reads playback immediately; no tests were executed during this read-only review.

Is this the best way to solve the issue?

Reusing the fixture's existing drain matches the asynchronous speaker contract without retries, sleeps, weakened outcome checks, or production changes.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 86154880b058.

Provenance checked

  • Abort playback assertion keeps the original intent (a758b36: The merged outcome fix distinguishes explicit playback stopping from confirmed remote cancellation and preserves later reply feedback.)
  • Background speech and fixture synchronization keeps the original intent (9dfaff2: Speech operations moved to one background queue to keep blocked TTS calls off the UI thread.)

Testing

Proof path: none.

Security

None.

Evidence

What I checked:

Likely related people:

  • RoboClaw: Raw commit a758b36 adds apps/android/wear/src/test/java/ai/openclaw/wear/WearChatEventFlowTest.kt:1938 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: a758b363a7e6; files: apps/android/wear/src/test/java/ai/openclaw/wear/WearChatEventFlowTest.kt)

PR surface

Tests +1. Total +1 across 1 file. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 2 1 +1
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 1 2 1 +1

Labels

Label changes:

  • add P3: This is a narrow test-fixture correction with no production behavior change.
  • 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.

Label justifications:

  • P3: This is a narrow test-fixture correction with no production behavior change.
  • 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.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed October 14, 2026, 11:13 AM ET / 15:13 UTC.

@RomneyDa
RomneyDa merged commit f23f435 into main Oct 14, 2026
153 of 154 checks passed
@RomneyDa
RomneyDa deleted the fix/wear-abort-queue-fixture-20261014 branch October 14, 2026 15:44
@RomneyDa

Copy link
Copy Markdown
Member Author

Merged via squash.

RomneyDa added a commit that referenced this pull request Oct 14, 2026
…1508)

* fix(macos): join Doctor repair before completing bundled recovery

* fix(macos): retain service environment during bundled recovery

* fix(macos): retain Doctor child custody during bundled recovery

* test(macos): prove bundled recovery in an app host

* test(macos): require owned stop before recovery fixtures

* test(macos): drain recovery before restoring fixture state

* test(macos): validate ordinary bundled recovery and relaunch in CI

* fix(macos): preserve lazy Doctor result and literal proof filters

* refactor(cli): extract Doctor startup admission

* fix(e2e): accept settled modern Gateway readiness

* fix(macos): localize Gateway recovery ownership errors

* test(e2e): align fixtures with modern Gateway readiness

* fix(macos): align recovery app-host test ownership

* fix(i18n): leave native generated locales to refresh owner

* test(macos): seed missing plugin peer for recovery proof

* fix(state): restore database reader typecheck

Complete the engine-neutral handle cutover for the pending approval and due-approval readers. Keep compressed transcript navigation queries explicitly SQLite-only rather than inheriting the engine-neutral cache default.

Fixes the three core TypeScript errors introduced by 1edc42c. Core typecheck, 39 focused transcript/approval tests, targeted lint and format pass. Independent review found no P0/P1 issues.

Co-authored-by: steipete <[email protected]>
(cherry picked from commit 920ab44)

* test(macos): expose recovery wait diagnostics and repair CI fixtures

* test(macos): match actual accessibility text values in recovery proof

* fix(macos): read checkpointed native WAL state during recovery

* fix(macos): preserve Gateway recovery failure diagnostics

* test(macos): type recovery diagnostic cases before macro expansion

* test(macos): expose unexpected recovery refusal diagnostics

* fix(macos): defer persistence during owned recovery

* test(macos): keep bundled recovery setup in its app profile

* fix(macos): recognize healthy protected bundled service identity

* test(android): drain speech queue before Wear abort assertion (#172252)

---------

Co-authored-by: steipete <[email protected]>
RomneyDa added a commit that referenced this pull request Oct 14, 2026
…1508)

* fix(macos): join Doctor repair before completing bundled recovery

* fix(macos): retain service environment during bundled recovery

* fix(macos): retain Doctor child custody during bundled recovery

* test(macos): prove bundled recovery in an app host

* test(macos): require owned stop before recovery fixtures

* test(macos): drain recovery before restoring fixture state

* test(macos): validate ordinary bundled recovery and relaunch in CI

* fix(macos): preserve lazy Doctor result and literal proof filters

* refactor(cli): extract Doctor startup admission

* fix(e2e): accept settled modern Gateway readiness

* fix(macos): localize Gateway recovery ownership errors

* test(e2e): align fixtures with modern Gateway readiness

* fix(macos): align recovery app-host test ownership

* fix(i18n): leave native generated locales to refresh owner

* test(macos): seed missing plugin peer for recovery proof

* fix(state): restore database reader typecheck

Complete the engine-neutral handle cutover for the pending approval and due-approval readers. Keep compressed transcript navigation queries explicitly SQLite-only rather than inheriting the engine-neutral cache default.

Fixes the three core TypeScript errors introduced by 1edc42c. Core typecheck, 39 focused transcript/approval tests, targeted lint and format pass. Independent review found no P0/P1 issues.

Co-authored-by: steipete <[email protected]>
(cherry picked from commit 920ab44)

* test(macos): expose recovery wait diagnostics and repair CI fixtures

* test(macos): match actual accessibility text values in recovery proof

* fix(macos): read checkpointed native WAL state during recovery

* fix(macos): preserve Gateway recovery failure diagnostics

* test(macos): type recovery diagnostic cases before macro expansion

* test(macos): expose unexpected recovery refusal diagnostics

* fix(macos): defer persistence during owned recovery

* test(macos): keep bundled recovery setup in its app profile

* fix(macos): recognize healthy protected bundled service identity

* test(android): drain speech queue before Wear abort assertion (#172252)

---------

Co-authored-by: steipete <[email protected]>
(cherry picked from commit 98e49a9)

Backport note: release/2026.10.5 lacks main's #167459 receipt-checkpoint
CAS store (completeCoreRepair(receipt:owner:), persistCheckpoint) and the
PostUpdate currentBundledRuntimeIsReady helper, so this is a semantic port.
PostUpdate keeps the release's guarded markGatewayUpdateIncomplete and
settles bundled preparation through the release's versioned
completeCoreRepair(currentVersion:owner:) for the dispatched receipt's
version; main's matchesBundledRuntime readiness hunk is dropped because the
release has no such caller (the shared matcher still serves service
custody and runtime-pin support). The bundled recovery test adds `try` for
the release's throwing recordCoreUpdateDispatch. Post-install Doctor
result IPC tests keep the release's full case table (no
deferredInspectionCheckIds) and run each case over file and stdout. The
e2e readiness table drops main's "http server listening" row because the
release's ready-log pattern does not include that marker. Release has no
@openclaw/proc-safe dependency, so scripts/test-macos-native.mts checks
retired test Gateway PIDs with a local ESRCH probe instead of
readProcessIdentity. CI workflow, docs, native SQLite VFS, Doctor stdout
bridge, and hosting-change sources apply unchanged; the release's
custody/admission, heap, backup-warning and service-ownership repairs are
untouched.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 15, 2026
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 15, 2026
…nclaw#171508)

* fix(macos): join Doctor repair before completing bundled recovery

* fix(macos): retain service environment during bundled recovery

* fix(macos): retain Doctor child custody during bundled recovery

* test(macos): prove bundled recovery in an app host

* test(macos): require owned stop before recovery fixtures

* test(macos): drain recovery before restoring fixture state

* test(macos): validate ordinary bundled recovery and relaunch in CI

* fix(macos): preserve lazy Doctor result and literal proof filters

* refactor(cli): extract Doctor startup admission

* fix(e2e): accept settled modern Gateway readiness

* fix(macos): localize Gateway recovery ownership errors

* test(e2e): align fixtures with modern Gateway readiness

* fix(macos): align recovery app-host test ownership

* fix(i18n): leave native generated locales to refresh owner

* test(macos): seed missing plugin peer for recovery proof

* fix(state): restore database reader typecheck

Complete the engine-neutral handle cutover for the pending approval and due-approval readers. Keep compressed transcript navigation queries explicitly SQLite-only rather than inheriting the engine-neutral cache default.

Fixes the three core TypeScript errors introduced by 7c86fca. Core typecheck, 39 focused transcript/approval tests, targeted lint and format pass. Independent review found no P0/P1 issues.

Co-authored-by: steipete <[email protected]>
(cherry picked from commit e2e8fda)

* test(macos): expose recovery wait diagnostics and repair CI fixtures

* test(macos): match actual accessibility text values in recovery proof

* fix(macos): read checkpointed native WAL state during recovery

* fix(macos): preserve Gateway recovery failure diagnostics

* test(macos): type recovery diagnostic cases before macro expansion

* test(macos): expose unexpected recovery refusal diagnostics

* fix(macos): defer persistence during owned recovery

* test(macos): keep bundled recovery setup in its app profile

* fix(macos): recognize healthy protected bundled service identity

* test(android): drain speech queue before Wear abort assertion (openclaw#172252)

---------

Co-authored-by: steipete <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: android App: android app: wearos App: wearos P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XS 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