Skip to content

fix: restore iMessage and WhatsApp channel test coverage - #110327

Merged
steipete merged 4 commits into
mainfrom
claude/imessage-media-test-modernize
Jul 18, 2026
Merged

steipete merged 4 commits into
mainfrom
claude/imessage-media-test-modernize

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes broken main test coverage after #110095 moved inbound turn execution into core turn plans. Three missed test surfaces still mocked the retired reply-runtime dispatch path, so their mocks intercepted nothing: iMessage media-policy had two failures and one 120-second timeout, iMessage last-route had 26 failures, and the WhatsApp combined broadcast-groups case timed out. The regression bisects to merge commit 601ffa253037e20397bd62bd81fc9f7715ba6200 and reproduces on clean origin/main.

Why This Change Was Made

The affected tests now mock the core turn-plan dispatch seam, matching the modernization already applied to Feishu, Slack, and Telegram in #110095 while preserving every behavioral assertion. The shared WhatsApp harness supplies the corrected dispatch mock once for all five broadcast-group tests.

User Impact

No runtime behavior or product code changes. Maintainers regain reliable iMessage and WhatsApp regression coverage on main, without false failures or two-minute hangs from stale test interception points.

Evidence

  • iMessage plugin suite: 794/794 tests passed.
  • WhatsApp plugin suite: 1108/1108 tests passed, including Blacksmith Testbox run 29626860218.
  • Fresh autoreview on the patch, followed by a clean patch-identical rebase to head 8e53e95faad8: zero accepted/actionable findings.
  • git diff --check origin/main...HEAD: clean.

AI-assisted: yes. The final rebased branch received a clean structured autoreview.

@openclaw-barnacle openclaw-barnacle Bot added channel: imessage Channel integration: imessage channel: whatsapp-web Channel integration: whatsapp-web size: M maintainer Maintainer-authored PR labels Jul 18, 2026
@steipete
steipete merged commit bd8c539 into main Jul 18, 2026
91 checks passed
@steipete
steipete deleted the claude/imessage-media-test-modernize branch July 18, 2026 02:44
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 18, 2026
…0327)

* test(imessage): mock core turn dispatch for media policy coverage

PR openclaw#110095 missed this iMessage media-policy test file.

* test(imessage): mock core turn dispatch for last-route coverage

* test(whatsapp): mock core turn dispatch for broadcast coverage

* test(imessage): drop type-dead terminal-admission branch in media harness
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

channel: imessage Channel integration: imessage channel: whatsapp-web Channel integration: whatsapp-web maintainer Maintainer-authored PR size: M

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant