Repository navigation
test(gateway,plugins,ui): remove low-value tests (batch d174) - #174331
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 and parameterized cases across Gateway, plugins, Doctor, Telegram, and Control UI suites. Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 1 item remains Keep open: this maintainer-authored test cleanup has useful consolidation and no definite introduced defect found; the failed exact-head type check still needs classification. Priority: P3 Before merge
FindingsNone. Agent review detailsHow this fits togetherThe test layer supplies synthetic state and transport fixtures to production owners, then checks their observable contracts. flowchart LR
A[Test suites] --> B[Shared fixtures]
B --> C[Production owners]
C --> D[Synthetic transport and storage]
D --> E[Contract assertions]
Technical reviewBest possible solution: Retain the focused test consolidation and settle the unexplained type-check failure through the existing CI gate. Do we have a high-confidence way to reproduce the issue? No product bug is claimed; inspection confirms a test-only consolidation, and no local tests were run under the read-only constraint. Is this the best way to solve the issue? Shared fixtures and tables fit the maintenance goal, with inspected authorization, recovery, migration, and UI lifecycle scenarios retained. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 3148bd9b038d. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceTests -3019. Total -3019 across 60 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 16, 2026, 11:24 AM ET / 15:24 UTC. |
* commit '14e993fff3ecb84eb1d7c9724c4ceda235d797e4': (110 commits) fix(decisions): align accounting ratchet evidence feat(memory): activate PostgreSQL memory search and lifecycle (#174374) fix: join process shutdown and isolate runtime fixtures (#174359) refactor(ui): scope native gateway observation to Solid (#174367) refactor(ui): own canvas widget lifetime in Solid (#174370) perf(control-ui): keep agent avatar faces stable across agent publications (#174239) perf(models): release unused account catalog instructions (#174361) refactor(ui): own composer command menus in Solid stores (#174321) refactor(ui): separate sidebar filter state from view lifecycle (#174352) test(release): make artifact qualification deadlines deterministic fix(codex): preserve sandboxed process inspection and setup errors (#174284) fix(gateway): stop worker processes before draining their queues (#174312) refactor(agents): reuse prepared tool facts (#174349) test(gateway,plugins,ui): remove low-value tests (batch d174) (#174331) refactor(ui): replace MCP retirement host adapters with a factory (#174375) refactor(logging): remove redundant native success traces (#174330) refactor(test): remove dead control-plane fixture branches (#174377) refactor(mcp): remove test-only session runtime seams (#174347) feat(matrix): account-root state databases follow the selected engine (#174315) refactor(discord): collapse private interaction and factory seams (#174322) ...
* commit '14e993fff3ecb84eb1d7c9724c4ceda235d797e4': (110 commits) fix(decisions): align accounting ratchet evidence feat(memory): activate PostgreSQL memory search and lifecycle (#174374) fix: join process shutdown and isolate runtime fixtures (#174359) refactor(ui): scope native gateway observation to Solid (#174367) refactor(ui): own canvas widget lifetime in Solid (#174370) perf(control-ui): keep agent avatar faces stable across agent publications (#174239) perf(models): release unused account catalog instructions (#174361) refactor(ui): own composer command menus in Solid stores (#174321) refactor(ui): separate sidebar filter state from view lifecycle (#174352) test(release): make artifact qualification deadlines deterministic fix(codex): preserve sandboxed process inspection and setup errors (#174284) fix(gateway): stop worker processes before draining their queues (#174312) refactor(agents): reuse prepared tool facts (#174349) test(gateway,plugins,ui): remove low-value tests (batch d174) (#174331) refactor(ui): replace MCP retirement host adapters with a factory (#174375) refactor(logging): remove redundant native success traces (#174330) refactor(test): remove dead control-plane fixture branches (#174377) refactor(mcp): remove test-only session runtime seams (#174347) feat(matrix): account-root state databases follow the selected engine (#174315) refactor(discord): collapse private interaction and factory seams (#174322) ...
* commit '0c6c7ee5837ed93f6fb09ca58b280e76878c21f1': (109 commits) feat(memory): activate PostgreSQL memory search and lifecycle (#174374) fix: join process shutdown and isolate runtime fixtures (#174359) refactor(ui): scope native gateway observation to Solid (#174367) refactor(ui): own canvas widget lifetime in Solid (#174370) perf(control-ui): keep agent avatar faces stable across agent publications (#174239) perf(models): release unused account catalog instructions (#174361) refactor(ui): own composer command menus in Solid stores (#174321) refactor(ui): separate sidebar filter state from view lifecycle (#174352) test(release): make artifact qualification deadlines deterministic fix(codex): preserve sandboxed process inspection and setup errors (#174284) fix(gateway): stop worker processes before draining their queues (#174312) refactor(agents): reuse prepared tool facts (#174349) test(gateway,plugins,ui): remove low-value tests (batch d174) (#174331) refactor(ui): replace MCP retirement host adapters with a factory (#174375) refactor(logging): remove redundant native success traces (#174330) refactor(test): remove dead control-plane fixture branches (#174377) refactor(mcp): remove test-only session runtime seams (#174347) feat(matrix): account-root state databases follow the selected engine (#174315) refactor(discord): collapse private interaction and factory seams (#174322) refactor(feishu): reuse streaming merge in dispatcher tests (#174371) ...
* commit '14e993fff3ecb84eb1d7c9724c4ceda235d797e4': (110 commits) fix(decisions): align accounting ratchet evidence feat(memory): activate PostgreSQL memory search and lifecycle (#174374) fix: join process shutdown and isolate runtime fixtures (#174359) refactor(ui): scope native gateway observation to Solid (#174367) refactor(ui): own canvas widget lifetime in Solid (#174370) perf(control-ui): keep agent avatar faces stable across agent publications (#174239) perf(models): release unused account catalog instructions (#174361) refactor(ui): own composer command menus in Solid stores (#174321) refactor(ui): separate sidebar filter state from view lifecycle (#174352) test(release): make artifact qualification deadlines deterministic fix(codex): preserve sandboxed process inspection and setup errors (#174284) fix(gateway): stop worker processes before draining their queues (#174312) refactor(agents): reuse prepared tool facts (#174349) test(gateway,plugins,ui): remove low-value tests (batch d174) (#174331) refactor(ui): replace MCP retirement host adapters with a factory (#174375) refactor(logging): remove redundant native success traces (#174330) refactor(test): remove dead control-plane fixture branches (#174377) refactor(mcp): remove test-only session runtime seams (#174347) feat(matrix): account-root state databases follow the selected engine (#174315) refactor(discord): collapse private interaction and factory seams (#174322) ...
* commit '0c6c7ee5837ed93f6fb09ca58b280e76878c21f1': (109 commits) feat(memory): activate PostgreSQL memory search and lifecycle (#174374) fix: join process shutdown and isolate runtime fixtures (#174359) refactor(ui): scope native gateway observation to Solid (#174367) refactor(ui): own canvas widget lifetime in Solid (#174370) perf(control-ui): keep agent avatar faces stable across agent publications (#174239) perf(models): release unused account catalog instructions (#174361) refactor(ui): own composer command menus in Solid stores (#174321) refactor(ui): separate sidebar filter state from view lifecycle (#174352) test(release): make artifact qualification deadlines deterministic fix(codex): preserve sandboxed process inspection and setup errors (#174284) fix(gateway): stop worker processes before draining their queues (#174312) refactor(agents): reuse prepared tool facts (#174349) test(gateway,plugins,ui): remove low-value tests (batch d174) (#174331) refactor(ui): replace MCP retirement host adapters with a factory (#174375) refactor(logging): remove redundant native success traces (#174330) refactor(test): remove dead control-plane fixture branches (#174377) refactor(mcp): remove test-only session runtime seams (#174347) feat(matrix): account-root state databases follow the selected engine (#174315) refactor(discord): collapse private interaction and factory seams (#174322) refactor(feishu): reuse streaming merge in dispatcher tests (#174371) ...
…aw#174331) * test(telegram): deslop x7171 tests * test(plugins): deslop x7168 tests * test(plugins): deslop x7168 tests * test(plugins): deslop x7168 tests * test(infra): deslop x7170 tests * test(infra): deslop x7170 tests * test(infra): deslop x7170 tests * test(doctor): deslop x7161 tests * test(doctor): deslop x7161 tests * test(doctor): deslop x7161 tests * test(agentsapi): deslop x7169 tests * test(agentsapi): deslop x7169 tests * test(agentsapi): deslop x7169 tests * test(system-agent): deslop x7173 tests * test(system-agent): deslop x7173 tests * test(system-agent): deslop x7173 tests * test(plugins): deslop x7175 tests * test(plugins): further deslop x7175 tests * test(plugins): consolidate x7175 fixtures * test(sessions): deslop x7174 tests * test(sessions): deslop x7174 tests * test(desktop): deslop x7179 tests * test(desktop): deslop x7179 tests * test(desktop): deslop x7179 tests * test(config): deslop x7172 tests * test(config): deslop x7172 tests * test(config): deslop x7172 tests * test: repair d174 fixtures for current contracts * test: retain d174 cleanup and security coverage
What Problem This Solves
Reduces repeated fixture setup and assertion scaffolding in the test suite without changing production behavior.
User Impact
No production code, public API, schema, dependency, or visual changes. This batch removes a net 3,992 test/support lines (+8,306 / -12,298) across 59 files. Production LOC: +0 / -0.
Why This Change Was Made
Replayed 27 of the 30 supplied commits, plus CI-driven repair commits, onto main at
6e8bb0f3aebfdc878635cc7c2c1548cb9f467da0. Shared fixtures and table-driven cases replace repeated setup. Current-main cases and ownership changes take precedence over the older campaign source.Replay decisions
5ab5158f487and3a7f1d655ae(x7167): main retiredsession-history-events.test-support.tsand changed history reads to asynchronous preparation / worker-owned session operations (including refactor(runtime): prepare config, auth, and session facts asynchronously #169714 and refactor(sessions): move bundled session mutations to worker-owned SDK operations #168453). Do not resurrect the retired helper.a4cdeaf00b8(x7171): the follow-up broadly overlaps newer webhook, approval, transport-lifecycle, and formatting cases. Kept the first Telegram cleanup, preserving main's conflicting webhook opt-out, eligibility, and reserved-route cases.json-files.test.tsand omitted later conflictinginstall-safe-path.test.tshunks. Retained newline, synchronous-throw, Windows-write, successful-path, and symlink coverage. The first nonconflicting install-path cleanup remains.management-service.install.test.ts, retaining newer compatibility-fallback and explicit version/digest cases.meeting-capture.test.tsx, preserving newer health-refresh and whitespace-validation cases.CI-driven correction
The initial head failed runtime tests, type checks, type-aware lint, and the mock-export guard in CI run 38918881066. These are batch failures, not claimed pre-existing failures.
Dropped the following complete file rewrites back to the pinned main version because their fixture rewrites failed runtime or mock-contract checks:
extensions/agentsapi/agentsapi-client.test.ts,src/gateway/desktop/audio-bridge.test.ts,src/plugins/management-service.capability-consent.test.ts,src/plugins/management-service.catalog.test.ts,src/plugins/management-service.inspect.test.ts,src/plugins/management-service.install-compensation.test.ts,src/plugins/registry.diagnostics.test.ts,src/plugins/registry.runtime-config.test.ts,src/commands/doctor/shared/missing-configured-plugin-install.test.ts,ui/src/pages/config/config-page.session-observer.test.ts.The remaining corrections preserve the existing assertions: current helper names and object-shaped attempt arguments; explicit action/schema/database types; closure-only fixture methods declared with
this: void; unknown-error classification through the shared filesystem helper; and the existing migration policy asserted through its enclosing object shape. The earlier local review preparation was stopped before a verdict because this head superseded it; a fresh isolated review targets the repaired commit. Only formatting, plain lint, and diff checks ran locally.Independent review
The three-pass review returned five findings. Two were accepted: restore QQBot environment cleanup, and preserve distinct sensitive-command parser/redaction cases. QQBot now restores its env stubs after every test, and the approval-router test file is unchanged from main.
Three findings were rejected against current source and completed hosted checks: the dispatcher helper throws before returning a missing dispatcher; all managed-desktop constructor fields are optional; the host-source suite already calls
vi.restoreAllMocks()after every test.CI run 38921045199 completed with all runtime, lint, mock-contract, and other checks passing except one missing return type on the first archive-fixture callback. That callback now explicitly returns
Promise<string>. No tests or assertions were weakened, no baseline exception is claimed, and the updated head still requires hosted CI.Evidence
pnpm install --frozen-lockfile --prefer-offline: passed.node_modules/.bin/oxfmt --write <59 changed files>: passed; no uncommitted formatting changes.node_modules/.bin/oxlint -c .oxlintrc.json <59 changed files>: exit 0.git diff --check origin/main...HEADandgit diff --check origin/main: passed.openclaw/ci-gateis the behavioral gate; independent review runs alongside CI.Rebased test/support inventory
LOC includes support helpers. Declarations count line-start
it/testcall sites, including table declarations, not expanded parameter rows. Reduced declarations therefore do not by themselves measure case loss. Counts below are from the actual rebased tree, not the older shard-report snapshots.Files by shard
extensions/telegram/src/doctor.test.ts,extensions/telegram/src/draft-stream.test.ts,extensions/telegram/src/exec-approvals.test.ts,extensions/telegram/src/fetch.test.ts,extensions/telegram/src/group-access.base-access.test.ts.src/plugins/public-surface-loader.test.ts,src/plugins/public-surface-runtime.test.ts,src/plugins/public-surface.test-support.ts,src/plugins/registry-ownership.test-support.ts,src/plugins/registry.provider-like.test.ts,src/plugins/registry.runtime-config.sqlite.test.ts,src/plugins/registry.runtime-incognito.test.ts,src/plugins/registry.runtime-session-ownership.test.ts.src/infra/install-package-dir.rollback.test.ts,src/infra/install-package-dir.test.ts,src/infra/install-safe-path.test.ts,src/infra/install-source-utils.test.ts,src/infra/kysely-sync.test.ts,src/infra/message-tool-run-outcome-store.test.ts.src/commands/doctor/shared/legacy-config-migrations.qqbot.test.ts,src/commands/doctor/shared/legacy-config-migrations.runtime.models.test.ts,src/commands/doctor/shared/legacy-config-migrations.runtime.retired.test.ts,src/commands/doctor/shared/legacy-model-reference-migration.test.ts,src/commands/doctor/shared/legacy-web-tools-migrate.test.ts.extensions/agentsapi/agentsapi-attempt.instructions.test.ts,extensions/agentsapi/agentsapi-attempt.test-helpers.ts,extensions/agentsapi/agentsapi-attempt.test.ts,extensions/agentsapi/agentsapi-environment.test.ts,extensions/agentsapi/agentsapi-files.test.ts,extensions/agentsapi/agentsapi-harness.migration.test-helpers.ts,extensions/agentsapi/agentsapi-harness.persistence.test-helpers.ts.src/system-agent/chat-wizard-host.test.ts,src/system-agent/hosted-setup.memory.test.ts,src/system-agent/hosted-setup.runtime.test.ts.src/plugins/management-service.lifecycle-cache.test.ts,src/plugins/management-service.workspace-inventory.test.ts.ui/src/lib/sessions/session-permission-projection.test.ts,ui/src/lib/sessions/session-permission-refresh-order.test.ts,ui/src/lib/sessions/session-pin-mutations.test.ts,ui/src/lib/sessions/session-placement-event-fanout.test.ts,ui/src/lib/sessions/session-placement-startup.test.ts,ui/src/lib/sessions/session-roster-projection.test.ts,ui/src/lib/sessions/session-roster-refresh.events.test.ts,ui/src/lib/sessions/session-roster-refresh.test-support.ts,ui/src/lib/sessions/session-roster-refresh.test.ts.src/gateway/desktop/attachment.test.ts,src/gateway/desktop/audio.test-support.ts,src/gateway/desktop/computer-authority.runtime.test.ts,src/gateway/desktop/computer-process.test.ts,src/gateway/desktop/computer-service.test.ts,src/gateway/desktop/computer.test-support.ts,src/gateway/desktop/host-source.test.ts,src/gateway/desktop/managed-linux-audio.test.ts,src/gateway/desktop/managed-linux.test.ts.ui/src/pages/config/appearance-background.browser.test.tsx,ui/src/pages/config/config-page.custom-theme.test.ts,ui/src/pages/config/config-page.test.ts,ui/src/pages/config/memory-memories.test.tsx,ui/src/pages/config/memory.test.tsx.