Repository navigation
refactor(cli): consolidate camera command tests - #200144
Conversation
Move registration-layer assertions into the existing command-boundary suite, retire duplicate RPC/runtime/writer mocks, and use one failure-safe temporary-root fixture. Keep production behavior and all existing camera contracts unchanged. Co-authored-by: vincentkoc <[email protected]>
Worked on by: - @vincentkoc Co-authored-by: vincentkoc <[email protected]> OpenClaw-Publication: 4047b1eb-efa6-46c8-b4e5-4f52af37d47d
|
🦞👀 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. |
|
Merged via squash.
|
|
Codex review: needs maintainer review before merge. What this changesThis PR moves camera command contracts into the existing CLI boundary suite and removes the duplicate registration test harness. Example: Run
Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review This PR is a useful, scoped test consolidation with no actionable correctness or security findings; the reviewed head is mergeable and its CI gate passes. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe camera CLI translates Commander options into node Gateway requests, validates returned media, and prints saved paths or camera listings; this PR changes only the tests surrounding that flow. flowchart LR
A[Command arguments] --> B[Commander registration]
B --> C[Node RPC adapter]
C --> D[Mock Gateway responses]
D --> E[Media validation and writers]
E --> F[Test owned temporary files]
B --> G[Captured runtime output]
Technical reviewBest possible solution: Keep the camera contracts in the existing command-boundary suite, with real writers and one test-owned temporary-root cleanup mechanism. Do we have a high-confidence way to reproduce the issue? There is no reported runtime defect to reproduce; source inspection confirms the duplicate harness and transferred contracts. Is this the best way to solve the issue? The change follows the existing test owner, preserves distinct failure cases, and replaces path-by-path cleanup with the repository's established temporary-directory tracker. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against b9d11df14f80. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
PR surfaceTests -72. Total -72 across 2 files. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel changes:
Label justifications:
Rating scale6/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. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 16, 2026, 10:12 AM ET / 15:12 UTC. |
…tgres-compaction-watched-prompt-20261116 * commit '9e810f7101557b006d5ff223d955f14dc43329f0': (23 commits) chore(ui): refresh control ui locales (#200164) fix(update): stop reporting unset git config keys as failing checks (#200153) test: consolidate redundant coverage (198793, part 2) (#198936) revert: skills-used full-transcript scan on every chat history page (#200159) refactor(sessions): follow the chat by key for stored delivery references (#200099) fix(update): bridge 2026.11.5-beta.4 updaters (#200152) fix(gateway): avoid filesystem stalls during catalog refresh (#200136) fix(ci): match update refusal probe to selected candidate (#200043) fix(agents): keep read-only steering carriers when publishing suppressed user envelopes (#200156) test: consolidate suites while retaining recovery owners (#198933) test: consolidate redundant coverage (198789, part 2) (#198932) refactor(cli): consolidate camera command tests (#200144) fix(cli): avoid initializing provider runtime during cleanup (#200139) fix(ui): show mobile destinations without the drawer exit delay (#198879) chore(ui): refresh control ui locales (#200146) fix(knowledge): keep historical claims distinct and reject changed retries (#200140) fix(ui): align dropdown arrows on mobile New Session improve(sessions): archive inactive transcripts by default (#199899) refactor(agents): own background commands and yield waits by the chat (#200097) fix(models): guessed non-chat models leave the default picker instead of being refused (#200102) ...
* refactor(cli): consolidate camera command tests Move registration-layer assertions into the existing command-boundary suite, retire duplicate RPC/runtime/writer mocks, and use one failure-safe temporary-root fixture. Keep production behavior and all existing camera contracts unchanged. Co-authored-by: vincentkoc <[email protected]> * refactor(cli): consolidate camera command tests Worked on by: - @vincentkoc Co-authored-by: vincentkoc <[email protected]> OpenClaw-Publication: 4047b1eb-efa6-46c8-b4e5-4f52af37d47d --------- Co-authored-by: vincentkoc <[email protected]>
Related: #171994
What Problem This Solves
The camera CLI tests maintain a second mock-heavy registration harness for contracts that can run through the existing command-boundary suite.
User Impact
No user-visible behavior changes. Camera options, defaults, payload compatibility, validation order, output bytes, and terminal sanitization remain unchanged; no configuration, dependency, or migration changes are required.
Why This Change Was Made
Move the assertions into the existing Commander-to-Gateway boundary suite and retire the duplicate runtime, RPC, and no-op writer mocks. Real media writers now serve the retained success cases, with one test-owned temporary-root fixture that also cleans up failures before a path is logged. This is part of @vincentkoc's explicitly requested behavior-preserving cleanup campaign, not a repair of the unrelated baseline failures below.
Evidence
225d22fc502022fe84f0702f931042c54bab55f8, including unchanged owners and proof context: complete, scoped-clean at P0–P2, no actionable findings. Local ClawSweeper was unavailable through the admitted local entrypoints; hosted review will be requested once ready under the documented fallback.No live-camera/hardware or full-suite success is claimed for this test-only cutover.
Thanks @vincentkoc.
Work sessions
Linked for team reference; these sessions aren’t public.
Worked on by