Repository navigation
fix(test): repair CLI, QA cleanup, and Telegram media fixtures - #165430
Conversation
Main added the source path to config read failures but retained the old exact CLI fixture expectation. Reproduced all three failures with the original dependency set; the corrected fixture passes all 29 cases in rootless isolation. No runtime behavior or assertion strength changes. Co-authored-by: steipete <[email protected]>
|
🦞👀 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. |
Match the existing top-level agent-database close diagnostic and provide the command-deletion API used by Telegram startup. Preserve redaction, cleanup retry, and media error assertions. Co-authored-by: steipete <[email protected]>
|
Codex review: needs maintainer review before merge. Reviewed October 5, 2026, 4:09 AM ET / 08:09 UTC. ClawSweeper reviewWhat this changesThe PR updates CLI and QA cleanup error expectations and supplies Telegram’s command-deletion method in the media test harness. Merge readiness✅ Ready for maintainer review This remains a useful, focused fixture repair: current main retains all three mismatches, and the patch preserves the meaningful assertions. No introduced correctness defect was found. Priority: P3 Review scores
Verification
How this fits togetherThese fixtures exercise OpenClaw’s CLI diagnostics, QA runtime cleanup, and Telegram media handling. They supply isolated inputs and simulated failures, then check output, cleanup, and media-processing results. flowchart TD
A[Isolated test inputs] --> B[CLI diagnostics]
A --> C[QA runtime cleanup]
A --> D[Telegram media harness]
B --> E[Expected error output]
C --> F[Redaction and cleanup assertions]
D --> G[Media processing assertions]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +5. Total +5 across 3 files. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep the fixtures aligned with their existing production contracts while preserving diagnostic, redaction, cleanup-retry, and media assertions. Do we have a high-confidence way to reproduce the issue? Yes, source establishes the stale CLI and QA expectations and missing Telegram mock method on current main; the PR also reports isolated failing-before and passing-after runs. This review did not execute them. Is this the best way to solve the issue? Yes, correcting the fixture owners is the narrowest repair because production already provides the intended behavior and the meaningful assertions remain intact. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against c1b9f4ec91e5. 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.
|
…law#165430) * test(cli): match path-aware config read diagnostics Main added the source path to config read failures but retained the old exact CLI fixture expectation. Reproduced all three failures with the original dependency set; the corrected fixture passes all 29 cases in rootless isolation. No runtime behavior or assertion strength changes. Co-authored-by: steipete <[email protected]> * fix(test): align QA cleanup and Telegram media fixtures Match the existing top-level agent-database close diagnostic and provide the command-deletion API used by Telegram startup. Preserve redaction, cleanup retry, and media error assertions. Co-authored-by: steipete <[email protected]> --------- Co-authored-by: steipete <[email protected]>
What Problem This Solves
Fixes inherited CLI JSON, QA cleanup, and Telegram media CI failures caused by stale or incomplete test fixtures.
User Impact
No user-visible runtime change. Restores the checks for existing diagnostics and startup behavior while preserving JSON equality, error redaction, retained-state cleanup, retry, and media-error assertions.
Why This Change Was Made
97430de955c1e7223d9941c42e5ba7bbbb7fd2bbadded the config path to read errors, but the fixture expected the earlier text.Agent database close failedaggregate; shared-store shutdown reportsclose failed. The fixture now names each expected diagnostic without inspecting or exposing nested causes.deleteMyCommandsmethod, producing unrelated runtime-error calls.These are baseline fixture defects, not dependency-upgrade behavior changes. Relevant owners and fixtures were compared with main before integration; no production code, dependencies, suppressions, skips, or timeouts change.
Evidence
e78e965a55e2d2b121c61d0a93e571c26f6f50f8with original dependencies reproduced all three affected failures. The corrected full CLI suite passes 29 tests, no skips, in a rootless Node container; wrapper wall time 74.05s.git diff --checkpass. No new test cases or CI jobs were added. No managed-Gateway fence bypass.Main CI run 37276090760 failed. The direct-main repair push was rejected by the repository’s pull-request-only ruleset, so these focused repairs follow the required PR path.
Contributor credit
Requested by Peter Steinberger (@steipete).
Work sessions