Repository navigation
test(core): remove low-value tests (batch d241) - #175876
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 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. |
|
Codex review: stale review; fresh review needed. Summary Next step Review history (1 earlier review cycle)
|
|
CI/review follow-up for Accepted all four independent review findings. Restored the pinned-main versions of Repaired the batch-caused first-run failures: child environments legitimately omit stripped token keys; fixture callbacks now preserve binding and return void where required; command and row fixtures keep their real types; asynchronous cleanup keeps its original ordering; synthetic transport/provider mocks document their state-isolation reason, and worker counter instrumentation keeps the original pass-through implementation. Final delta supersedes the initial replay totals in the description: 87 test/support files, +11,013/-16,837 (net -5,824); production +0/-0. Oxfmt, plain oxlint (exit 0), and git diff --check passed. Tests and typechecks remain CI-only. All 28 applied source commits remain in history, with the reviewed file changes reverted in this repair commit. The two x7918 commits remain skipped. A focused independent review of this repair delta runs alongside fresh exact-head CI. Rebase follow-up ( Final cleanup ( |
Restore ACP lifecycle fencing, OAuth response validation, page-cache snapshots, and queued-follower cleanup coverage. Repair fixture typing, async cleanup callbacks, method binding, child-environment assertions, and explicit mock isolation identified by hosted CI and independent review.
7c57c24 to
780a7bc
Compare
Remove exactly the 22 stale mock-factory records identified by hosted CI, now covered by removed mocks or explicit isolation contracts. Keep the main-branch locator test and its CLI argument parsing boundary unchanged.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 961215ddc8
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| import { createPluginRuntimeMock } from "openclaw/plugin-sdk/channel-test-helpers"; | ||
| import type { AnyAgentTool, OpenClawPluginToolFactory } from "openclaw/plugin-sdk/plugin-entry"; | ||
| import { createTestPluginApi } from "openclaw/plugin-sdk/plugin-test-api"; | ||
| import memoryCorePlugin from "../../memory-core/index.js"; |
There was a problem hiding this comment.
Route the sibling plugin import through a public boundary
The new memory-wiki helper imports ../../memory-core/index.js, creating a package-escaping dependency on a sibling plugin entry point. This prevents the plugins from being tested, moved, or packaged independently; expose the required composition through a documented openclaw/plugin-sdk/* contract or relocate the cross-plugin fixture outside either extension.
AGENTS.md reference: extensions/AGENTS.md:L26-L28
Useful? React with 👍 / 👎.
* test(memory-wiki): deslop x7908 tests * test(memory-wiki): deslop x7908 tests * test(acp): deslop x7916 tests * test(acp): deslop x7916 tests * test(acp): deslop x7916 tests * test(ui): deslop x7917 tests * test(ui): deslop x7917 tests * test(ui): deslop x7917 tests * test(line): deslop x7915 tests * test(line): deslop x7915 tests * test(chat): deslop x7914 tests * test(chat): deslop x7914 tests * test(gateway): deslop x7920 tests * test(gateway): deslop x7920 tests * test(gateway): deslop x7920 tests * test(agents): deslop x7919 tests * test(agents): deslop x7919 tests * test(agents): deslop x7919 tests * test(cli): deslop x7922 tests * test(cli): deslop x7922 tests * test(gateway): deslop x7923 tests * test(gateway): further deslop x7923 tests * test(gateway): further deslop x7923 tests * test(state): deslop x7924 tests * test(state): deslop x7924 tests * test(state): deslop x7924 tests * test(infra): deslop x7928 tests * test(infra): deslop x7928 tests * test(infra): format preserved snapshot regression * test: preserve boundary coverage and repair batch fixtures Restore ACP lifecycle fencing, OAuth response validation, page-cache snapshots, and queued-follower cleanup coverage. Repair fixture typing, async cleanup callbacks, method binding, child-environment assertions, and explicit mock isolation identified by hosted CI and independent review. * test: retire obsolete mock baselines and preserve locator proof Remove exactly the 22 stale mock-factory records identified by hosted CI, now covered by removed mocks or explicit isolation contracts. Keep the main-branch locator test and its CLI argument parsing boundary unchanged.
What Problem This Solves
Reduces repeated fixture setup and low-value test duplication in the maintainer-requested d241 campaign batch.
User Impact
No production or user-visible behavior changes. Tests and test-support code only; no migration or operator action.
Why This Change Was Made
Replay the batch onto pinned main
fd4bc6556220881f758b361891fd2121afd0c0bb, consolidating fixtures and assertions while retaining current-main regressions. This is not a coverage or runtime-performance claim.Evidence
pnpm install --frozen-lockfile --prefer-offline: passed.node_modules/.bin/oxfmt --write <91 changed files>: passed.node_modules/.bin/oxlint -c .oxlintrc.json <91 changed files>: exit 0.git diff --check fd4bc6556220881f758b361891fd2121afd0c0bb: passed.openclaw/ci-gateis the execution/merge gate. Independent review runs during CI.Replay decisions
Applied 28 of 30 source commits in order. Dropped
5f28725f5a1eecf9dc51b30cf8f0aeb6f7730cb6andd97e6c90809912968781be22e14075d014bb085f(x7918): current main expanded X account/authorization, queue, and transport matrices; the dependent cleanup conflicted broadly. No X changes included.Kept main's LF/CRLF/final-record test in
extensions/memory-wiki/src/log.test.tswhile applying the fixture cleanup. Keptsrc/gateway/server-restart-update-run.test.tsunchanged across all three x7920 commits to preserve main's expanded terminal-state/trigger matrices; applied the other x7920 files. Kept main's empty-WAL image-change regression insrc/infra/sqlite-readonly-location.copy.test.tswhile applying surrounding cleanup. Other commits replayed without conflict. No baseline files changed.Shard evidence
The supplied result files describe the first campaign pass, not every later cleanup commit. Their declaration totals are reproduced as source evidence below; replay lexical declaration counts are also shown separately (not expanded runtime cases). None contains coverage totals: they explicitly report coverage not run under CI-only mode, so no <=1% coverage claim is made.
x7915: test/support LOC 3475 → 2640 (-835); lexical declarations 84 → 80
Source report declarations: 78 → 78. Coverage evidence: Tests, coverage, and check-changed were not run under CI-only instructions.
extensions/line/src/download.test.tsextensions/line/src/inbound-image-set.test.tsextensions/line/src/markdown-to-line.test.tsextensions/line/src/message-cards.test.tsextensions/line/src/monitor.lifecycle.test.tsextensions/line/src/outbound.handoff.test.tsextensions/line/src/quote-reply-delivery.test.tsextensions/line/src/row-overflow-delivery.loopback.test.tsx7908: test/support LOC 3191 → 2378 (-813); lexical declarations 60 → 53
Source report declarations: 59 → 59. Coverage evidence: Tests, coverage, and check-changed were intentionally not run under CI-only mode.
extensions/memory-wiki/src/agent-vault-isolation.test.tsextensions/memory-wiki/src/apply.test.tsextensions/memory-wiki/src/chatgpt-import.test.tsextensions/memory-wiki/src/corpus-supplement.visibility.test.tsextensions/memory-wiki/src/gateway.test.tsextensions/memory-wiki/src/import-insights.test.tsextensions/memory-wiki/src/log.test.tsextensions/memory-wiki/src/markdown.test.tsextensions/memory-wiki/src/memory-core.test-support.tsx7916: test/support LOC 3243 → 2637 (-606); lexical declarations 52 → 49
Source report declarations: 48 → 48. Coverage evidence: Tests and coverage were not run, per CI-only mode.
src/acp/runtime/session-meta-control.worker.test.tssrc/acp/runtime/session-meta-doctor.test.tssrc/acp/runtime/session-meta-lifecycle.test-support.tssrc/acp/runtime/session-meta-read.cache.test.tssrc/acp/runtime/session-meta-read.test.tssrc/acp/runtime/session-meta-reset.worker.test.tssrc/acp/runtime/session-meta.key-repair.test.tssrc/acp/runtime/session-meta.legacy-migration.test.tssrc/acp/runtime/session-meta.test.tsx7919: test/support LOC 3178 → 2487 (-691); lexical declarations 87 → 83
Source report declarations: 87 → 85. Coverage evidence: Tests, coverage, and typechecking were not run, per CI-only instructions.
src/agents/github-identity.test-support.tssrc/agents/github-managed-credential.test.tssrc/agents/github-oauth-client.test.tssrc/agents/github-read-identity.test.tssrc/agents/github-tool-identity.test.tssrc/agents/github-tool-profile-cleanup.test.tssrc/agents/identity-avatar-file.test.tssrc/agents/identity-file.test.tssrc/agents/internal-session-effects.test.tsx7922: test/support LOC 3175 → 2454 (-721); lexical declarations 86 → 80
Source report declarations: 85 → 84. Coverage evidence: Tests, coverage, and check-changed were not run, per CI-only mode.
src/cli/models-cli.auth-login.integration.test.tssrc/cli/models-cli.state-owner.test.tssrc/cli/models-cli.test.tssrc/cli/native-hook-relay-cli.locator-worker.test.tssrc/cli/native-hook-relay-cli.test.tssrc/cli/node-worker-bootstrap.test.tssrc/cli/nodes-camera.test.tssrc/cli/nodes-cli.coverage.test.tsx7923: test/support LOC 3177 → 2711 (-466); lexical declarations 37 → 35
Source report declarations: 37 → 37. Coverage evidence: Tests, coverage, and check-changed were not run, per CI-only mode.
src/gateway/server-methods/session-catalog-budget.test.tssrc/gateway/server-methods/session-catalog-entry-snapshot.test.tssrc/gateway/server-methods/session-catalog-gateway-copy.test.tssrc/gateway/server-methods/session-catalog.fixtures.test-support.tssrc/gateway/server-methods/session-catalog.home-isolation.test.tssrc/gateway/server-methods/session-catalog.performance-counters.test-support.tssrc/gateway/server-methods/session-catalog.performance.test-support.tssrc/gateway/server-methods/session-catalog.performance.test.tssrc/gateway/server-methods/session-catalog.test.tsx7920: test/support LOC 2962 → 2398 (-564); lexical declarations 42 → 40
Source report declarations: 45 → 45. Coverage evidence: Tests, coverage, and check-changed were not run, per CI-only instructions.
src/gateway/server-restart-sentinel-notice.test.tssrc/gateway/server-restart-sentinel.media-binding.test.tssrc/gateway/server-restart-sentinel.system-event-owner.test.tssrc/gateway/server-restart-sentinel.test-support.tssrc/gateway/server-retained-plugin-cleanup.test.tssrc/gateway/server-rpc-restart-owner.test.tssrc/gateway/server-runtime-config.test.tsx7928: test/support LOC 3283 → 3080 (-203); lexical declarations 63 → 61
Source report declarations: 62 → 62. Coverage evidence: Tests, coverage, and typechecks were not run under CI-only mode.
src/infra/sqlite-lifecycle-creation.retention.test-support.tssrc/infra/sqlite-migration-scoped-snapshot.test.tssrc/infra/sqlite-native-observer.test.tssrc/infra/sqlite-page-cache.worker.test.tssrc/infra/sqlite-post-commit.test.tssrc/infra/sqlite-private-directory.windows.test.tssrc/infra/sqlite-readonly-location.copy.test.tssrc/infra/sqlite-readonly-location.test.tsx7924: test/support LOC 3189 → 2704 (-485); lexical declarations 56 → 50
Source report declarations: 56 → 56. Coverage evidence: Tests, coverage, and check-changed were not run, per CI-only mode.
src/state/openclaw-agent-session-snapshots-migration.test.tssrc/state/openclaw-agent-standing-intents-schema.admission.test.tssrc/state/openclaw-agent-standing-intents-schema.test.tssrc/state/openclaw-agent-worker-store-v2.test.tssrc/state/openclaw-agent-worker-store.env-capture.test.tssrc/state/openclaw-agent-worker-store.test.tssrc/state/openclaw-agent-write-admission.test.tssrc/state/openclaw-database-maintenance.test.tsx7917: test/support LOC 3137 → 2542 (-595); lexical declarations 22 → 21
Source report declarations: 22 → 22. Coverage evidence: Tests, coverage, and typechecks were not run, per CI-only mode.
ui/src/e2e/chat-flow.local-media-policy.e2e.test.tsui/src/e2e/chat-flow.session-start.e2e.test.tsui/src/e2e/chat-flow.test-support.tsui/src/e2e/chat-footer.e2e.test.tsui/src/e2e/chat-github-publication-accounts.test-support.tsui/src/e2e/chat-github-publication-guest.e2e.test.tsui/src/e2e/chat-github-publication.e2e.test.tsui/src/e2e/chat-goal-recovery.e2e.test.tsx7914: test/support LOC 3520 → 3176 (-344); lexical declarations 54 → 52
Source report declarations: 54 → 54. Coverage evidence: Tests, coverage, and check-changed were not run, per CI-only mode.
ui/src/pages/chat/chat-history-warm-startup.test.tsui/src/pages/chat/chat-host.test-support.tsui/src/pages/chat/chat-layout.browser.test-support.tsui/src/pages/chat/chat-model-restriction-recovery.test.tsui/src/pages/chat/chat-model-runtime.test.tsui/src/pages/chat/chat-outbox-receipt-attention.test.tsui/src/pages/chat/chat-outbox-transient-recovery.test.tsui/src/pages/chat/chat-outbox-volatile-custody.test.tsx7918: entirely dropped; +0/-0 replay LOC and no declaration changes. Source report says all 56 declarations remained and tests/coverage/typechecks were not run.