Repository navigation
test(gateway,cli,feishu): remove low-value tests (batch d409) - #179934
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. |
Consolidate resident resolution and plugin drain siblings into existing family owners. Remove duplicate owner-layer replays while retaining authority, publication, and lifecycle cases. Keep the existing Vitest project routing and prune deleted-file inventory entries. CI-only validation: oxfmt, plain oxlint, and git diff --check. Shard LOC is 11626 to 10778 cumulatively; the 35 percent target remains unmet.
Factor repeated reload snapshots, plugin requests, environment setup, and callback counts. Share typed SSE reading and disposal across history tests, and reuse model and resolution fixture shapes without removing distinct cases. CI-only static validation: oxfmt, plain oxlint, and diff-check pass. Shard LOC is 10529, down from 11626 originally; the 35 percent target remains unmet.
11f4253 to
4f781da
Compare
|
The only test failure on head The same test also fails in the recent scheduled hourly main CI run: https://github.com/openclaw/openclaw/actions/runs/39671240295/job/119469909010 . That main run reports the worker-budget environment mismatch; this PR reports a plan-concurrency mismatch (expected 1, received 2) after incorporating main's newer serial-projection assertion. These are not claimed to be identical assertion messages. This batch changes neither the failing test/support file nor its planner, shard-runner, runtime-placement implementations, or the selected cron/plugin/E2E/tsgo fixture files. The three removed protected-test inventory entries are unrelated CLI, gateway, and system-agent files, not members of that fixture. A fresh main fetch found no subsequent change to the failing test or planner implementations after this PR's rebased base All test jobs exercising this batch's changed files ran and passed. The stale baseline rows exposed by the earlier run were repaired and their check passed. Under the operator's campaign rule allowing the same failing test on recent scheduled main CI, this is the documented inherited-failure exception; no test assertion, timeout, skip, or gate was weakened. |
…aw#179934) * test(gateway): deslop y0174 tests * test(gateway): consolidate y0174 test families Consolidate resident resolution and plugin drain siblings into existing family owners. Remove duplicate owner-layer replays while retaining authority, publication, and lifecycle cases. Keep the existing Vitest project routing and prune deleted-file inventory entries. CI-only validation: oxfmt, plain oxlint, and git diff --check. Shard LOC is 11626 to 10778 cumulatively; the 35 percent target remains unmet. * test(gateway): share y0174 lifecycle fixtures Factor repeated reload snapshots, plugin requests, environment setup, and callback counts. Share typed SSE reading and disposal across history tests, and reuse model and resolution fixture shapes without removing distinct cases. CI-only static validation: oxfmt, plain oxlint, and diff-check pass. Shard LOC is 10529, down from 11626 originally; the 35 percent target remains unmet. * test(gateway): deslop y0178 tests * test(gateway): consolidate y0178 test family * test(gateway): share y0178 recovery fixtures * test(feishu): deslop y0176 tests * test(feishu): consolidate y0176 monitor families * test(feishu): share remaining y0176 lifecycle fixtures * test(integration): deslop y0179 tests * test(integration): consolidate y0179 authority and catalog proof * test(integration): remove y0179 duplicate owner proof * test(cli): consolidate y0177 auth and command fixtures * test(scripts): deslop y0180 tests * test(scripts): consolidate y0180 duplicate owner proof * test(scripts): consolidate y0180 fixture ownership * test(scripts): deslop y0182 tests * test(scripts): consolidate y0182 fixture and owner proof * test(scripts): keep lockfile framing proof at its owner * test(scripts): deslop y0183 tests * test(scripts): consolidate y0183 fixtures and duplicate proof * test(scripts): share y0183 locale and entry fixtures * test(node-host): deslop y0186 tests * test(node-host): consolidate y0186 family coverage * test(node-host): share y0186 setup and capacity assertions * test(system-agent): deslop y0184 tests * test(system-agent): consolidate y0184 test families * test(system-agent): fix merged activation snapshot reads * test(system-agent): share y0184 family fixtures * test(gateway): deslop y0185 tests * test: preserve fixture contracts after campaign replay * test: prune stale mock export baseline rows
What Problem This Solves
Reduces duplicated test scaffolding and repeated owner-level proof across the gateway, Feishu, CLI, integration, scripts, node-host, and system-agent suites.
User Impact
No intended production behavior change. Retains distinct authority, lifecycle, persistence, and error-path coverage while sharing fixtures and consolidating sibling suites.
Why This Change Was Made
Replays the 30 authorized d409 campaign commits onto main at
6aff6172a02bf399c4eb9e973d3a765aabf80e94. All 30 applied; no complete commit skipped. Conflict resolutions deliberately omit outdated reductions where main has newer coverage.Production code: +0/-0 LOC. Test and test-support code: +8,929/-15,097 LOC (net -6,168). Test routing, inventory, and baseline metadata: +0/-26 LOC. Total: +8,929/-15,123 LOC (net -6,194) across 162 files. No changed path matches the repository's current CODEOWNERS entries.
Evidence
CI-only validation: initial formatting and plain lint passed; after rebasing onto
9819d4db1c86ebab2afc1ebd404bbe09cd776b4a,node_modules/.bin/oxfmt --check <144 changed TS/JS files>,node_modules/.bin/oxlint -c .oxlintrc.json --no-ignore <144 changed TS/JS files>, andgit diff --check 9819d4db1c86ebab2afc1ebd404bbe09cd776b4aall exited 0. All 32 commits were patch-identical across the rebase (git range-diff). No local Vitest, check-changed, typecheck, build, or Testbox run. Hostedopenclaw/ci-gatesupplies runtime proof.Coverage totals: not available for every shard. Each source result explicitly states coverage/tests were not run under the campaign's CI-only rule. These are static source counts, not executed-test or coverage measurements. Declaration counts below use the campaign AST counter on changed test/support paths before and after this replay; table consolidation changes declaration counts without necessarily removing cases. Source reports also explicitly state that the 35% reduction target was not achieved.
Conflict resolutions
config-reload.test.ts; did not restore the old inline suite.server.sessions.store-rpc.test.tsunchanged: proposed consolidation depended on fixture rewrites absent from current main.server.subagent-prompt-recent.gateway.test-support.tsunchanged, preserving main's heartbeat cleanup.monitor.vc-meeting-invited-handler.test.ts, its test routing, and baseline entries: main added bot-menu fallback/error cases.monitor.webhook-e2e.test.ts.feishu-message-read-authority.integration.test.tsunchanged, preserving current live-directory and pagination coverage.help-cold-imports.test.ts,proxy-cli.runtime.test.ts, andqr-cli.test.tsunchanged to retain newer imports, query, and configuration cases.docker-e2e-plan.test.tsandnative-app-i18n.test.tsunchanged: current admission/source and locale cases supersede the proposed consolidation.CI and independent review follow-up
The first hosted run exposed missing mock exports, one stale stream-helper caller, fixture type inference errors, a removed container-daemon delay, and Windows cleanup ordering changed by deferred mock restoration. Repaired the small mock/type/caller issues; dropped the container helper and Windows fence rewrites rather than changing their established behavior. Subsequent follow-up reviews found no actionable P0-P2 defects. A second CI run identified two mock-export baseline rows made stale by the repaired Feishu media and CLI globals mocks; removed exactly those rows, with a scoped-clean P0-P2 review.
Accepted two of the initial review's twelve findings: restored cron-show pagination and failed-upload snapshot cleanup by leaving those files unchanged. Dropped lint-suppression cleanup as well, leaving its failing baseline test unchanged.
Declined the other ten findings after inspecting source and remaining proof:
hasDeviceIdentityKeymarker.ApplySetupis still used byrejectsRecoveryinoperations.setup.test.ts.redact-snapshot.test.ts(valid/invalid snapshots) andserver.config-security-policy.test.ts(real config.get path).doctor-config-preflight.refusal.process.test.ts, including byte-for-byte database/WAL/SHM/config preservation.server.sessions.create-worktree-spawn.test.ts: keyed worktree creation reuses its recorded base after reopening the registry.bot.test.ts: delivers post files with caption to agent context.agent-turn.test.tsandassistant.configured.test.ts.session-history-reads.test.tsfor SQLite and reset archives.actions.download-file.test.ts, including refreshed metadata.monitor/media.test.ts.Hourly main CI failed
lint-suppressions.test.ts/ keeps the intentional production suppression tail on an explicit allowlist, with the identical missingscripts/perf/provider-request-prepare-measure.ts|typescript/unbound-method|3entry. Evidence: https://github.com/openclaw/openclaw/actions/runs/39679539559/job/119498590396 . Main fixed it in9819d4db1c86ebab2afc1ebd404bbe09cd776b4a; the batch was rebased to include that fix. This PR changes neither that test nor the production perf file. Fresh-head CI remains the gate for all batch-related checks.ClawSweeper's advisory review stopped before analysis at its input-safety scan. Its diagnostic identifies the synthetic config-redaction fixture in
src/gateway/config-get-response.test.ts; fixture credentials use explicit synthetic canaries, generated UUIDs, and anexample.testURL. No scanner policy or hold was changed. Independent local review completed, and the hosted Codex review of the previous head reported no findings.Per-shard static deltas
Test/support LOC only; metadata listed separately above.
Changed test and support files by shard
y0174
src/gateway/config-get-response.test.tssrc/gateway/config-reload.plugin-drain.test.tssrc/gateway/config-reload.services.test-support.tssrc/gateway/config-reload.test.tssrc/gateway/sessions-history-http-read.test-support.tssrc/gateway/sessions-history-http.model-policy.test.tssrc/gateway/sessions-history-http.physical-source.test.tssrc/gateway/sessions-history-http.revocation.test.tssrc/gateway/sessions-history-http.test.tssrc/gateway/sessions-patch.test.tssrc/gateway/sessions-resolve-projection.test.tssrc/gateway/sessions-resolve-store.test.tssrc/gateway/sessions-resolve.resident.test.tssrc/gateway/sessions-resolve.test.tsy0178
src/gateway/server.sessions.title-source.test.tssrc/gateway/server.sessions.worker-placement-order.test.tssrc/gateway/server.silent-scope-upgrade-reconnect.poc.test.tssrc/gateway/server.startup-recovery-boundary.test.tssrc/gateway/server.startup-recovery-webchat.test.tssrc/gateway/server.startup-recovery.test-support.tssrc/gateway/server.subagent-announce-owner.product.test.tssrc/gateway/server.subagent-queued-cleanup.product.test.tssrc/gateway/server.subagent-stop-followup.product.test.tssrc/gateway/server.subagent-stop-settlement.product.test-support.tssrc/gateway/server.talk-caller-replay.test-support.tssrc/gateway/server.talk-consult-history.test.tssrc/gateway/server.talk-native-action.test-support.tsy0176
extensions/feishu/src/bot-content.media.test.tsextensions/feishu/src/bot-sender-name.test.tsextensions/feishu/src/bot.bot-threads.test.tsextensions/feishu/src/bot.broadcast.test-support.tsextensions/feishu/src/bot.card-action.test.tsextensions/feishu/src/bot.test.tsextensions/feishu/src/monitor.acp-init-failure.lifecycle.test-support.tsextensions/feishu/src/monitor.bot-identity.test.tsextensions/feishu/src/monitor.bot-menu.lifecycle.test-support.tsextensions/feishu/src/monitor.broadcast.reply-once.lifecycle.test-support.tsextensions/feishu/src/monitor.card-action.lifecycle.test-support.tsextensions/feishu/src/monitor.comment.test.tsextensions/feishu/src/monitor.dedupe-lifecycle.test.tsextensions/feishu/src/monitor.helpers.test.tsextensions/feishu/src/monitor.lifecycle.test.tsextensions/feishu/src/monitor.message-handler.ingress.test.tsextensions/feishu/src/monitor.message-handler.test-support.tsextensions/feishu/src/monitor.reaction.test.tsextensions/feishu/src/monitor.startup.test.tsextensions/feishu/src/monitor.transport-status.test-support.tsextensions/feishu/src/monitor.webhook-e2e.test.tsextensions/feishu/src/monitor.webhook-routing.test.tsextensions/feishu/src/monitor.webhook.test-helpers.tsextensions/feishu/src/reply-dispatcher.model-wait.test.tsextensions/feishu/src/reply-dispatcher.streaming-backlog.test.tsextensions/feishu/src/reply-dispatcher.test-support.tsextensions/feishu/src/reply-dispatcher.test.tsy0179
test/cron-message-read.integration.test.tstest/decision-admission.test-support.tstest/decision-levanto-admission.integration.test.tstest/decision-subq-admission.integration.test.tstest/decision-typesafe-admission.integration.test.tstest/discord-metadata-read-authority.integration.test.tstest/feishu-message-mutations.integration.test.tstest/matrix-channel-read-authority.integration.test.tstest/message-read-authority.test-support.tstest/non-isolated-runner.test.tstest/openai-model-discovery-auth-order.test.tstest/slack-download-read-authority.integration.test.tstest/subagent-announce-origin.integration.test.tstest/subagent-progress-telegram-retirement.integration.test.tstest/subagent-requester-owner.e2e.test.tstest/test-env.test.tsy0177
src/cli/admin-state-owner.process.test.tssrc/cli/agent-cli-recovery.process.test.tssrc/cli/agent-session-affinity.process.test.tssrc/cli/attach-cli.action.test.tssrc/cli/channel-auth.owner.integration.test.tssrc/cli/channel-auth.test.tssrc/cli/channels-cli.test.tssrc/cli/daemon-cli.coverage.test.tssrc/cli/daemon-cli.update-run.test.tssrc/cli/directory-cli.test.tssrc/cli/doctor-output.process.test.tssrc/cli/models-cli.test.tssrc/cli/native-hook-relay-cli.test.tssrc/cli/nodes-camera.test.tssrc/cli/nodes-cli.coverage.test.tssrc/cli/nodes-cli.plugin-registration.test.tssrc/cli/proxy-owner.test.tssrc/cli/resume-cli.test.tsy0180
test/scripts/docker-build-helper.test.tstest/scripts/docker-channel-promote.test.tstest/scripts/docker-setup.test-support.tstest/scripts/docker-setup.test.tstest/scripts/test-env-mutation-report.test.tstest/scripts/test-extension.test.tstest/scripts/test-group-report.test.tsy0182
test/scripts/database-worker-compat.test.tstest/scripts/direct-run-entrypoints.test.tstest/scripts/extension-test-plan.test.tstest/scripts/kova-report-gate.test.tstest/scripts/kova-workflow-evidence.test.tstest/scripts/lint-status.test.tstest/scripts/macos-native-test-launch.test.tstest/scripts/pnpm-audit-prod.test.tstest/scripts/testbox-base.test.tsy0183
test/scripts/bundled-plugin-build-entries.test.tstest/scripts/bundled-plugin-install-uninstall-probe.test.tstest/scripts/docs-agent-workflow.test.tstest/scripts/docs-dev.test.tstest/scripts/docs-fixture.test-support.tstest/scripts/docs-list.test.tstest/scripts/docs-markdown.test.tstest/scripts/docs-mirror-freshness.test.tstest/scripts/docs-sync-publish.test.tstest/scripts/live-docker-auth.test.tstest/scripts/live-docker-stage.test.tstest/scripts/mantis-publish-pr-evidence.test.tstest/scripts/mantis-telegram-failure.test.tstest/scripts/mantis-telegram-proof.test.tstest/scripts/write-cli-startup-metadata.test.tsy0186
src/node-host/node-worker-bundle-installer.test.tssrc/node-host/node-worker-supervisor.reboot.test.tssrc/node-host/node-worker-supervisor.recovery.test.tssrc/node-host/node-worker-transfer-client.encoding.test.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.test.tsy0184
src/system-agent/chat-engine.test-support.tssrc/system-agent/chat-turn-router.approval.test.tssrc/system-agent/chat-turn-router.operations.test.tssrc/system-agent/chat-wizard-host.test.tssrc/system-agent/operations-parse.test.tssrc/system-agent/operations-setup-flows.test.tssrc/system-agent/operations.roles.test.tssrc/system-agent/operations.setup.test.tssrc/system-agent/operations.test.tssrc/system-agent/setup-app-recommendations.test.tssrc/system-agent/setup-apply.model-selection.test.tssrc/system-agent/setup-apply.test-harness.tssrc/system-agent/setup-apply.test.tssrc/system-agent/setup-inference-activate.openrouter-onboarding.test.tssrc/system-agent/setup-inference-activate.test-support.tssrc/system-agent/setup-inference-activate.test.tssrc/system-agent/setup-inference-auth-options.test.tssrc/system-agent/setup-inference-credentials.authority.test.tssrc/system-agent/setup-inference-credentials.lifecycle.test.tssrc/system-agent/setup-inference-error-reporting.test.tssrc/system-agent/setup-inference-provider-snapshot.test.tssrc/system-agent/setup-inference-utility.test.tssrc/system-agent/setup-native-runtime.test.tsy0185
src/gateway/server.sessions.create.account-authority.test.tssrc/gateway/server.sessions.create.dispatch.test.tssrc/gateway/server.sessions.create.projects.test-support.tssrc/gateway/server.sessions.create.projects.test.tssrc/gateway/server.sessions.create.test-support.tssrc/gateway/server.sessions.create.titles.test.tssrc/gateway/server.sessions.create.worktree-selection.test.tssrc/gateway/server.sessions.create.worktrees.test.ts