Repository navigation
test(agents,gateway,sdk,ui): remove low-value tests (batch d206) - #175294
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. |
d5c2e6f to
0095613
Compare
|
Codex review: needs changes before merge. What this changesThis PR consolidates test fixtures and assertions across agents, Gateway, Codex, SDK, updates, node workers, and UI suites. Example: Running the repository checks after consolidating transcript-repair mocks.
Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 2 items remain Keep open: this maintainer-directed test consolidation has value, but it leaves two obsolete baseline records that cause CI checks to fail. Priority: P3 Before merge
Findings
Agent review detailsHow this fits togetherThese tests exercise runtime owners through synthetic tools, transports, filesystem fixtures, and browser interactions; CI consumes their results and enforces shrinking exception baselines. flowchart LR
A[Test scenarios] --> B[Shared fixtures]
B --> C[Runtime owners]
C --> D[Observed results]
D --> E[Contract assertions]
F[Exception baselines] --> G[CI checks]
E --> G
Technical reviewBest possible solution: Retain the test consolidation and remove the obsolete exception entries without weakening either baseline check. Do we have a high-confidence way to reproduce the issue? The baseline defects follow directly from the changed fixtures and checker implementations, with the stale compaction entry independently confirmed by exact-head CI annotations; no target code was executed. Is this the best way to solve the issue? Shared fixtures and table-driven cases fit the repository’s test-value policy, but the corresponding exception inventories must shrink with the tests. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 90e9222398af. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceAcceptance criteria:
What I checked:
Likely related people:
PR surfaceTests -2694. Total -2694 across 65 files. Added test files: 6. 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 17, 2026, 3:57 AM ET / 07:57 UTC. |
9aa93f7 to
c503ec1
Compare
c503ec1 to
0d3896a
Compare
…nclaw#175294) * test(agents): deslop x7512 tests * test(agents): deslop x7512 tests * test(agents): deslop x7512 tests * test(gateway): deslop x7516 tests * test(gateway): deslop x7516 tests * test(gateway): deslop x7516 tests * test(node-host): deslop x7514 tests * test(codex): deslop x7518 tests * test(codex): deslop x7518 fixtures and assertions * test(codex): deslop x7518 fixture setup * test(package-update): deslop x7522 tests * test(package-update): deslop x7522 tests * test(package-update): deslop x7522 tests * test(sdk): deslop x7519 tests * test(sdk): further deslop x7519 tests * test(sdk): deslop x7519 tests * test(sessions): deslop x7520 tests * test(sessions): deslop x7520 tests * test(sessions): deslop x7520 tests * test(gateway): deslop x7521 tests * test(gateway): deslop x7521 tests * test(gateway): deslop x7521 tests * test(ui): deslop x7525 tests * test(ui): deslop x7525 tests * test(ui): deslop x7525 tests * test(code-mode): deslop x7523 tests * test(code-mode): deslop x7523 tests * test(code-mode): deslop x7523 tests * test: repair d206 fixture regressions from CI * test: retain independent d206 regression coverage * test: retain subagent restart fixture baseline * test: shrink d206 mock export exceptions
What Problem This Solves
Consolidates repeated test fixtures and equivalent assertions in campaign batch d206.
User Impact
No production behavior, public API, configuration, or visual changes. Changes are tests, test-support code, and a shrink-only mock-exception baseline update. Existing distinct authority, durability, recovery, ordering, and lifecycle scenarios are retained; declarations are sometimes folded into tables or shared registrations.
Why This Change Was Made
Replay the selected 29 campaign commits onto pinned main
61de5dacdabb58640ab51b682d5ed032d4d60118, retaining current-main additions. Applied 28 commits; skipped332ba5c272665be66b9a9be14c4bbbda2f5b6b10(x7506) because its channel fixture consolidation assumes earlier helpers absent from main and conflicts broadly with the current recovery tests.Conflict decisions:
src/node-host/node-worker-turn-store.test.ts, retaining main's newer durable receipt, container, and predecessor-upgrade coverage and fixture start/finish contract. Kept the other eight files, including cleanly merged transfer/workspace changes.packages/sdk/src/index.test.tsandtransport.test.tsin all three SDK commits, andrun-event-replay.recovery.test.tsin the latter two. Current main expanded wait-status/reconnect scenarios and recovery timing instrumentation win. Kept all nonconflicting SDK files.ui/src/e2e/avatar-initial-emoji.e2e.test.tsacross the three UI commits. Main now uses autosave; retained that current interaction contract rather than reintroducing the removed Save button.src/infra/package-update-integrity-hasher.test.ts,src/infra/package-update-publication-boundary.test.ts,ui/src/e2e/background-presentation.e2e.test.ts, andui/src/e2e/background-work.real-gateway.test-support.ts. Their pinned-base implementations remain intact. Repaired missing imports/fixture return fields, readonly construction, typed literal/tuple/callback contracts, mock-isolation reasons, method binding, and the offscreen multi-iframe locator. Addedthis: voidto the existing closure-only Codex test-harness sender.CODEOWNERS: no changed paths match the current CODEOWNERS rules.
Evidence
CI-only validation, as requested:
pnpm install --frozen-lockfile --prefer-offlinepassed; directnode_modules/.bin/oxfmt --write <59 existing changed files>passed (no additional diff); directnode_modules/.bin/oxlint -c .oxlintrc.json <59 existing changed TS files>exited 0;git diff --check 61de5dacdabb58640ab51b682d5ed032d4d60118exited 0.No local Vitest, check-changed, typecheck, build, coverage, or Testbox runs were performed. No Testbox leases were created. Runtime proof and CI timing are pending hosted
openclaw/ci-gateon this head. Independent review runs during CI.The source shard reports explicitly say coverage was not run under CI-only mode; there are no in-shard coverage totals to quote and no measured <=1% coverage claim. Their metrics describe an earlier pass; the following LOC and declaration deltas are freshly measured for the cumulative replay against the pinned base. Declaration counts are simple static line-start
it/testcall counts, not expanded case counts, and omit multiline typed declarations. Fewer declarations must not be read as deleted scenarios.Production LOC: +0/-0. Test and test-support LOC: +10,666/-15,516, net -4,850 across 60 files (including one deleted support file). Mock-exception baseline: +0/-4 in one additional file, for a total net reduction of 4,854 lines across 61 files.
First hosted run: 39013891914 exposed fixture/type/lint regressions; repaired in
9aa93f757919f74b2e5ab2cc71f45e1344f5d07e. The same run also has an unrelated missing import inui/src/components/link-reader-metadata.test.ts(./link-reader-panel.ts), outside this diff. Current main3a539a9b9ab9f5b48cadd97bc377cc191b566c9estill contains that import and has no file at that path. This is source evidence only, not the requested runnable baseline proof; no inherited-failure merge exception is claimed. New-head CI remains authoritative.Full independent review completed in four passes. Accepted five findings: restored the original Code Mode bridge lifecycle and MCP suites, compaction-handoff authority proof, and dispatch-error display-sanitization proof by dropping those four files' cleanup; restored the same-client start-and-steer request in the FIFO test. Rejected the cutoff-mode finding after direct source/caller inspection: raw/JSON cutoff modes already had no callers at the pinned base; only the URL-encoded cutoff case exists and remains unchanged in the untouched supervisor suite.
The second hosted run 39014469848 passed the repaired UI E2E and most other jobs. Its remaining batch issues were the session-list request fixture's unknown narrowing, an unbound fixture update method, and the dispatch-error fixture context type; fixed or dropped in the final correction. Other failures were outside this diff: link-reader metadata import, plugin install-record fixture types, and exec-scope mock exports. Rebased onto repaired main
61de5dacdabb58640ab51b682d5ed032d4d60118without conflicts, rather than bypassing those checks. The latest exact-head CI run is 39015689352 atc503ec1d18478f1b730956bc24e1256298170119; final correction review finished scoped-clean (no actionable P0–P2 findings). No inherited-failure/admin exception is claimed.Final CI follow-up: the last job in run 39015689352 exposed five timeouts in the changed
test/gateway-subagent-restart.e2e.test.ts. Dropped that file's entire cleanup, restoring the reviewed main implementation without changing timers/assertions. Main commit98375d4b624fixed the remaining unrelated exec-scope mock-isolation marker. Rebased without conflicts onto61de5dacdabb58640ab51b682d5ed032d4d60118, repeated permitted formatting/plain-lint/diff gates successfully, and re-armed the new head0d3896a515defe9754da02a483a5478306f7c4b7. Hosted CI is the final runtime gate.Final ratchet repair: CI on
0d3896a515defe9754da02a483a5478306f7c4b7requested removal of exactly four obsolete rows inconfig/test-mock-exports-baseline.txt, matching the explicitly isolated mocks in assistant-transcript-repair and delivery tests. Removed only those four CI-identified rows; the independent hook-helper exception remains. This is a shrink-only baseline change, with no weakened guard.Per-shard files and cumulative replay metrics
x7512
src/agents/command/assistant-transcript-repair.test.tssrc/agents/command/attempt-execution.announce.test-support.tssrc/agents/command/attempt-execution.cli-mcp.test.tssrc/agents/command/attempt-execution.cli.test-support.tssrc/agents/command/cli-compaction.test-support.tssrc/agents/command/cli-compaction.test.tssrc/agents/command/delivery.test.tsx7516
test/gateway-restart.test-support.tstest/gateway-rpc-exporters.test.tstest/gateway-steer-fifo.e2e.test.tstest/gateway-widget-restart.e2e.test.tstest/git-hooks-pre-commit.test.tsx7506
Skipped; no files changed.
x7514
src/node-host/node-worker-supervisor.fixture.test-support.tssrc/node-host/node-worker-supervisor.settlement.test-support.tssrc/node-host/node-worker-supervisor.test-support.tssrc/node-host/node-worker-transfer-client.fixture.test-support.tssrc/node-host/node-worker-transfer-client.git.test.tssrc/node-host/node-worker-transfer-client.lifetime.test.tssrc/node-host/node-worker-transfer-client.test.tssrc/node-host/node-worker-workspace-manifest.test.tsx7518
extensions/codex/src/app-server/canonical-fork-native.test-support.tsextensions/codex/src/app-server/canonical-fork.test-support.tsextensions/codex/src/app-server/client-catalog-preview.test.tsextensions/codex/src/app-server/client-runtime.test.tsextensions/codex/src/app-server/client-startup-lifetime.test.tsextensions/codex/src/app-server/client.test.tsextensions/codex/src/app-server/compact.test-support.tsextensions/codex/src/app-server/test-support.tsx7522
src/infra/package-update-filesystem.test.tssrc/infra/package-update-lifecycle.test.tssrc/infra/package-update-overrides.e2e.test.tssrc/infra/package-update-publication-durability.test.tssrc/infra/package-update-publication-ownership.test.tssrc/infra/package-update-publication.test-support.tssrc/infra/package-update-sync.test-support.tsx7519
packages/sdk/src/chat-stream.test.tspackages/sdk/src/index.e2e.test.tspackages/sdk/src/package.e2e.test-support.tspackages/sdk/src/run-events-terminal.test.tspackages/sdk/src/run-reconnect.websocket.test.tsx7520
ui/src/lib/sessions/index-list.test.tsui/src/lib/sessions/index-subscriptions.test.tsui/src/lib/sessions/index-supplemental-reconcile.test.tsui/src/lib/sessions/list-options.test.tsui/src/lib/sessions/navigation.test.tsui/src/lib/sessions/pull-request-state.test.tsx7521
src/gateway/server-methods/chat-send-commentary-media.test.tssrc/gateway/server-methods/chat-send-diagnostics.test.tssrc/gateway/server-methods/chat-send-direct-followup.test.tssrc/gateway/server-methods/chat-send-global-identity.test.tsx7525
ui/src/e2e/board-a2ui.e2e.test.tsui/src/e2e/board-a2ui.test-support.tsui/src/e2e/board-browser.test-support.tsui/src/e2e/board-mcp-app.e2e.test.tsui/src/e2e/board-split-transcript.e2e.test.tsui/src/e2e/browser-auth-recovery.e2e.test.tsui/src/e2e/browser-route-handoff.e2e.test.tsx7523
src/agents/code-mode.controlled-tool.test-support.tssrc/agents/code-mode.test.tssrc/agents/code-mode.wait.test.ts