Skip to content

refactor(feishu): reuse streaming merge in dispatcher tests - #174371

Merged
roboclaw-bot merged 1 commit into
mainfrom
openclaw/slopmeter-provider-metadata-qualified-20261016
Oct 16, 2026
Merged

roboclaw-bot merged 1 commit into
mainfrom
openclaw/slopmeter-provider-metadata-qualified-20261016

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Oct 16, 2026 •

Copy link
Copy Markdown
Collaborator

Related: #171994

What Problem This Solves

The Feishu reply-dispatcher tests maintain a second copy of the production streaming-text merge algorithm, allowing their mocked behavior to drift from the real owner.

User Impact

No user-visible change. Production code, provider requests, configuration, defaults, and all existing test cases/assertions remain unchanged.

Why This Change Was Made

Use the real streaming-card module through the existing partial-mock pattern while retaining the test's exact session and finalization-error doubles. Remove the copied merge function and regenerate the mock-export ledger to remove its one obsolete closed-factory allowance.

Production delta: 0 lines. Test/support delta: −27 lines; the exact mock-export baseline shrinks by one row. No new helper, production seam, export, dependency, or isolation exception.

Evidence

  • Four complete suites before and after: 111 passed, 2 failed (113 total) in the same non-isolated lane. Command: pnpm test extensions/feishu/src/reply-dispatcher.test.ts extensions/feishu/src/streaming-card.test.ts extensions/feishu/src/reply-dispatcher.model-wait.test.ts extensions/feishu/src/reply-dispatcher.streaming-backlog.test.ts --maxWorkers=1. Wall time: baseline 49.09 s; candidate 14.91 s, with no performance claim.
  • The same two native-backlog cases fail before and after when their TLS loopback tenant-token POST receives HTTP 502 under this host's managed egress proxy. Their original failures remain unresolved locally; proxy settings, transport guards, assertions, and timeouts were not weakened. This remains a local transport-proof limitation; no passing hosted backlog result is claimed.
  • All dispatcher, streaming-card owner (including three merge cases), and model-wait cases pass. Actual-module loading succeeds while the original fake lifecycle classes and teardown remain intact.
  • Canonical extension production/test typechecks, scoped lint (zero errors/warnings), format and whitespace checks pass. The actual mock-export guard passes after owner-driven pruning (9,410 → 9,409 entries).
  • Author simplification and fresh complete independent P0–P2 review found no actionable findings. Existing pre-tool-prose work in fix(feishu): keep pre-tool text in streaming card replies #123321 is untouched.
  • Exact-head hosted CI run 38925093981 passed on attempt 1: 33 successful jobs, 27 skipped, 6,677 aggregate job-seconds. This does not relabel the two retained local proxy failures as passing.

Requested by @vincentkoc; co-author credit is retained in the commit.

Work sessions

Session: https://team.openclaw.ai/chat/roboclaw/dashboard/09f057fa-3479-4e1d-b851-0cad5cf713a7

@clawsweeper

clawsweeper Bot commented Oct 16, 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 channel: feishu Channel integration: feishu size: XS labels Oct 16, 2026
@roboclaw-bot
roboclaw-bot marked this pull request as ready for review October 16, 2026 15:34
@roboclaw-bot
roboclaw-bot enabled auto-merge (squash) October 16, 2026 15:36
@roboclaw-bot
roboclaw-bot merged commit eabe227 into main Oct 16, 2026
177 checks passed
@roboclaw-bot
roboclaw-bot deleted the openclaw/slopmeter-provider-metadata-qualified-20261016 branch October 16, 2026 15:47
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Merged via squash auto-merge.

vincentkoc added a commit that referenced this pull request Oct 16, 2026
* commit '0c6c7ee5837ed93f6fb09ca58b280e76878c21f1': (109 commits)
  feat(memory): activate PostgreSQL memory search and lifecycle (#174374)
  fix: join process shutdown and isolate runtime fixtures (#174359)
  refactor(ui): scope native gateway observation to Solid (#174367)
  refactor(ui): own canvas widget lifetime in Solid (#174370)
  perf(control-ui): keep agent avatar faces stable across agent publications (#174239)
  perf(models): release unused account catalog instructions (#174361)
  refactor(ui): own composer command menus in Solid stores (#174321)
  refactor(ui): separate sidebar filter state from view lifecycle (#174352)
  test(release): make artifact qualification deadlines deterministic
  fix(codex): preserve sandboxed process inspection and setup errors (#174284)
  fix(gateway): stop worker processes before draining their queues (#174312)
  refactor(agents): reuse prepared tool facts (#174349)
  test(gateway,plugins,ui): remove low-value tests (batch d174) (#174331)
  refactor(ui): replace MCP retirement host adapters with a factory (#174375)
  refactor(logging): remove redundant native success traces (#174330)
  refactor(test): remove dead control-plane fixture branches (#174377)
  refactor(mcp): remove test-only session runtime seams (#174347)
  feat(matrix): account-root state databases follow the selected engine (#174315)
  refactor(discord): collapse private interaction and factory seams (#174322)
  refactor(feishu): reuse streaming merge in dispatcher tests (#174371)
  ...
vincentkoc added a commit that referenced this pull request Oct 16, 2026
* commit '0c6c7ee5837ed93f6fb09ca58b280e76878c21f1': (109 commits)
  feat(memory): activate PostgreSQL memory search and lifecycle (#174374)
  fix: join process shutdown and isolate runtime fixtures (#174359)
  refactor(ui): scope native gateway observation to Solid (#174367)
  refactor(ui): own canvas widget lifetime in Solid (#174370)
  perf(control-ui): keep agent avatar faces stable across agent publications (#174239)
  perf(models): release unused account catalog instructions (#174361)
  refactor(ui): own composer command menus in Solid stores (#174321)
  refactor(ui): separate sidebar filter state from view lifecycle (#174352)
  test(release): make artifact qualification deadlines deterministic
  fix(codex): preserve sandboxed process inspection and setup errors (#174284)
  fix(gateway): stop worker processes before draining their queues (#174312)
  refactor(agents): reuse prepared tool facts (#174349)
  test(gateway,plugins,ui): remove low-value tests (batch d174) (#174331)
  refactor(ui): replace MCP retirement host adapters with a factory (#174375)
  refactor(logging): remove redundant native success traces (#174330)
  refactor(test): remove dead control-plane fixture branches (#174377)
  refactor(mcp): remove test-only session runtime seams (#174347)
  feat(matrix): account-root state databases follow the selected engine (#174315)
  refactor(discord): collapse private interaction and factory seams (#174322)
  refactor(feishu): reuse streaming merge in dispatcher tests (#174371)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

channel: feishu Channel integration: feishu size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant