Repository navigation
test(gateway,plugins,cli,ui): remove low-value tests (batch d252) - #176399
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review blockedAutomated review did not run, so no review verdict was produced. Reason: The input-safety check rejected material in this revision. No detected value, path, or scanner output is reproduced here. Automatic review is on hold, including after source changes. Request a fresh re-review after resolving the failure; maintainers can also release the hold through an intentional scanner-policy update. Next step: If this is a genuine credential, remove and rotate it. If it is an intentional test fixture, a maintainer must review and qualify it. |
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. |
ea4267b to
7b629da
Compare
## What Problem This Solves Fixes: Knip `deadcode:exports` on main reports four exports that recent refactors left without a consumer. #176447 does not cover them. ## User Impact No user-visible change. ## Why This Change Was Made - `src/cron/service.test-harness.ts: createCronServiceStateWithJobs`: #175975 removed its last callers, so it is deleted. - `extensions/copilot/src/attempt.test-support.ts: createStubToolBridge`: #176003 added an exported copy that nothing imports, so it is deleted. The file is back to its state before #176003. - `src/daemon/inspect-markers.ts: classifyGatewayCommand`: #176469 removed the only outside import, so it is now module-private. - `src/gateway/server-cron.events.test-support.ts: CRON_WAIT_TIMEOUT_MS`: #176399 removed the last outside caller, so it is now module-private. No ignores were added. ## Evidence - `pnpm run deadcode:exports` on this branch, diffed against main `48439195832`: only these four entries disappear. - `extensions/copilot/src/attempt.test.ts` and `src/daemon/inspect.test.ts` pass in full. `oxfmt` and `oxlint` are clean. Co-authored-by: Ayaan Zaidi <[email protected]>
…enclaw#176399) * test(gateway): deslop x8038 tests * test(gateway): deslop x8038 tests * test(gateway): deslop x8038 tests * test(ui): deslop x8039 tests * test(ui): deslop x8039 tests * test(ui): deslop x8039 tests * test(plugins): deslop x8033 tests * test(plugins): deslop x8033 tests * test(feishu): deslop x8043 tests * test(cli): deslop x8035 tests * test(cli): deslop x8035 tests * test(cli): deslop x8035 tests * test(gateway): deslop x8037 tests * test(gateway): deslop x8037 tests * test(gateway): deslop x8042 tests * test(gateway): deslop x8042 tests * test(node-host): deslop x8041 tests * test(node-host): deslop x8041 tests * test(node-host): deslop x8041 tests * test(agents): deslop x8040 tests * test(agents): deslop x8040 tests * test(agents): deslop x8040 tests * test(harness): deslop x8044 tests * test(plugin-sdk): deslop x8049 tests * test(plugin-sdk): deslop x8049 tests * test(harness): deslop x8044 tests * test(codex): deslop x8050 tests * test(codex): deslop x8050 tests * test(codex): deslop x8050 tests * test: preserve reviewed coverage and repair CI fixtures * test: drop uncertain chat fixture cleanup and prune stale baselines
…6562) ## What Problem This Solves Fixes: Knip `deadcode:exports` on main reports four exports that recent refactors left without a consumer. openclaw#176447 does not cover them. ## User Impact No user-visible change. ## Why This Change Was Made - `src/cron/service.test-harness.ts: createCronServiceStateWithJobs`: openclaw#175975 removed its last callers, so it is deleted. - `extensions/copilot/src/attempt.test-support.ts: createStubToolBridge`: openclaw#176003 added an exported copy that nothing imports, so it is deleted. The file is back to its state before openclaw#176003. - `src/daemon/inspect-markers.ts: classifyGatewayCommand`: openclaw#176469 removed the only outside import, so it is now module-private. - `src/gateway/server-cron.events.test-support.ts: CRON_WAIT_TIMEOUT_MS`: openclaw#176399 removed the last outside caller, so it is now module-private. No ignores were added. ## Evidence - `pnpm run deadcode:exports` on this branch, diffed against main `7451c5780e5`: only these four entries disappear. - `extensions/copilot/src/attempt.test.ts` and `src/daemon/inspect.test.ts` pass in full. `oxfmt` and `oxlint` are clean. Co-authored-by: Ayaan Zaidi <[email protected]>
What Problem This Solves
Reduces repeated test fixtures and assertion boilerplate across the d252 campaign batch.
User Impact
No production behavior, public API, configuration, or visual change. 68 changed files are tests or test support, with 4,132 net lines removed (+7,574 / -11,706). One mock-export baseline file loses nine obsolete entries, for 4,141 total net lines removed across 69 files. Production: +0 / -0.
Why This Change Was Made
Replayed 29 of 30 supplied commits and a reviewed correction onto pinned main 2e98e99. Initial base was 3561a19; refreshed because GitHub reported a conflicting merge ref. During the rebase, kept main's entire Codex attempt-context test file, including newer deferred-tool prompt-report coverage, and dropped its cleanup hunks. Consolidated fixtures and table cases while preserving distinct security, authorization, lifecycle, and recovery checks.
Skipped 3aeb9fe3acf3126d83a92e5b8c82fd7e7cef4302 (x8036): extensive conflicts with current script fixtures and action behavior. For conflicting files, kept current-main content and dropped the corresponding cleanup hunks: UI custom-theme and exec-approval; plugin runtime-agent; gateway server.config-patch; node-host desktop-stream-command. Later node-host config cleanup hunks were also dropped, retaining the clean first-round changes and all main-added cases. Nonconflicting changes were retained. Fixed one newly shadowed runtimeScope binding by reusing the suite-owned binding. No production seams changed. Pruned exactly the nine obsolete mock-export baseline entries reported by hosted CI after adding explicit isolation reasons. No changed paths match CODEOWNERS.
Independent review found three P2 issues: a metadata-only test changed session identity; no-Git-context coverage was removed; and runner capability negotiation coverage was removed. All accepted: restored the three complete main files. Hosted typed lint/type checks also identified fixture issues. Restored utility-model, sessions-import, dev-gateway, Feishu transport-status, and goal-lifecycle tests/support instead of broadening their cleanup. Corrected literal/nullable fixture types, synchronous event result normalization, context-free callback declarations, and cleanup ordering; restored explicit mock-isolation reasons. The cron collector now awaits events through the owning test signal instead of introducing a wall-clock timeout. No review findings rejected. Independent correction review completed clean at P0–P2.
The rebased CI run (https://github.com/openclaw/openclaw/actions/runs/39165449848) confirmed the timeout-race repair and exposed an uninitialized ACP fixture variable plus those stale baseline entries; both corrected. The X-publication composition test timed out again without matching hourly-main failure evidence. Dropped the entire x8042 chat-fixture refactor and restored all its files byte-for-byte from the pinned main instead of weakening the test or claiming it pre-existing.
Evidence
Per-shard replay inventory and static counts
Counts below are from the actual replay versus pinned main; declaration counts are static it/test call-site counts (table rows are not expanded). LOC includes test support.
x8033
src/plugins/runtime/gateway-request-scope.test.tssrc/plugins/runtime/index.test.tssrc/plugins/runtime/load-context.test.tssrc/plugins/runtime/metadata-registry-loader.test.tssrc/plugins/runtime/runtime-agent.acp-binding.test.tssrc/plugins/runtime/runtime-agent.ingress.integration.test.tssrc/plugins/runtime/runtime-channel.test.tsx8035
src/cli/secrets-store-cli.kind-inheritance.test.tssrc/cli/secrets-store-cli.test-support.tssrc/cli/secrets-store-cli.test.tssrc/cli/security-cli.test.tssrc/cli/session-ref.test.tssrc/cli/skills-cli.commands.test.tssrc/cli/skills-cli.test-support.tssrc/cli/skills-cli.test.tssrc/cli/skills-cli.verify.test.tsx8037
src/gateway/server.cron.test.tsx8038
src/gateway/control-ui-session-prs-branch.test.tssrc/gateway/control-ui-session-prs-host.test.tssrc/gateway/control-ui-session-prs-landing.test.tssrc/gateway/control-ui-session-prs-retention.test.tssrc/gateway/control-ui-session-prs.test-support.tssrc/gateway/conversation-list.test.tsx8039
ui/src/app/lazy-custom-element.test.tsui/src/app/lazy-shell-action.test.tsui/src/app/link-reader-routing.test.tsui/src/app/mentions.test.tsui/src/app/mount-fallback.test.tsx8040
src/agents/vllm-serving-context.e2e.test.tssrc/agents/watched-sessions-prompt.test.tssrc/agents/workspace-access.test.tssrc/agents/workspace-alias-rebind.test.tssrc/agents/workspace.bootstrap-cache.test.tssrc/agents/workspace.bootstrap-read-diagnostics.test.tssrc/agents/workspace.test.tsx8041
src/node-host/auto-update-compatibility.test.tssrc/node-host/auto-update-install.test.tssrc/node-host/auto-update.test-support.tssrc/node-host/auto-update.test.tssrc/node-host/claude-skill-session.test.tssrc/node-host/config.test.tssrc/node-host/gateway-candidate-connection.test.tsx8043
extensions/feishu/src/monitor.card-action.lifecycle.test-support.tsextensions/feishu/src/monitor.message-handler.ingress.test.tsextensions/feishu/src/monitor.vc-meeting-invited-handler.test.tsx8044
src/agents/harness/host-capability.skill-pins.test.tssrc/agents/harness/host-model-execution.test.tssrc/agents/harness/host-skills.test.tssrc/agents/harness/isolated-completion.native-auth.test.tssrc/agents/harness/lifecycle-hook-helpers.test.tssrc/agents/harness/mediated-delegation-effects.test.tssrc/agents/harness/model-catalog.test.tssrc/agents/harness/native-hook-relay-store.test.tsx8049
src/plugin-sdk/browser-maintenance.test.tssrc/plugin-sdk/channel-config-helpers.test.tssrc/plugin-sdk/channel-entry-contract.test.tssrc/plugin-sdk/channel-entry.test-support.tssrc/plugin-sdk/channel-inbound.test.tssrc/plugin-sdk/channel-ingress-runtime.test.tssrc/plugin-sdk/channel-lifecycle.test.tssrc/plugin-sdk/channel-policy.test.tssrc/plugin-sdk/core.test.tsx8050
extensions/codex/src/app-server/app-server-policy.test.tsextensions/codex/src/app-server/attempt-client-cleanup.test.tsextensions/codex/src/app-server/attempt-startup-computer-use.test.tsextensions/codex/src/app-server/attempt-startup-retry.test.tsextensions/codex/src/app-server/attempt-startup.test-support.tsextensions/codex/src/app-server/attempt-steering.test.tsBaseline maintenance
config/test-mock-exports-baseline.txt: nine exact obsolete entries removed, as reported by CI.