Repository navigation
test(agents, telegram, tooling): remove low-value tests (batch d182) - #174630
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 SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 901fd188f0
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
|
||
| it.each(["all"] as const)( | ||
| "delivers both long-provider controls and completes deferred %s consent through a fresh dispatcher", | ||
| it.each(["all", "cancel"] as const)( |
There was a problem hiding this comment.
Exercise the keep-choice callback again
The reduced matrix drops the keep case, and the shared helper now always dispatches commands[0]; the cancel row cancels separately rather than clicking the second button. Consequently, a Telegram regression that maps “Keep current restrictions” to choice 0, or otherwise corrupts that callback, would still render two buttons and satisfy the current regex while unexpectedly widening the model policy. Restore the keep row and dispatch commands[1] for it.
AGENTS.md reference: extensions/telegram/AGENTS.md:L128-L130
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 48fa8ca248
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| f.result.steps = f.result.steps.map((step) => ({ | ||
| ...step, | ||
| exitCode: 130, | ||
| termination: "signal", | ||
| })); |
There was a problem hiding this comment.
Seed a step before marking the run signal-cancelled
The shared fixture now initializes result.steps to [], so this map is a no-op. When this test runs, the production guard error.result.steps.some(step => step.termination === "signal") remains false, the action selector is invoked, and the subsequent expectUnused("select", ...) fails. Add an actual terminated step, as the removed test did, before exercising the signal-cancellation path.
AGENTS.md reference: AGENTS.md:L85-L86
Useful? React with 👍 / 👎.
| it("does not submit when confirmation is cancelled", async () => { | ||
| mocks.select.mockResolvedValue("report"); |
There was a problem hiding this comment.
Restore coverage for the triage menu branch
The cleanup deletes the only case that makes the selector return triage; every remaining mocks.triage assertion in this file now expects it not to run. A regression that maps “Diagnose update failure” to dismissal/reporting, or passes the wrong original failure and target to triage, would therefore pass this suite. Retain one positive branch assertion alongside the report and cancellation cases.
AGENTS.md reference: AGENTS.md:L85-L85
Useful? React with 👍 / 👎.
|
Codex review: needs changes before merge. What this changesThis PR consolidates repeated test fixtures and assertions across agents, Telegram, Anthropic, QA Lab, packaging, updater, and maintainer tooling. Example: Testing Claude session replacement after cleanup succeeds or fails.
Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 7 items remain Keep this maintainer-authored cleanup open, but repair the fixture failures, lost regression coverage, and stale mock baseline before merging. Priority: P2 Before merge
Findings
Provenance
Agent review detailsHow this fits togetherThese tests feed synthetic protocol messages, process outcomes, configuration, and persisted fixtures into production owners, then assert delivery, authorization, recovery, packaging, and lifecycle contracts. flowchart LR
A[Test cases] --> B[Shared fixtures]
B --> C[Production owners]
C --> D[Synthetic transport and storage]
D --> E[Observable results]
E --> F[Assertions and CI gates]
Technical reviewBest possible solution: Keep the fixture consolidation while restoring distinct consent and recovery coverage and correcting the broken fixture and baseline changes. Do we have a high-confidence way to reproduce the issue? Source establishes the dropped callback and empty cancellation fixture, and exact-head CI independently confirms both Anthropic timeout rows; no local tests were run. Is this the best way to solve the issue? Shared fixtures and tables are appropriate, but consolidation must preserve independent branch coverage and forward all lifecycle inputs. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against b74ea7c2b1b0. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceAcceptance criteria:
What I checked:
Likely related people:
PR surfaceTests -4043. Total -4043 across 63 files. Added test files: 3. View PR surface stats
Review metrics
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 October 16, 2026, 4:58 PM ET / 20:58 UTC. |
…penclaw#174630) * test(telegram): deslop x7254 tests * test(telegram): deslop x7254 tests * test(telegram): deslop x7254 tests * test(anthropic): deslop x7251 tests * test(anthropic): deslop x7251 tests * test(anthropic): deslop x7251 tests * test(pr-merge): deslop x7259 tests * test(pr-merge): deslop x7259 tests * test(pr-merge): deslop x7259 tests * test(agents): deslop x7263 tests * test(agents): deslop x7263 tests * test(agents): deslop x7264 tests * test(agents): deslop x7264 tests * test(agents): deslop x7264 tests * test(packaging): deslop x7261 tests * test(packaging): deslop x7261 tests * test(packaging): deslop x7261 tests * test(qa-lab): deslop x7258 tests * test(qa-lab): deslop x7258 tests * test(qa-lab): deslop x7258 tests * test(update): deslop x7265 tests * test(update): deslop x7265 tests * test(update): deslop x7265 tests * test(telegram): deslop x7262 tests * test(telegram): deslop x7262 tests * test(telegram): deslop x7262 tests * test(telegram): preserve login callback flow typing * test: align cleanup fixtures with current contracts * test: repair type-aware fixture lint findings * test: preserve cleanup and cancellation fixture contracts * test: narrow Telegram fixture messages and prune mock baseline
- prepare.ts: main's comment lines (openclaw#175226, openclaw#168244) kept; the history gate stays inline on replayableTarget(cliHistoryWriter) as on the branch, so the file does not grow past its line-cap count - cli-runtime.test.ts: main's rewrite (openclaw#174630); the branch's it.for over assertCurrent and assertPrivateInputCurrent and its two private-input tests move into it, and createContext takes ClaudeCliExecuteContext overrides; cli-runtime.test-harness.ts and cli-runtime.private-input.test.ts deleted (the split only kept the old file under the line cap) - history-boundary.test.ts: branch fixture import plus main's prepareCliHistoryCompactionBoundary import (openclaw#175090) - docs/.generated config baseline regenerated with pnpm config:docs:gen - cli-backends.md: main's opaque-login paragraphs (openclaw#174457) now name the attestNativeLogin opt-in
What Problem This Solves
Repeated test setup and duplicate assertions make these suites harder to maintain without adding distinct regression coverage.
Rebase one test-cleanup campaign batch onto current main. Consolidate repeated fixtures, protocol builders, lifecycle setup, and assertions across Anthropic, Telegram, agent tools/spawning, packaging, QA Lab, updater, and PR-merge tests. Keep distinct authorization, ordering, failure, recovery, and transport contracts; remove only documented duplicate cases.
User Impact
No production files or runtime behavior change. The final diff is 63 test/test-support files: +10,605 / -16,269 lines, net -5,664, plus removal of seven obsolete test-mock baseline rows (64 files total). Production LOC: +0 / -0. Static
it/testregistration sites decrease by 33; this is not an expanded-case count, because several tests become tables. The source shard reports document retained cases and the few duplicate removals; no coverage percentage is claimed.Replay decisions
Base:
e3457a592f0ceecdfa679d9b6a0696bee4cfa656. Applied 26 of the 30 supplied commits, retaining their messages, plus replay and CI corrections.349b344edea6(x7255): all five Gateway files had substantially changed setup/cleanup and row-projection coverage. Do not restore the campaign's obsolete shared disposable fixture over current main.da4b6f00b34c,8cc6df2072b1, andf75803e2a2b8(x7257): current main has expanded Goal, annotation, queue, retry, and history cases absent from the campaign's singleton-table assumptions. Retained main unchanged for this shard.telegramDeps, kept the newer login-button regression, and used the existingTelegramLoginFlowtype for its mock.No CODEOWNERS patterns match the changed paths. No runtime configuration, schema, dependencies, workflows, or changelog changes. The sole baseline edit removes the seven obsolete MCP/ACP mock entries after their isolation contracts became explicit; it adds no exception.
Per-shard landed delta
Counts below are against the pinned base and include test-support files. Registration deltas count static
it/testsites, not table expansion.Files by shard (prefix applies to every filename in its row):
extensions/anthropic/:cli-migration.test.ts,cli-process.test.ts,cli-runtime.test-support.ts,cli-runtime.test.ts,cli-shared.test.ts,cli-user-input.test.ts.extensions/telegram/src/:bot-message-dispatch.delivery-transcript.test.ts,bot-message-dispatch.fallback-topic-media.test.ts,bot-message-dispatch.recovery.telegram-http.test.ts,bot-native-command-dispatch.concurrency.test.ts,bot-native-command-dispatch.delivery.test.ts,bot-native-command-dispatch.routing.test.ts,bot-native-command-login.test-support.ts,bot-native-command-login.test.ts.extensions/qa-lab/src/:suite-launch.runtime.test.ts,suite-planning.concurrency.test.ts,suite-planning.test.ts,suite-process-lifecycle.test.ts,suite-round-trip.test.ts,suite-run-isolated.cleanup.test.ts.test/scripts/:pr-merge-auto-recovery.test.ts,pr-merge-correction.test.ts,pr-merge-fixture-git.test-support.ts,pr-merge-hosted.test.ts,pr-merge-pre-dispatch-refusal.test.ts,pr-merge-prior-ci.test-support.ts,pr-merge-prior-ci.test.ts,pr-merge.test.ts.test/:plugin-npm-package-manifest.test.ts,plugin-npm-release.test.ts,plugin-npm-runtime-build.test.ts,pr111899-accepted-run-transport-loss.e2e.test.ts,pr142176-real-runtime-proof.e2e.test.ts,runtime-proof.test-support.ts.extensions/telegram/src/:outbound-adapter.normalize-payload.test.ts,outbound-adapter.telegram-http.test.ts,outbound-message-context.test.ts,polling-lease.test.ts,polling-session.test.ts.src/agents/:mcp-stdio-client.test.ts,mcp-stdio-transport.test.ts,mcp-stdio.test-support.ts,mcp-transport.test.ts,mcp-ui-resource.test.ts,media-generation-task-status.test.ts,memory-search.test.ts,minimax-vlm.normalizes-api-key.test.ts,model-auth.test.ts.src/agents/subagents/spawn/:acp-parent-stream-store.sqlite.test.ts,acp-spawn-parent-stream.test.ts,acp-spawn-resume.worker.test.ts,acp-spawn.authority.test.ts,acp-spawn.test.ts,subagent-capabilities.store.test.ts.src/cli/update-cli/:update-command-filesystem-snapshot.test-support.ts,update-command-retained-restart.test.ts,update-command-rollback-executor.test.ts,update-command-rollback-report.test.ts,update-command-rollback.test-support.ts,update-command-rollback.test.ts,update-command-run-progress.test-support.ts,update-command-run-service-ownership.test.ts,update-command-run.test.ts.Evidence
pnpm install --frozen-lockfile --prefer-offline: passed.node_modules/.bin/oxfmt --write <changed files>: passed initially on all 64 files, then again on the corrected files (63 remain changed).node_modules/.bin/oxlint -c .oxlintrc.json <changed files>: exit 0 initially and after CI corrections.git diff --check e3457a592f0ceecdfa679d9b6a0696bee4cfa656: passed.openclaw/ci-gateis the behavioral merge gate. Independent review runs alongside CI; any accepted finding will disable auto-merge before correction and revalidation.restart-cleanuphealth-map entry is unreachable because that case already asserts rejection and returns before the lookup. The other two review chunks reported no actionable findings.User, and all seven enumerated stale rows are removed exactly.