Repository navigation
test(agents,gateway,commands,cli,plugins): remove low-value tests (batch d041) - #168208
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: needs changes before merge. What this changesThis PR removes redundant tests and unused test-only exports across agents, Gateway, plugins, CLI, and release tooling. Example: Android release metadata validation
Review scores
ProductKind: Test only · Worth it: Yes Merge readiness⛔ Needs changes before merge - 2 items remain Keep open: the cleanup is useful, but both previously reported losses of independent release and recovery coverage remain unfixed. Priority: P3 Before merge
Findings
Agent review detailsHow this fits togetherCI runs these suites against production owners and release validators, turning synthetic inputs and observed outcomes into contract checks. flowchart TD
A[CI runner] --> B[Retained test suites]
B --> C[Agent and Gateway owners]
B --> D[Plugin and CLI owners]
B --> E[Release validation owners]
C --> F[Contract assertions]
D --> F
E --> F
Technical reviewBest possible solution: Keep the cleanup while restoring Android metadata boundary checks and independent Workshop recovery negative controls. Do we have a high-confidence way to reproduce the issue? Source comparison establishes both coverage losses; no runtime defect is reported and no target tests were executed during this read-only review. Is this the best way to solve the issue? Removing redundant variants and unused seams is appropriate when independently meaningful release and recovery checks remain at their owning boundaries. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against ab4bd08ef78f. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceAcceptance criteria:
What I checked:
Likely related people:
PR surfacePR surface statistics unavailable: the file list is incomplete. 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 HistoryReview history (1 earlier review cycle)
Reviewed October 10, 2026, 1:24 AM ET / 05:24 UTC (Revision 2). |
|
Post-merge closeout for this batch:
|
…tch d041) (openclaw#168208) * test(gateway): deslop x1072 tests * test(feishu): deslop x1071 tests * test(commands): deslop x1073 tests * test(apps): deslop x1076 tests * test(config): deslop x1069 tests * test(agents): deslop x1078 tests * test(test): deslop x1068 tests * test(scripts): deslop x1077 tests * test(cli): deslop x1083 tests * test(agents): deslop x1081 tests * test(commands): remove obsolete line-limit suppression
What Problem This Solves
Removes low-value duplicate, implementation-mirroring, and redundant variant tests from one bounded maintenance batch.
User Impact
No intended user-visible behavior change. Retained tests continue to own security, lifecycle, migration, and public contracts. No dependency, schema, runtime configuration, or release changes.
Why This Change Was Made
Replays ten reviewed campaign shards onto current main while preserving newer main behavior. The small production cleanup internalizes Android build-metadata helpers and removes unused test injection options, internalizes the CLI static-import parser, and removes an unused startup-memory test export. Repository-wide caller searches found no remaining external callers of those removed exports. The line-count baseline change is shrink-only.
All ten source commits were applied; none skipped. One conflict in
src/gateway/github-shared-publication-events.test.tsretained main's newer atomic request/lifecycle publication and authority regression while removing only the campaign's older duplicate claim-notification test. No other conflict-resolution hunks were dropped.Evidence
Base:
45ec7dc8ba506f76e36586c058abcd0daaf84c39. Head:403adbc26b5ed94709ab188518692b24ca913579.git diff --check: passed.tbx_01m4j1bfjg10rzh3jbct7pa4vy. Source preparation exhausted the shared mirror pool and required a cold capsule; the lease remained queued without a runner for 15 minutes and was stopped. No focused test executed. A second Testbox (tbx_01m4j2fhst018c7h74q2h9nx6t, run) passed global guards and Android lint, but the path list was incorrectly passed as one argument, so it is not complete changed-scope proof. A corrected focused-suite plus all-path changed gate is submitted ontbx_01m4j2tknhprd9ss77dmt092myand remains pending at publication. No product/test failure has been observed. Per the campaign infrastructure-gap rule, hostedopenclaw/ci-gateis the merge gate.b6f371c1e760ff81ab89747df8c999f632359f80) includes all four groups, failed=0, and passes comparison against the retained baseline.Current diff: test files +2,113 / -24,071 (net -21,958); test support +19 / -97 (net -78); production +7 / -16 (net -9); baseline 0 / -1. There are no touched CODEOWNERS-matched paths.
Rebased shard deltas and original coverage
Declaration counts and test LOC deltas below are recomputed against this PR base, not copied from the older campaign baseline. Coverage totals remain the original shard evidence.
Files touched by each shard
x1072
src/gateway/github-repository-publication.test.tssrc/gateway/github-shared-publication-events.test.tssrc/gateway/github-shared-publication-read.test.tssrc/gateway/handshake-timeouts.test.tssrc/gateway/hooks.test.tssrc/gateway/host-thaw-recovery.test.tssrc/gateway/http-byte-range.test.tssrc/gateway/http-common.test.tssrc/gateway/http-endpoint-helpers.test.tssrc/gateway/http-utils.authorize-request.test.tssrc/gateway/ingress-attribution.test.tssrc/gateway/live-agent-probes.test.tssrc/gateway/mcp-app-extension-runtime.test.tssrc/gateway/mcp-app-form-resources.test.tssrc/gateway/mcp-app-host-files.test.tsx1071
extensions/feishu/src/drive.test.tsextensions/feishu/src/dynamic-agent.test.tsextensions/feishu/src/feishu-ingress.test.tsextensions/feishu/src/markdown.test.tsextensions/feishu/src/media-upload-contract.test.tsextensions/feishu/src/media.test.tsextensions/feishu/src/monitor.comment.test.tsextensions/feishu/src/monitor.message-handler.ingress.test.tsextensions/feishu/src/outbound.test.tsextensions/feishu/src/policy.test.tsextensions/feishu/src/post.test.tsextensions/feishu/src/presentation-card.test.tsextensions/feishu/src/probe.test.tsextensions/feishu/src/reactions.test.tsextensions/feishu/src/read-policy.test.tsx1073
src/commands/doctor-heartbeat-scratch-migration.test.tssrc/commands/doctor-heartbeat-session-target.test.tssrc/commands/doctor-heartbeat-task-migration.test.tssrc/commands/doctor-host-desktop.test.tssrc/commands/doctor-legacy-config.migrations.test.tssrc/commands/doctor-legacy-config.test.tssrc/commands/doctor-memory-search.provider-runtime.test-support.tssrc/commands/doctor-memory-search.test.tssrc/commands/doctor-migration-backup.test.tssrc/commands/doctor-model-catalog-credentials.test.tssrc/commands/doctor-node-hosting-preconditions.test.tssrc/commands/doctor-plugin-host-links.test.tssrc/commands/doctor-plugin-model-catalog.test.tssrc/commands/doctor-post-upgrade.test.tssrc/commands/doctor-prompter.test.tssrc/commands/doctor-rehearsal-databases.test.tsx1076
apps/android/scripts/build-release-artifacts.tstest/scripts/android-app-i18n.test.tstest/scripts/android-release-artifacts.test.tstest/scripts/android-release-wrapper-args.test.tstest/scripts/android-screenshots.test.tstest/scripts/android-version.test.tstest/scripts/anthropic-cache-transport-loader.test.tstest/scripts/apple-app-i18n.test.tstest/scripts/arg-utils.test.tstest/scripts/audit-seams.test.tstest/scripts/auth-monitor.test.tstest/scripts/auth-profile-store-assertions.test.tstest/scripts/authorized-beta-focused-evidence.test.tstest/scripts/barnacle-auto-response.test.tstest/scripts/bench-agent-concurrency.test.tstest/scripts/bench-cli-startup.test.tsx1069
config/max-lines-baseline.txtextensions/anthropic/cli-auth-seam.test.tsextensions/anthropic/cli-migration.test.tsextensions/anthropic/cli-output.test.tsextensions/anthropic/cli-process.test.tsextensions/anthropic/cli-shared.test.tsextensions/anthropic/forward-compat-generation.test.tsextensions/anthropic/index.test.tsextensions/anthropic/model-contract-cases.test-support.tsextensions/anthropic/provider-policy-api.test.tsextensions/anthropic/session-catalog.test.tsextensions/anthropic/session-upstream-activity.test.tsextensions/anthropic/stream-wrappers.test.tsextensions/anthropic/usage.test.tsx1078
src/agents/model-provider-auth.test.tssrc/agents/model-ref-shared.test.tssrc/agents/model-runtime-aliases.test.tssrc/agents/model-runtime-policy.test.tssrc/agents/model-scan.test.tssrc/agents/model-selection-display.test.tssrc/agents/model-selection-manifest-workspace.test.tssrc/agents/model-suppression.test.tssrc/agents/model-thinking-default.test.tssrc/agents/model-visibility-policy.test.tssrc/agents/models-config.merge.test.tssrc/agents/models-config.providers.implicit.discovery-scope.test.tssrc/agents/node-plugin-tools.test.tssrc/agents/openai-responses-payload-policy.test.tssrc/agents/openai-responses.reasoning-replay.test.tssrc/agents/openai-routing.test.tsx1068
test/scripts/test-skip-inventory.test.tstest/scripts/transitive-manifest-risk-report.test.tstest/scripts/ts-topology.test.tstest/scripts/tsdown-runtime-config.test.tstest/scripts/ui.test.tstest/scripts/update-clawtributors.test.tstest/scripts/update-first-hop-package-fixtures.test.tstest/scripts/upgrade-survivor-assertions.test.tstest/scripts/upgrade-survivor-config-parking.test.tstest/scripts/upgrade-survivor-config-recipe.test.tstest/scripts/upgrade-survivor-exec-approvals.test.tstest/scripts/upgrade-survivor-migration-order.test.tstest/scripts/upgrade-survivor-mobile-pairing.test.tstest/scripts/upgrade-survivor-probe-gateway.test.tstest/scripts/upgrade-survivor-recovery-cleanup.test.tstest/scripts/upgrade-survivor-systemd.test.tsx1077
scripts/check-cli-bootstrap-imports.mtsscripts/check-cli-startup-memory.mjstest/scripts/check-built-plugin-control-plane-modules.test.tstest/scripts/check-changelog-attributions.test.tstest/scripts/check-channel-agnostic-boundaries.test.tstest/scripts/check-cli-bootstrap-imports.test.tstest/scripts/check-cli-startup-memory.test.tstest/scripts/check-coercion-helper-declarations.test.tstest/scripts/check-database-first-legacy-stores.test.tstest/scripts/check-deadcode-exports.test.tstest/scripts/check-deadcode-unused-files.test.tstest/scripts/check-deprecated-api-usage.test.tstest/scripts/check-env-var-count.test.tstest/scripts/check-export-name-collisions.test.tstest/scripts/check-extension-package-tsc-boundary.test.tstest/scripts/check-gateway-cpu-scenarios.test.tstest/scripts/check-gateway-watch-regression.test.tstest/scripts/check-line-cap-ratchet.test.tsx1083
src/cli/json-output-mode.test.tssrc/cli/local-state-owner.process.test.tssrc/cli/machine-output-modes.test.tssrc/cli/node-worker-bootstrap.test.tssrc/cli/nodes-camera.test.tssrc/cli/nodes-cli.coverage.test.tssrc/cli/one-shot-exit.test.tssrc/cli/pairing-cli.test.tssrc/cli/parse-timeout.test.tssrc/cli/plugin-install-plan.test.tssrc/cli/plugin-registry-loader.test.tssrc/cli/plugins-authoring-command.test.tssrc/cli/plugins-config.test.tssrc/cli/plugins-control-ui-build.test.tssrc/cli/plugins-install-config.test.tsx1081
src/agents/auth-profiles/credential-state.test.tssrc/agents/auth-profiles/external-cli-auth-selection.test.tssrc/agents/auth-profiles/oauth-identity.test.tssrc/agents/auth-profiles/oauth-lock-path.test.tssrc/agents/auth-profiles/oauth-personal.worker.test.tssrc/agents/auth-profiles/oauth-refresh-error.test.tssrc/agents/auth-profiles/oauth-refresh-fence.test.tssrc/agents/auth-profiles/order.test.tssrc/agents/auth-profiles/path-resolve.shared-store.test.tssrc/agents/auth-profiles/persisted-boundary.test.tssrc/agents/auth-profiles/profiles.test.tssrc/agents/auth-profiles/runtime-snapshots.test.tssrc/agents/auth-profiles/source-check.test.tssrc/agents/auth-profiles/store-owner-publication.test.tssrc/agents/auth-profiles/store-state-owner.test.tssrc/agents/auth-profiles/store-update.test.ts