Repository navigation
test(core,plugins): remove low-value tests (batch d364) - #179088
Merged
Merged
Conversation
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review in progressClawSweeper is reviewing this revision. This supersedes any previous blocked status. |
steipete
enabled auto-merge (squash)
October 21, 2026 05:52
Contributor
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. |
steipete
disabled auto-merge
October 21, 2026 05:58
steipete
enabled auto-merge (squash)
October 21, 2026 06:14
steipete
disabled auto-merge
October 21, 2026 06:24
steipete
enabled auto-merge (squash)
October 21, 2026 06:31
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Oct 22, 2026
) * test(plugins): deslop z0700 tests * test(doctor): deslop z0703 tests * test(doctor): deslop z0703 tests * test(sandbox): deslop z0704 tests * test(sandbox): deslop z0704 tests * test(telegram): deslop z0710 tests * test(core): deslop z0707 tests * test(core): deslop z0707 tests * test(gateway): deslop z0708 tests * test(gateway): deslop z0708 tests * test(agents): deslop z0706 tests * test(agents): deslop z0706 tests * test(agents): deslop z0706 tests * test(vitest): deslop z0709 tests * test(vitest): deslop z0709 tests * test(vitest): deslop z0709 tests * test(telegram): deslop z0711 tests * test(telegram): deslop z0711 tests * test(shared): deslop z0712 tests * test(shared): deslop z0712 tests * test(infra): deslop z0713 tests * test(infra): deslop z0713 tests * test(infra): deslop z0713 tests * test(memory-core): deslop z0705 tests * test(memory-core): deslop z0705 tests * test(daemon): deslop z0714 tests * test(daemon): deslop z0714 tests * test(daemon): deslop z0714 tests * test(infra): deslop z0716 tests * test(infra): deslop z0716 tests * test: preserve batch d364 fixture and coverage contracts * test: prune obsolete d364 mock baseline entries
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What Problem This Solves
Test fixtures and assertion scaffolding repeat setup across the selected suites.
User Impact
No user-visible or production behavior change. This batch only changes tests and test-support helpers; it introduces no migration or operator action.
Why This Change Was Made
Replay the 30 selected campaign commits onto main at
54b5607e558451bc7fd44d9cd276f7e2991d4676, retaining current-main behavior and consolidating repeated fixtures, setup, tables, and assertions. All 30 commits applied in order, with the file-level drops described below; no whole commits skipped.Production LOC: +0 / -0. Test and test-support LOC: +4,485 / -7,361 (net -2,876), across 91 files. Three small test-support helpers share sandbox custody, memory-index, and UI handshake setup.
Evidence
pnpm install --frozen-lockfile --prefer-offline: passed.node_modules/.bin/oxfmt --write <91 changed files>: exit 0.node_modules/.bin/oxlint -c .oxlintrc.json <91 changed files>: exit 0.git diff --check 54b5607e558451bc7fd44d9cd276f7e2991d4676: passed.openclaw/ci-gateis the runtime and merge gate. Independent full-diff autoreview completed; corrective review is clean through P2.Per-shard replay inventory
Counts below are recomputed against the pinned current-main base, not copied from the older shard reports. LOC includes test support. Declaration counts are static it/test call sites (including parameterized declarations), not expanded execution counts.
z0700
src/plugins/installed-plugin-index-store-write.custody.test.tssrc/plugins/installed-plugin-index.compat.test.tsz0703
src/commands/doctor/shared/hooks-token-reuse-repair.test.tssrc/commands/doctor/shared/include-migration-ownership.test.tssrc/commands/doctor/shared/invalid-plugin-config.test.tssrc/commands/doctor/shared/legacy-config-migrations.runtime.code-mode.test.tssrc/commands/doctor/shared/legacy-config-migrations.runtime.retired.memory-qmd.test.tssrc/commands/doctor/shared/legacy-config-migrations.runtime.tool-policy-conflicts.profiles.test.tssrc/commands/doctor/shared/legacy-config-migrations.runtime.tool-policy-conflicts.test.tsz0704
src/agents/sandbox/context-custody.test-support.tssrc/agents/sandbox/context.browser-state-owner.test.tssrc/agents/sandbox/context.managed-custody.test.tssrc/agents/sandbox/creator-namespace.test.tssrc/agents/sandbox/fs-bridge.boundary.test.tssrc/agents/sandbox/registry-authority.test.tsz0710
extensions/telegram/src/fetch.capture.test.tsextensions/telegram/src/group-migration.test.tsextensions/telegram/src/inbound-event-delivery.test.tsextensions/telegram/src/lane-delivery.presentation.test.tsextensions/telegram/src/lane-delivery.test-support.tsextensions/telegram/src/location-message-hook.test.tsextensions/telegram/src/message-cache.conversation-context.test.tsextensions/telegram/src/model-buttons.test.tsz0707
src/docker-image-digests.test.tssrc/entry.respawn.test.tssrc/entry.version-fast-path.test.tssrc/plugin-activation-boundary.test.tssrc/runtime.test.tsz0708
ui/src/api/gateway-browser-socket.test.tsui/src/api/gateway-connect.node.test.tsui/src/api/gateway-handshake.test-support.tsui/src/api/gateway-heartbeat.node.test.tsui/src/api/gateway-ingress.node.test.tsui/src/api/gateway-reachability.node.test.tsui/src/api/gateway-session-row-events.node.test.tsz0706
src/agents/embedded-agent-runner/run/attempt-session-boundary.media.test.tssrc/agents/embedded-agent-runner/run/attempt-session-runtime-context.test.tssrc/agents/embedded-agent-runner/run/attempt-session-settle.test.tssrc/agents/embedded-agent-runner/run/attempt-stage-timing.test.tssrc/agents/embedded-agent-runner/run/attempt-startup.test.tssrc/agents/embedded-agent-runner/run/attempt-system-prompt.sandbox-info.test-support.tssrc/agents/embedded-agent-runner/run/attempt-tool-call-replay-sanitization.compaction.test.tsz0709
test/vitest-ui-e2e-prebuilt.test.tstest/vitest-ui-e2e-preflight.test.tstest/vitest-unit-config.test.tstest/vitest-unit-fast-config.test.tsz0711
extensions/telegram/src/setup-surface.test.tsextensions/telegram/src/telegram-ingress-coalescing.test-support.tsextensions/telegram/src/telegram-ingress-spool.test-support.tsextensions/telegram/src/telegram-ingress-worker.test.tsextensions/telegram/src/thread-bindings-reconcile.test.tsextensions/telegram/src/thread-bindings.test-support.tsextensions/telegram/src/threading-tool-context.test.tsextensions/telegram/src/update-offset-persistence.test.tsz0712
src/shared/gateway-bind-url.test.tssrc/shared/global-singleton.test.tssrc/shared/ignore-rules.test.tssrc/shared/immutable-data.test.tssrc/shared/json-schema-defaults.test.tssrc/shared/lazy-promise.test.tssrc/shared/node-match.test.tsz0713
src/infra/package-update-permission-drift.test.tssrc/infra/package-update-publication-legacy-recovery.test.tssrc/infra/package-update-publication-legacy.test.tssrc/infra/package-update-self-replay.e2e.test.tssrc/infra/package-update-steps.postinstall.test.tssrc/infra/package-update-swap.windows.test.tssrc/infra/path-existence.test.tsz0705
extensions/memory-core/src/memory/manager-compatible-index-race.test.tsextensions/memory-core/src/memory/manager-compatible-index-upgrade.test.tsextensions/memory-core/src/memory/manager-compatible-index.test-support.tsextensions/memory-core/src/memory/manager-index-generation-lease.test.tsextensions/memory-core/src/memory/manager-index-preparation.test.tsextensions/memory-core/src/memory/manager-index-retention.test.tsextensions/memory-core/src/memory/manager-memory-delta.test.tsextensions/memory-core/src/memory/manager-provider-probe.test.tsextensions/memory-core/src/memory/manager-provider-state.test.tsz0714
src/daemon/constants.test.tssrc/daemon/diagnostics.test.tssrc/daemon/gateway-startup-recovery.test.tssrc/daemon/hosted-stop-executor.lifecycle.test.tssrc/daemon/launchd-foreign-jobs.process.test.tssrc/daemon/launchd-fs.test-support.tssrc/daemon/launchd-plist.test.tssrc/daemon/launchd-retained-policy.test.tsz0716
src/infra/channel-runtime-context.test.tssrc/infra/channels-status-issues.test.tssrc/infra/child-runtime-viability.test.tssrc/infra/clawhub-packages.test.tssrc/infra/clawhub-retry.test.tssrc/infra/container-env-file.test.tsConflict resolution: current-main contracts retained
All nonconflicting changes were retained. The following overlapping file changes were dropped instead of restoring superseded campaign assumptions:
src/plugins/install-transport.work-deadline.test.ts,src/plugins/installed-plugin-index-facts.test.ts,src/plugins/installed-plugin-index-records.managed-npm.test.ts, andsrc/plugins/installed-plugin-index.symlink.test.ts. Main has newer test structure and distinct ownership/cache assertions; keep it. The two clean database-temp-fixture migrations remain.src/commands/doctor/shared/legacy-config-migrate.media-models.test.ts. Main preserves model selections rather than automatically upgrading the old references; keep the current behavior tests.src/agents/sandbox/config-hash.test.tsandsrc/agents/sandbox/host-paths.test.ts. Preserve main's additional mount, epoch, security, path identity, and platform cases.ui/src/api/gateway-connect.node.test.ts. Preserve new connect-before-hello and early-stop lifecycle cases. The first commit's clean handshake-fixture migration remains.src/shared/keyed-fifo-lease.test.ts. Main uses the newer non-cancellable, void-result wait contract; keep its proof.src/infra/path-prepend.test.ts. Preserve main's additional key-casing, merge, path-creation, and removal cases.src/infra/dedupe.test.ts. Preserve main's explicit empty warning-key and non-finite timestamp cases.CI and review correction
The first head's CI exposed missing runtime references in the newer Gateway connect cases, unbound-method checks, a directly exported
vi.hoistedbinding in Telegram support, and changed mock factories outside the mock-export ratchet baseline. The corrective commit uses the tracked Gateway client factory, restores its socket import, binds/preserves method receivers, and exports the Telegram hoisted binding separately.The mock-factory changes were dropped by restoring these complete files to the pinned main version:
src/agents/embedded-agent-runner/run/attempt-session-cleanup.test.ts,src/agents/sandbox/dependency-template.test.ts,src/entry.respawn-diagnostics.test.ts, andsrc/infra/clipboard.test.ts. No baseline or guard was weakened.Full-diff review identified three actionable issues: the Gateway reference issue, lost incomplete-prebuilt-UI rejection proof, and derived-only unit-fast membership expectations. All three are repaired, including restoration of the incomplete-asset test and six explicit required-member assertions. Two other findings were rejected after source inspection:
buildCliRespawnPlanalready declaresargv?; and the diagnostic table's actual two rows (trace=true/supported=true,trace=false/supported=false) each produce the asserted pre-spawn sequence. The diagnostic file was subsequently restored to main for the separate mock-ratchet issue.Both corrective reviews are scoped-clean through P2. Formatting, plain oxlint, and diff checks passed again; runtime/type-aware validation remains hosted-only. The initial run was 39552059002; its six failed jobs were diagnosed from retained logs and repaired or removed from the diff. Fresh-head CI is required for completion.
The second run (39554155685) passed the previously failing UI, typecheck, root lint, extension lint, and Telegram shard jobs. Its mock-export ratchet then required deletion of exactly two obsolete exceptions for
attempt-startup.test.tsandruntime.test.ts. Both removed mocks were verified against source, and the two-line shrink was independently reviewed clean.config/test-mock-exports-baseline.txtchanges by +0/-2; production remains +0/-0 and test/support remains +4,485/-7,361. Total diff: 92 files, +4,485/-7,363 (net -2,878). No baseline entries were added or widened.