Repository navigation
test(runtime): remove low-value tests (batch d308) - #178232
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. |
|
Codex review: needs changes before merge. What this changesThis PR consolidates test fixtures, parameterized scenarios, and assertions across runtime, plugin, launcher, and chat suites. Example: A Codex side question forwards a command approval with messageChannel=discord and additional runtime metadata.
Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 3 items remain Keep open: this maintainer-directed test cleanup has value, but an introduced assertion fails CI and GitHub reports conflicts. Priority: P3 Before merge
Findings
Provenance
Agent review detailsHow this fits togetherThese suites exercise runtime and plugin owners using synthetic requests, transport fixtures, and lifecycle events, producing assertions and CI results. flowchart LR
A[Test scenarios] --> B[Shared fixtures]
B --> C[Runtime and plugin owners]
C --> D[Transport and state fixtures]
D --> E[Assertions]
E --> F[CI results]
Technical reviewBest possible solution: Preserve the consolidation while restoring recursive partial matching for approval metadata. Do we have a high-confidence way to reproduce the issue? The reviewed-head CI annotation records the failing approval assertion, and the introduced matcher change explains its failure. Is this the best way to solve the issue? Shared fixtures and scenario tables are appropriate, but their assertions must retain the original matching semantics. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 0276fca4ea1a. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceAcceptance criteria:
What I checked:
Likely related people:
PR surfaceTests -4094. Total -4094 across 62 files. Added test files: 2. 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 20, 2026, 3:56 AM ET / 07:56 UTC. |
4e19c45 to
f340f5f
Compare
* test(launcher): deslop z0054 tests * test(launcher): deslop z0054 tests * test(launcher): deslop z0054 tests * test(codex): deslop z0055 tests * test(codex): deslop z0055 tests * test(codex): deslop z0055 tests * test(codex): deslop z0056 tests * test(codex): deslop z0056 tests * test(codex): deslop z0056 tests * test(cli-runner): deslop z0057 tests * test(cli-runner): deslop z0057 tests * test(cli-runner): deslop z0057 tests * test(sessions): deslop z0058 tests * test(sessions): deslop z0058 tests * test(sessions): deslop z0058 tests * test(auto-reply): deslop z0050 tests * test(auto-reply): deslop z0050 tests * test(auto-reply): deslop z0050 tests * test(chat): deslop z0059 tests * test(chat): deslop z0059 tests * test(chat): deslop z0059 tests * test(gateway): deslop z0063 tests * test(gateway): deslop z0063 tests * test(gateway): deslop z0063 tests * test(matrix): deslop z0060 tests * test(matrix): deslop z0060 tests * test(matrix): deslop z0060 tests * test(anthropic): deslop z0062 tests * test: preserve batch d308 contracts and repair CI fixtures * test: use dispatcher completion directly in finalization cases * test(codex): keep derived failure flags boolean without casts * test(gateway): preserve lazy wait-listener initialization * test: classify preparation fixtures as test support
What Problem This Solves
Repeated fixture setup and overlapping test declarations make the affected runtime, launcher, plugin, and chat suites harder to maintain.
User Impact
No production or user-visible behavior change. This batch consolidates test fixtures and assertions while retaining distinct authority, lifecycle, transport, and recovery contracts.
Why This Change Was Made
Replay campaign batch d308 onto pinned main
692a4d02d3ce528cf460c744baf19899c17e7534. Applied 28 of 30 supplied commits, preserving their messages, plus focused correction commits for CI and review findings. The two z0053 commits were dropped because their fixture/lifecycle rewrite conflicts broadly with current main.Conflict decisions:
z0053: skipped
63b23874472and856cffe3c47; retained all four current-main Gateway suites unchanged.z0055: kept current-main inference and WebSocket startup support unchanged across all three commits, preserving generation-bound package, explicit generation-binding, and isolated-client cases. Applied the remaining context, side-question, fingerprint, connection-artifact, and idle cleanup.
z0056: retained main's removal of legacy extension factories while applying middleware cleanup. Dropped the final commit's dynamic-tools.test.ts rewrite because its broad conflict crosses current-main replay-safety and middleware cases; retained the earlier nonconflicting reduction and the other files from that commit.
z0059: retained all four current-main non-canonical media URL cases, using the shared fetch fixture. No cases were lost to the singleton-table rewrite.
Rebase watchdog conflict: retained all four new main cases (queued/running × deferred-maintenance/global-lane). Kept the compatible first-pass watchdog cleanup; dropped the second and third commits' conflicting watchdog-file changes.
No CODEOWNERS patterns match these changed files. No changelog edit (release-owned).
Evidence
pnpm install --frozen-lockfile --prefer-offline: passed.node_modules/.bin/oxfmt --write <63 changed files>: passed.node_modules/.bin/oxlint -c .oxlintrc.json <63 changed files>: exit 0.git diff --check 692a4d02d3ce528cf460c744baf19899c17e7534: passed.openclaw/ci-gateis the runtime proof and merge gate; no local timing or coverage claim.sdk/client-startup-recovery.test.tsalready asserts that contract. Follow-up review: observe real waiter registration before emitting a terminal event. Rejected the suggestion that derived failure flags can be undefined: each flag is computed from string comparisons in the complete scenario table, so the logical expression is already boolean..test-support.tssuffix so CI classifies its two test-only consumers correctly. Fresh-head hosted CI remains the required runtime proof.Per-shard replay inventory and campaign evidence
Source reports are first-pass campaign reports, not current-head coverage measurements. Each records tests/coverage as not run under CI-only instructions; there is no in-shard coverage totals line or supported ≤1% coverage claim. Later supplied commits add consolidation, so the current replay counts below are computed against pinned main.
z0050
src/auto-reply/reply/reply-agent-turn-preparation.shared.test.tssrc/auto-reply/reply/reply-agent-turn-preparation.test-support.tssrc/auto-reply/reply/reply-agent-turn-preparation.test.tssrc/auto-reply/reply/reply-elevated.test.tssrc/auto-reply/reply/reply-flow.test.tssrc/auto-reply/reply/reply-media-paths.ssh.test.tssrc/auto-reply/reply/reply-operation-abort.test.tssrc/auto-reply/reply/reply-plumbing.test.tssrc/auto-reply/reply/reply-run-registry.test.tsz0054
test/matrix-client-crypto-authority.integration.test.tstest/media-progress-telegram-retirement.integration.test.tstest/node-host-launcher.test.tstest/non-isolated-runner.fixture-support.tstest/non-isolated-runner.responses-settlement.test.tstest/non-isolated-runner.sqlite.test.tstest/official-channel-catalog.test.tstest/ollama-linklocal.transport.integration.test.tstest/openclaw-launcher.e2e.test.tsz0055
extensions/codex/src/app-server/settled-turn-prior-context.test.tsextensions/codex/src/app-server/shared-client-connection-artifact.test-support.tsextensions/codex/src/app-server/shared-client-idle.test-support.tsextensions/codex/src/app-server/side-question.model-selection.test.tsextensions/codex/src/app-server/side-question.test.tsextensions/codex/src/app-server/thread-fingerprints.test.tsz0056
extensions/codex/src/app-server/dynamic-tool-execution.test.tsextensions/codex/src/app-server/dynamic-tool-profile.test.tsextensions/codex/src/app-server/dynamic-tool-skills.test.tsextensions/codex/src/app-server/dynamic-tools.test-support.tsextensions/codex/src/app-server/dynamic-tools.test.tsextensions/codex/src/app-server/dynamic-tools.tool-authored-source-reply.test.tsextensions/codex/src/app-server/effective-mcp-catalog.test.tsextensions/codex/src/app-server/ephemeral-turn.test.tsz0057
src/agents/cli-runner/bundle-mcp.discovery-lifecycle.test.tssrc/agents/cli-runner/bundle-mcp.requester-lifecycle.test.tssrc/agents/cli-runner/bundle-mcp.test-support.tssrc/agents/cli-runner/cli-run-settlement.test.tssrc/agents/cli-runner/cli-run-transcript.test.tssrc/agents/cli-runner/execute.background-work.test.tssrc/agents/cli-runner/execute.supervisor-capture.test.tssrc/agents/cli-runner/execute.test-support.tsz0058
src/sessions/session-controller-model.test.tssrc/sessions/session-controller.admission-rule.test.tssrc/sessions/session-controller.admission.test.tssrc/sessions/session-controller.identity.test.tssrc/sessions/session-controller.lifecycle-diagnostics.test.tssrc/sessions/session-controller.mailbox-cleanup.test.tssrc/sessions/session-controller.rpc-sources.test.tssrc/sessions/session-controller.watchdog.test.tsz0059
ui/src/pages/chat/components/chat-message-attachment-admission.browser.test.tsui/src/pages/chat/components/chat-message.forwarded-attribution.test.tsui/src/pages/chat/components/chat-message.test.tsxz0060
extensions/matrix/src/matrix/sdk.test.tsextensions/matrix/src/matrix/sdk/crypto-persistence.test-support.tsextensions/matrix/src/matrix/send.authority.integration.test.tsz0062
extensions/anthropic/provider-policy-api.test.tsextensions/anthropic/session-catalog-history.test.tsextensions/anthropic/session-catalog-runtime.test.tsextensions/anthropic/session-catalog.test.tsz0063
src/gateway/server.chat.gateway-server-chat-lifecycle.test.tssrc/gateway/server.session-row-deltas.integration.test.tssrc/gateway/server.sessions.fixture-lifecycle.test.tssrc/gateway/server.startup-recovery-webchat.test.tssrc/gateway/server.subagent-settle-replay.harness.test.ts