Repository navigation
test(agents,chat,ci): remove low-value tests (batch d309) - #178243
Conversation
|
Codex review: needs changes before merge. What this changesThis PR consolidates repeated test fixtures and assertions across agent, provider, chat, and tooling suites and shrinks two test baselines. Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 1 item remains Keep open as useful maintainer-directed test cleanup; no discrete introduced regression was established, and the latest required typecheck failure still needs attribution. Priority: P3 Before merge
FindingsNone. Agent review detailsHow this fits togetherThese suites feed synthetic inputs through runtime owners and tooling entry points, then assert contracts used by the repository’s CI gates. flowchart LR
A[Synthetic inputs] --> B[Shared test fixtures]
B --> C[Runtime and tooling owners]
C --> D[Behavioral assertions]
D --> E[CI merge gate]
Technical reviewBest possible solution: Retain the fixture consolidation and shrinking baselines while preserving distinct behavioral contracts. Do we have a high-confidence way to reproduce the issue? This PR does not report a product bug; the observed validation failure is a hosted core typecheck failure whose source diagnostic was unavailable. Is this the best way to solve the issue? Consolidating existing owner suites is appropriate here; the inspected changes preserve meaningful rejection, cancellation, delivery, and account-isolation scenarios without adding production machinery. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 2e41793e3ef6. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceTests -2836, Other -3. Total -2839 across 74 files. Added test files: 1. View PR surface stats
Review metrics
LabelsLabel changes:
Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
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, 5:17 AM ET / 09:17 UTC. |
|
The only failed job on reviewed head The same Main commit Landing under the operator's explicit pre-existing-failure rule, with the merge pinned to the reviewed head above. The unrelated main repair remains outside this batch. |
Resolve settled-turn test conflicts with openclaw#178243: keep main's flattened context test and in-file native helpers; re-add only the PR's stage diagnostics cases and native message history-coverage case.
…78243) * test(anthropic): deslop z0062 tests * test(anthropic): deslop z0062 tests * test(auto-reply): deslop z0065 tests * test(auto-reply): deslop z0065 tests * test(codex): deslop z0066 tests * test(codex): deslop z0066 tests * test(codex): deslop z0066 tests * test(auto-reply): deslop z0067 tests * test(auto-reply): deslop z0067 tests * test(auto-reply): deslop z0067 tests * test(scripts): deslop z0068 tests * test(scripts): deslop z0068 tests * test(scripts): deslop z0068 tests * test(agents): deslop z0069 tests * test(agents): deslop z0069 tests * test(agents): deslop z0069 tests * test(chat): deslop z0070 tests * test(chat): deslop z0070 tests * test(chat): deslop z0070 tests * test(scripts): deslop z0071 tests * test(scripts): deslop z0071 tests * test(scripts): deslop z0071 tests * test(agents): deslop z0064 tests * test(agents): deslop z0064 tests * test(agents): deslop z0064 tests * test(agents): deslop z0072 tests * test(agents): deslop z0072 tests * test(agents): deslop z0072 tests * test(ci): deslop z0073 tests * test(ci): deslop z0073 tests * test(auto-reply): reuse shared execution fixture after replay * test: preserve boundary controls and repair batch fixture types * test(scripts): allow new literal credential guard fixtures * test: shrink timeout baseline and document mock isolation * test: prune retired mock export baseline entries
What Problem This Solves
This campaign batch reduces repeated test fixtures and assertion scaffolding across provider, agent/reply, chat, and CI-script suites.
User Impact
No production or user-visible behavior change. This is test/support maintenance plus two shrink-only test baselines; no user configuration, schema, dependency, or runtime changes.
Why This Change Was Made
Replayed all 30 supplied d309 commits, in order, onto pinned main
0276fca4ea1a3bbbd683d16a6a0574ed0e3a46f2. The replay retains current-main behavior and adds follow-up repairs for stale fixture declarations and CI type contracts.Conflict decisions
resolveSettledToolTerminalContinuationimport while accepting the new subscription fixture.No complete commit was skipped. The above are partial, file/hunk-level omissions.
Evidence
pnpm install --frozen-lockfile --prefer-offline: passed.node_modules/.bin/oxfmt --write <72 changed files>: passed.node_modules/.bin/oxlint -c .oxlintrc.json <72 changed files>: exit 0 after removing two stale local declarations.git diff --check 0276fca4ea1a3bbbd683d16a6a0574ed0e3a46f2: passed.openclaw/ci-gateis the runtime/typecheck merge gate. No leases used.Production versus test LOC
git diff --numstatagainst the pinned base: production +0/-0; test and test-support +11,291/-15,206, net -3,915 across 72 test/support files, plus baseline metadata +1/-4 in two files (74 files total). Support is included with tests, not production. No CODEOWNERS patterns match these paths.Review and first-head CI repairs
The first head's CI run 39390016783 exposed fixture type/lint errors and a steering-stream runtime failure. Auto-merge was disabled during repair; no baseline exception or blind rerun was used.
All six review findings were accepted. These five files were restored to pinned main in full, preserving provider-request steering proof, synchronous stream behavior, positive thinking compatibility, collaborative-steering refusal, secretless producer negative controls, and workflow-expression defaults:
src/agents/embedded-agent-runner/run/attempt-prompt-submit.steering.test.tssrc/agents/embedded-agent-runner/model-resolution-consistency.test.tssrc/auto-reply/reply/dispatch-from-config.queue-notices.test-support.tstest/scripts/plugin-clawhub-new-workflow.test.tstest/scripts/ci-workflow-complete.test.tsRemaining fixes restore the workflow-step generic return contract, observer return contract, exact deferred type, DOM/container/callback types, explicit mutation variants and fixture source/path checks. Synthetic process exits remain Error objects. No assertions were weakened to satisfy CI. The repair-only independent review found no actionable P0–P2 issues.
The next head's run 39391973694 found that the fixture source assertion also rejected deliberate literal new-file insertions. That assertion now applies only to callback edits of an existing file; literal insertions still reach the unchanged denial assertions. A focused independent review of this final helper repair is scoped-clean at P0–P2.
The third head's ratchet job measured three remaining timeout-race allowances in
test-projects-build-admission.test.ts, down from seven. The baseline entry is shrunk to that exact count; no allowance is added. The same job requested immediately preceding isolation explanations for three compacted mocks. Those comments now document the existing synthetic-process, target-provider, and model-catalog isolation without changing behavior. This metadata-only repair also received a scoped-clean P0–P2 review.The next exact-head ratchet job confirmed the timeout baseline passes and requested removal of the three now-obsolete mock hash entries. Those exact entries were deleted from
config/test-mock-exports-baseline.txt, with no additions. All other selected CI jobs passed on that head. This final three-line baseline-only prune is independently reviewed as scoped-clean.Per-shard replay inventory
Counts below describe the final replayed files against pinned main, including test-support. Declarations are a static textual count of
it/testand.eachcalls, not executed case counts. The supplied shard reports describe earlier campaign snapshots; their totals are not current-head runtime/coverage evidence. Every supplied report explicitly says coverage was not run in CI-only mode, so there is no in-shard coverage-total line to report.z0062: LOC 303 → 237 (-66); declarations 8 → 8 (0)
extensions/anthropic/provider-discovery.test.tsextensions/anthropic/session-catalog-discovery-budget.test.tsSource report coverage: not run (CI-only mode). The report's 25%-per-file target was not met; no coverage percentages or execution improvements are claimed.
z0064: LOC 2828 → 2505 (-323); declarations 43 → 39 (-4)
src/agents/embedded-agent-runner/run/attempt-prompt-submit.cache-observation.test.tssrc/agents/embedded-agent-runner/run/attempt-prompt-submit.runtime-replay.test.tssrc/agents/embedded-agent-runner/run/attempt-recovery.per-day-rate-limit.test.tssrc/agents/embedded-agent-runner/run/attempt-recovery.test-support.tssrc/agents/embedded-agent-runner/run/attempt-recovery.test.tssrc/agents/embedded-agent-runner/run/attempt-required-work.test.tssrc/agents/embedded-agent-runner/run/attempt-result.test.tsSource report coverage: not run (CI-only mode). The report's 25%-per-file target was not met; no coverage percentages or execution improvements are claimed.
z0065: LOC 3400 → 2705 (-695); declarations 74 → 67 (-7)
src/auto-reply/reply/agent-runner-execution-lifecycle.test.tssrc/auto-reply/reply/agent-runner-execution-message-authority.test.tssrc/auto-reply/reply/agent-runner-execution-message-tools.test.tssrc/auto-reply/reply/agent-runner-execution-results.test.tssrc/auto-reply/reply/agent-runner-execution-runtime.test.tssrc/auto-reply/reply/agent-runner-execution-settled-recovery.test.tssrc/auto-reply/reply/agent-runner-execution-suite.test-support.tssrc/auto-reply/reply/agent-runner-execution-terminal-failures.test.tssrc/auto-reply/reply/agent-runner-failure-reply.test.tsSource report coverage: not run (CI-only mode). The report's 25%-per-file target was not met; no coverage percentages or execution improvements are claimed.
z0066: LOC 2346 → 2045 (-301); declarations 24 → 19 (-5)
extensions/codex/src/app-server/session-history-control.test.tsextensions/codex/src/app-server/session-history.test-support.tsextensions/codex/src/app-server/settled-turn-context.test.tsextensions/codex/src/app-server/settled-turn-finalizer.native.test.tsextensions/codex/src/app-server/settled-turn-finalizer.test-support.tsextensions/codex/src/app-server/settled-turn-finalizer.test.tsSource report coverage: not run (CI-only mode). The report's 25%-per-file target was not met; no coverage percentages or execution improvements are claimed.
z0067: LOC 3115 → 2638 (-477); declarations 46 → 36 (-10)
src/auto-reply/reply/directive-handling.mixed-inline.test-helpers.tssrc/auto-reply/reply/directive-handling.model-status.test-support.tssrc/auto-reply/reply/dispatch-from-config.acp-controller.test.tssrc/auto-reply/reply/dispatch-from-config.continuation-settlement.test.tssrc/auto-reply/reply/dispatch-from-config.owner-settlement.test.tssrc/auto-reply/reply/dispatch-from-config.progress-privacy.test-support.tssrc/auto-reply/reply/dispatch-from-config.terminal-recovery.test.tsSource report coverage: not run (CI-only mode). The report's 25%-per-file target was not met; no coverage percentages or execution improvements are claimed.
z0068: LOC 2968 → 2663 (-305); declarations 80 → 78 (-2)
test/scripts/personal-credential-writer-guard.test.tstest/scripts/pinned-bun.test.tstest/scripts/plugin-binding-command-escape-docker.test.tstest/scripts/plugin-boundary-report.test.tstest/scripts/plugin-inventory-module-refs.test.tstest/scripts/plugin-npm-extended-stable-workflow.test.tstest/scripts/plugin-npm-publication-readback.test.tsSource report coverage: not run (CI-only mode). The report's 25%-per-file target was not met; no coverage percentages or execution improvements are claimed.
z0069: LOC 1875 → 1477 (-398); declarations 50 → 42 (-8)
src/agents/embedded-agent-runner/model.skip-agent-discovery-hooks.test.tssrc/agents/embedded-agent-runner/replay-history.test.tssrc/agents/embedded-agent-runner/run.plugin-runtime-refresh.integration.test.tsSource report coverage: not run (CI-only mode). The report's 25%-per-file target was not met; no coverage percentages or execution improvements are claimed.
z0070: LOC 3321 → 2880 (-441); declarations 67 → 63 (-4)
ui/src/pages/chat/components/chat-tool-card-identity.browser.test.tsui/src/pages/chat/components/chat-tool-cards.browser.test.tsxui/src/pages/chat/components/chat-tool-cards.test.tsxui/src/pages/chat/components/chat-tool-purpose.test.tsui/src/pages/chat/components/chat-transcript-controller.test.tsxui/src/pages/chat/components/chat-transcript-end-anchor.test.tsui/src/pages/chat/components/chat-transcript-end-follow.browser.test.tsui/src/pages/chat/components/chat-transcript.test-support.tsSource report coverage: not run (CI-only mode). The report's 25%-per-file target was not met; no coverage percentages or execution improvements are claimed.
z0071: LOC 3320 → 2987 (-333); declarations 58 → 58 (0)
test/scripts/test-projects-build-admission.test.tstest/scripts/test-projects-package-directories.test.tstest/scripts/test-skip-inventory.test.tstest/scripts/testbox-command-cwd.test.tstest/scripts/testbox-lease-freshness.test.tstest/scripts/ts-topology.test.tstest/scripts/tsdown-ai-package.test.tstest/scripts/tsdown-runtime-cache.test.tsSource report coverage: not run (CI-only mode). The report's 25%-per-file target was not met; no coverage percentages or execution improvements are claimed.
z0072: LOC 3319 → 2866 (-453); declarations 64 → 64 (0)
src/agents/apply-patch-ambiguous-hunk.test.tssrc/agents/apply-patch-update.test.tssrc/agents/apply-patch.test-support.tssrc/agents/auth-profiles.provider-refresh-lifecycle.test.tssrc/agents/auth-profiles.resolve-auth-profile-order.does-not-prioritize-lastgood-round-robin-ordering.test.tssrc/agents/bash-tools.exec-host-node.integration.test.tssrc/agents/bash-tools.exec-runtime.cleanup.test.tssrc/agents/bash-tools.exec-runtime.test.tsSource report coverage: not run (CI-only mode). The report's 25%-per-file target was not met; no coverage percentages or execution improvements are claimed.
z0073: LOC 2352 → 2229 (-123); declarations 16 → 14 (-2)
test/scripts/ci-windows-process-census.test-support.tstest/scripts/ci-windows-test-plan.test.tstest/scripts/ci-workflow-manifest.test-support.tstest/scripts/ci-workflow-ui-full.test.tstest/scripts/ci-workflow.test-support.tstest/scripts/cli-invocation.test.tstest/scripts/code-mode-matrix-config.test.tsSource report coverage: not run (CI-only mode). The report's 25%-per-file target was not met; no coverage percentages or execution improvements are claimed.