Repository navigation
test(core, chat): remove low-value tests (batch d639) - #185166
Merged
Merged
Conversation
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
Removes redundant test setup and duplicate coverage in campaign batch d639 while retaining current-main behavior.
User Impact
No production behavior changes. This is test/support consolidation only; no runtime production files change.
Why This Change Was Made
Replay the requested campaign commits on pinned main
d5d9420d3f37f66431997ab3ad7aa1f9ddded049. Keep the existing runtime owners and boundary assertions; merge the worktree eviction/exact-state suites into removal suites, and share focused fixtures in channels, chat, secrets, updater, and sessions.19 of 30 commits replayed (some partially); 11 skipped. Review repairs fully revert the retained deltas of
7c3f8f8e53f0and3b1be18c9042, leaving 17 original commits with a net contribution. No new dependencies, runtime seams, configuration, migrations, or public APIs.Evidence
pnpm install --frozen-lockfile --prefer-offline: passed.node_modules/.bin/oxfmt --write <changed existing TS/JS files>: passed.node_modules/.bin/oxlint -c .oxlintrc.json <changed existing TS/JS files>: exit 0.git diff --check d5d9420d3f37f66431997ab3ad7aa1f9ddded049: passed.openclaw/ci-gateis the runtime/typecheck proof; independent review runs while CI is pending.Per-shard exact-base counts and files
Static declaration counts count it/test declarations, not expanded table cases. LOC includes test support. Coverage for every row: not measured (source reports: “Tests and coverage were not run, per CI-only mode”).
extensions/geolocation/index.test.tspackages/llm-core/src/model-contracts/anthropic.test.tssrc/channels/plugins/contracts/test-helpers/config-write-contract-suites.tssrc/channels/status/account-state.test.tssrc/chat/canvas-render.test.tssrc/process/spawn-broker/handoff.test.tssrc/agents/worktrees/service.eviction-nesting.test.tssrc/agents/worktrees/service.exact-state.test.tssrc/agents/worktrees/service.gc-empty-maintenance.test.tssrc/agents/worktrees/service.removal-budget.test.tssrc/agents/worktrees/service.removal-safety.test.tssrc/secrets/runtime-provider-and-media-surfaces.test.tssrc/secrets/runtime-state.test.tsui/src/pages/chat/chat-page.test.tsui/src/pages/chat/chat-pending-inputs.test.tsui/src/pages/chat/composer-dictation.test.tsui/src/pages/chat/composer-persistence.test.tssrc/infra/install-package-dir.rollback.test.tssrc/sessions/session-controller.lifecycle-diagnostics.test.tssrc/sessions/user-turn-transcript.persistence.test.tsThe k0001 file list includes the three deleted suites; every case moves into a surviving removal suite. Two routing entries for retired files are removed.
Replay decisions
Fully skipped:
54610cc7b8e5(o0816): main's Teams helper now records/responds to token requests. The proposed reject-all interceptor would discard current security/ingress fixture behavior.17bcb5aa58f4,1e6f55176546(k0003): current recovery/completion/send-policy tests and claim setup diverged; preserve main's modified suites instead of moving stale copies.17a3573545a3,789150a5fa92,2dabb9ae6d7f(k0002): current pairing/shutdown/version tests diverged and the proposed merge imports absent server.node-family.test-support. Keep current main fixtures and suites.e2acf3bdb894,48a38de77206,d75cd252eaea(k0004): current native-bootstrap/migration and prompt fixtures diverged; later commits depend on the dropped merges.961b652439be(k0001): native-profile/APFS/GC/hooks merge conflicts across rewritten current suites and routing. Retain these current-main suites.9094d7ec6605(j0361): both plugin UI files conflict with current fixture/routing changes.Partially applied:
b511cdf5c5c0: retain current auto-cleanup temp tracker and asynchronous DB close; add the moved suite's run-lease reset to that existing teardown.ab84cf05583f: runtime-state only; preserve current provider-integrations file.eb2d6223909d: runtime-state/provider-media only; preserve provider-integrations and runtime-web-tools, and restore the apply file after review.26f2b533fb6f,963ee38c633c: preserve current chat-pane-session-events; retain other clean hunks.8e50775dfefb: pending-input duplicate reduction only. Preserve current chat-page and composer-persistence; the full 50-ID off-page live-input receipt case was restored after review; custody presentation remains covered by chat-thread suites.49d0b0807482: keep rollback only; preserve package-update-activation-lifetime, run-node, sqlite-readonly-location, and update-database-restore.7c3f8f8e53f0: ultimately no retained delta; restore finalize-worker to main after review.1c914feea85e,3b1be18c9042: preserve current session-lifecycle-admission; the latter now has no retained delta after review restored steering.77d941591178: preserve current user-turn-transcript; keep only the persistence fixture reuse after restoring the complete steering file.Review repairs restore the entire update-migrated-finalize.worker file to main (including the changes from
c4e0fd543676), preserving unavailable predecessor ownership, durable stop receipts, and restart-pending deadline proof. Geolocation country/countryCode assertions and exactly-once database-load assertion are restored; the malformed allowlist table is removed by restoring secrets/apply.test.ts to main. The complete steering file is restored, including current-authority legacy injection and direct backend rejection/custody coverage. All other listed commits apply completely. Conflicting files are kept byte-for-byte from the pre-pick branch; no blanket baseline regeneration or runtime behavior decisions.Independent Review
First review: five accepted findings restored geolocation country fields and guarded legacy-injection coverage and removed the finalize-worker changes to retain unavailable predecessor ownership, durable stop receipts, and restart-pending deadline proof. One read-helper warning was rejected:
service.removal-budget.test.tsalready definesread(directory: string, name = "README.md"), so the moved two-argument calls read the requested file.Second review: restored the complete steering file to retain direct backend-rejection cleanup, and restored the full 50-ID off-page live-input receipt case. Three index-only findings were resolved by staging the previously completed repairs. Third review: restored secrets/apply.test.ts to remove malformed array parameterization and preserve first-time restrictive-allowlist coverage; restored the geolocation exactly-once database-load assertion. Final repair-only review: scoped-clean through P2, no accepted/actionable findings. The earlier whole-diff review plus this clean repair review cover the final candidate. No local tests or typechecks were run.
The first CI run reported a batch-caused mock-exports failure in
update-migrated-finalize.worker.test.ts(new Doctor mock missing isolation annotation): https://github.com/openclaw/openclaw/actions/runs/40418990620/job/121909007042. Restoring that file entirely removes the offending hunk. The repaired head must receive fresh CI; the old red run is not waived.