Skip to content

fix(test): repair CLI, QA cleanup, and Telegram media fixtures - #165430

Merged
roboclaw-bot merged 2 commits into
mainfrom
openclaw/deps-main-cli-fixture
Oct 5, 2026
Merged

roboclaw-bot merged 2 commits into
mainfrom
openclaw/deps-main-cli-fixture

Conversation

@roboclaw-bot

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

Copy link
Copy Markdown
Collaborator

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

  • CLI: main commit 97430de955c1e7223d9941c42e5ba7bbbb7fd2bb added the config path to read errors, but the fixture expected the earlier text.
  • QA: agent-store shutdown reports the top-level Agent database close failed aggregate; shared-store shutdown reports close failed. The fixture now names each expected diagnostic without inspecting or exposing nested causes.
  • Telegram: startup clears command scopes before publishing commands. The fake Bot API lacked the existing async deleteMyCommands method, 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

  • CLI: captured main e78e965a55e2d2b121c61d0a93e571c26f6f50f8 with 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.
  • QA and Telegram: canonical repository wrapper in rootless Node 24.19.0, matching CI, passes 11 QA cleanup tests and 20 Telegram media/sibling tests. Cold wrapper wall time 793.05s, including normal E2E build preparation; Vitest durations were 19.66s QA / 72.44s Telegram.
  • The QA failure also reproduces with main’s original dependency lock. Telegram’s missing-method failure is on the fake Bot and does not depend on an external API upgrade; grammY remains 1.46.0.
  • Formatting and git diff --check pass. 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

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]>
@clawsweeper

clawsweeper Bot commented Oct 5, 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.

@roboclaw-bot
roboclaw-bot marked this pull request as ready for review October 5, 2026 07:56
@roboclaw-bot roboclaw-bot changed the title test(cli): match path-aware config read diagnostics fix(cli): JSON contract tests expect outdated config-read errors Oct 5, 2026
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]>
@openclaw-barnacle openclaw-barnacle Bot added channel: telegram Channel integration: telegram extensions: qa-lab labels Oct 5, 2026
@roboclaw-bot roboclaw-bot changed the title fix(cli): JSON contract tests expect outdated config-read errors fix(test): repair CLI, QA cleanup, and Telegram media fixtures Oct 5, 2026
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Oct 5, 2026
@clawsweeper

clawsweeper Bot commented Oct 5, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed October 5, 2026, 4:09 AM ET / 08:09 UTC.

ClawSweeper review

What this changes

The 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
Reviewed head: 14a7587c9d535c931c6d3ed01a6233f713d1dd27

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused fixture repair that retains strong assertions and includes reported baseline and after-fix validation.
Proof confidence 🌊 off-meta tidepool Not applicable: This bot-authored fixture repair changes no production behavior, so the external-contributor runtime gate does not apply; reported isolated suite results support the changed expectations and mock completeness.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This bot-authored fixture repair changes no production behavior, so the external-contributor runtime gate does not apply; reported isolated suite results support the changed expectations and mock completeness.
Evidence reviewed 8 items Pinned introduced changes: The merge-base-to-head patch only adjusts two diagnostic expectations and adds an asynchronous command-deletion stub. It introduces no production, dependency, workflow, timeout, skip, or suppression changes.
CLI diagnostic provenance: The production patch explicitly changed the read failure to include the config path. The repaired test retains exact JSON equality and its existing stderr and filesystem assertions.
QA error ownership: Agent shutdown aggregates failed closes under 'Agent database close failed'; cleanup intentionally formats only the top-level message. The revised table distinguishes agent and shared-store diagnostics while retaining secret/cause exclusion, retained-state, staging removal, and retry assertions.
Findings None None.
Security None None.

How this fits together

These 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]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Tests +5. Total +5 across 3 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 3 9 4 +5
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 3 9 4 +5

Review metrics

None.

Technical review

Best 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.

Labels

Label changes:

  • add P3: This is bounded test-fixture maintenance with no user-visible runtime change.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This bot-authored fixture repair changes no production behavior, so the external-contributor runtime gate does not apply; reported isolated suite results support the changed expectations and mock completeness.

Label justifications:

  • P3: This is bounded test-fixture maintenance with no user-visible runtime change.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This bot-authored fixture repair changes no production behavior, so the external-contributor runtime gate does not apply; reported isolated suite results support the changed expectations and mock completeness.

Evidence

What I checked:

  • Pinned introduced changes: The merge-base-to-head patch only adjusts two diagnostic expectations and adds an asynchronous command-deletion stub. It introduces no production, dependency, workflow, timeout, skip, or suppression changes. (14a7587c9d53)
  • CLI diagnostic provenance: The production patch explicitly changed the read failure to include the config path. The repaired test retains exact JSON equality and its existing stderr and filesystem assertions. (src/config/io.snapshot.ts:467, 97430de955c1)
  • QA error ownership: Agent shutdown aggregates failed closes under 'Agent database close failed'; cleanup intentionally formats only the top-level message. The revised table distinguishes agent and shared-store diagnostics while retaining secret/cause exclusion, retained-state, staging removal, and retry assertions. (extensions/qa-lab/src/gateway-child-artifacts.test.ts:170, 14a7587c9d53)
  • Telegram fixture boundary: The existing command-menu owner calls deleteMyCommands while clearing scopes before publication. Supplying that method prevents unrelated startup errors from contaminating media assertions; dedicated command-menu tests already exercise deletion and publication. (extensions/telegram/src/bot-native-command-menu.ts:461, 14a7587c9d53)
  • Still necessary on current main: Comparison with fetched main shows all three fixture repairs remain absent. The relevant config, agent-close, QA cleanup, and command-menu production owners have no differences between fetched main and the reviewed head. (c1b9f4ec91e5)
  • Reported validation: The captured PR body reports rootless validation passing 29 CLI tests, 11 QA cleanup tests, and 20 Telegram media/sibling tests, with measured durations and baseline failures. These are author-reported results; this review did not execute tests. The read-only diff whitespace check passed. (14a7587c9d53)

Likely related people:

  • Peter Steinberger: Raw commit 97430de adds src/config/io.snapshot.ts:467 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 97430de955c1; files: src/config/io.snapshot.ts)
  • Vincent Koc: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

@roboclaw-bot
roboclaw-bot merged commit 6c21f5a into main Oct 5, 2026
126 of 128 checks passed
@roboclaw-bot
roboclaw-bot deleted the openclaw/deps-main-cli-fixture branch October 5, 2026 08:14
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 6, 2026
…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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

channel: telegram Channel integration: telegram extensions: qa-lab P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XS status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant