Repository navigation
refactor(tests): share independent no-queued-reply expectations - #142845
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. Reviewed September 9, 2026, 1:14 AM ET / 05:14 UTC. ClawSweeper reviewWhat this changesShares a fresh expected-result constructor across dispatch tests without changing scenarios or runtime behavior. Merge readiness✅ Ready for maintainer review This remains a useful, narrowly scoped part of the maintainer-requested test audit. The assertions retain their values, matcher semantics, and independent delivery checks; no actionable defect was found. Priority: P3 Review scores
Verification
How this fits togetherOpenClaw's reply dispatcher turns incoming messages and configuration into agent work and channel replies. These tests verify delivery ordering, cancellation, suppression, and terminal failures. flowchart LR
A[Incoming message and config] --> B[Reply dispatcher]
B --> C[Agent work and cancellation]
C --> D[Channel delivery or suppression]
D --> E[Dispatch result]
E --> F[Test assertions]
G[Independent expected result] --> F
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests -35. Total -35 across 5 files. View PR surface stats
Review metricsNone. Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Technical reviewBest possible solution: Keep the shared expected values independent of production and mock inputs while preserving the existing behavioral scenarios and companion assertions. Do we have a high-confidence way to reproduce the issue? Not applicable: this refactor reports no runtime defect; source inspection confirms repeated expected literals are the cleanup target. Is this the best way to solve the issue? Yes: a pure test-only constructor removes repetition without coupling expectations to production outputs or weakening the retained checks. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against ec7464766fab. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
…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) ...
Related: #139428
What Problem This Solves
Fifteen dispatch assertions repeat the same no-queued-reply result shape across related delivery, cancellation and terminal-failure suites.
Why This Change Was Made
Share a pure expected-result constructor that returns fresh literal objects, independently of production and mock inputs. Preserve every existing matcher and companion no-send, terminal-outcome, receipt and operation-ownership assertion. Queue counts alone are not treated as delivery proof.
User Impact
No user-visible behavior change. The five-file cleanup removes 35 net test/support lines without deleting scenarios or changing runtime behavior.
Evidence
No runtime improvement is claimed.