Skip to content

test(core,plugins,ui): remove low-value tests (batch d365) - #179124

Merged
steipete merged 32 commits into
mainfrom
tcr/land-d365-1792562027
Oct 21, 2026
Merged

steipete merged 32 commits into
mainfrom
tcr/land-d365-1792562027

Conversation

@steipete

@steipete steipete commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Repeated test setup and duplicate assertions make the selected browser, plugin, agent, state, and UI tests harder to maintain.

User Impact

No user-visible or production-code changes. This batch consolidates test fixtures and equivalent cases while retaining the distinct authorization, lifecycle, failure, and persistence checks.

Why This Change Was Made

Replay all 30 selected campaign commits onto pinned main 5ceb735696cd258e5340a31df44f5c785eccc006. All were applied; none skipped. The batch changes 89 test/support files: +4724/-7157 lines, net -2433. Production LOC: +0/-0. Physical test/support LOC: 13317 → 10884; lexical test declaration/call sites: 300 → 269 (parameterized cases are not expanded).

Conflict resolutions preserve current main:

  • Systems: retain the separate page-header h1 and selected-machine h2 assertions while using the shared text helper.
  • POSIX settlement: retain the current API with no retired initialSignal option; keep the fixture/case consolidation.
  • Session memory export (two commits): retain main's payload-binding instrumentation and <=4 bound; keep its explicit observer cleanup where the generic disposable helper cannot carry that instrumentation. Other consolidation hunks retained.

After GitHub reported a merge conflict, rebase onto the pinned main above retained all 30 campaign commits plus the CI repair. Range-diff confirmed the repair patch is unchanged. Additional resolutions:

  • Inactive-channel secrets: retain main's nine new Slack default-account credential cases unchanged; drop the final consolidation of that file from the second secrets commit, keeping its earlier fixture cleanup.
  • Composer attachments: preserve main's failed-tile removal and exact error-toast assertions; omit the obsolete inline-error-tile assertions while keeping the mounting/read fixture consolidation.

A second confirmed merge conflict required another pinned rebase: session memory export retains main's new cache-reuse and memory-pressure invalidation checks, including the parameterized expected payload-read count. The CI repair patch remains unchanged.

No production seams or runtime policies changed. Six exact obsolete allowances are removed from config/test-mock-exports-baseline.txt; no allowances are added. CODEOWNERS: none of the changed paths match the current explicit rules.

Review and CI repair

The first hosted run (39553848349) exposed batch-caused type, typed-lint, and mock-export guard errors. A follow-up repair preserves behavior cases: tagged-table row types move to callbacks; browser discovery fixtures provide complete fields; the memory sync helper returns its manager; the environment type comes from the worker-context owner; intentional mock isolation and receiver forwarding remain explained; the unnecessary generic DOM-query wrapper is removed.

Independent full-diff review accepted two findings: restore unconditional browser-service teardown and restore the outbound no-display HTTP 409 mapping check. Both are fixed. Its missing-timestamp report was rejected because the timestamp is declared immediately above the cited use. The combined repair was independently reviewed with no actionable findings.

The next fresh-head run (39558803836) required pruning exactly six mock-export baseline rows made obsolete by those reviewed isolation comments. The six-line shrink-only follow-up was independently reviewed with no actionable findings. These metadata deletions are separate from the test/support LOC totals above.

A subsequent run (39560855646) passed the batch's jobs but exposed unrelated planner test-type errors in test/scripts/ci-changed-node-test-plan.test.ts. Main fixed those errors in 5ceb735696cd258e5340a31df44f5c785eccc006. This branch was rebased onto that exact fix; all 32 batch/follow-up patches are unchanged by range-diff. Fresh-head CI is the gate; no inherited-failure merge exception was used.

Evidence

  • pnpm install --frozen-lockfile --prefer-offline: passed.
  • node_modules/.bin/oxfmt --write <all 89 changed files>: passed.
  • node_modules/.bin/oxlint -c .oxlintrc.json <all 89 changed files>: exited 0.
  • git diff --check 5ceb735696cd258e5340a31df44f5c785eccc006: passed.
  • CI-only instruction: no local Vitest, check-changed, tsgo, or Testbox runs. Testbox leases: none. Local test wall times: not measured.
  • Hosted openclaw/ci-gate is the behavioral merge gate. Independent full-diff and repair reviews completed; fresh-head CI verifies the repair.
  • Source shard reports explicitly say tests and coverage were not run under CI-only mode; no in-shard covered-statement/branch totals are available. This is a recorded evidence gap, not a claim that the older <=1% coverage gate passed.
Per-shard replay inventory

Counts below are computed from the actual rebased tree against the pinned base, including test-support files. The supplied reports describe an earlier shard pass, so their earlier LOC/declaration totals are not substituted for these batch totals.

Shard Test/support LOC Declaration sites Diff In-shard coverage totals
z0715 1100 → 946 19 → 18 +358/-512 Not run (CI-only report)
z0717 1100 → 991 19 → 19 +320/-429 Not run (CI-only report)
z0718 1106 → 918 26 → 22 +274/-462 Not run (CI-only report)
z0720 1094 → 805 37 → 34 +519/-808 Not run (CI-only report)
z0722 946 → 779 26 → 24 +358/-525 Not run (CI-only report)
z0723 1198 → 958 24 → 23 +422/-662 Not run (CI-only report)
z0721 1334 → 1010 27 → 20 +598/-922 Not run (CI-only report)
z0719 1088 → 778 30 → 24 +337/-647 Not run (CI-only report)
z0724 1089 → 893 31 → 27 +579/-775 Not run (CI-only report)
z0725 1184 → 1009 27 → 26 +426/-601 Not run (CI-only report)
z0726 1089 → 992 19 → 17 +318/-415 Not run (CI-only report)
z0727 989 → 805 15 → 15 +215/-399 Not run (CI-only report)

z0715

  • extensions/browser/src/browser/extension-relay/gateway-relay-ingress.integration.test.ts
  • extensions/browser/src/browser/extension-relay/owner-connection.integration.test.ts
  • extensions/browser/src/browser/extension-relay/preauth-websocket-guard.test.ts
  • extensions/browser/src/browser/extension-relay/relay-auth.test.ts
  • extensions/browser/src/browser/extension-relay/relay-coexistence.e2e.test.ts
  • extensions/browser/src/browser/extension-relay/relay-http.test-support.ts
  • extensions/browser/src/browser/extension-relay/relay-protocol.test.ts
  • extensions/browser/src/browser/extension-relay/relay-runtime.test-support.ts

z0717

  • ui/src/pages/systems/systems-data.test.ts
  • ui/src/pages/systems/systems-page.test.ts
  • ui/src/pages/systems/systems.test-support.ts

z0718

  • extensions/memory-core/src/postgres-product.test-support.ts
  • extensions/memory-core/src/recall-result.test-support.ts
  • extensions/memory-core/src/short-term-promotion-artifacts.settlement.test.ts
  • extensions/memory-core/src/short-term-promotion-memory-write.test.ts
  • extensions/memory-core/src/standing-intents.postgres.test.ts
  • extensions/memory-core/src/tools.postgres.test.ts
  • extensions/memory-core/src/tools.recall-tracking.test.ts

z0720

  • extensions/qa-lab/src/plugin-subagent-current-requester.e2e.test.ts
  • extensions/qa-lab/src/posix-command-settlement.test.ts
  • extensions/qa-lab/src/posix-process-group.test.ts
  • extensions/qa-lab/src/process-tree-cpu.test.ts
  • extensions/qa-lab/src/process-tree-cpu.windows.test.ts
  • extensions/qa-lab/src/profile-selection.test.ts
  • extensions/qa-lab/src/runtime-parity-cache-diagnostics.test.ts
  • extensions/qa-lab/src/runtime-parity.execution-order.test.ts

z0722

  • test/scripts/shrink-ratchet.test.ts
  • test/scripts/source-file-scan-cache.test.ts
  • test/scripts/source-update-artifact-preflight.test.ts
  • test/scripts/sqlite-reliability-process.test.ts
  • test/scripts/sqlite-schema-catalog-equivalence.test.ts
  • test/scripts/sqlite-session-schema-baseline.test.ts
  • test/scripts/stage-cloudflared-macos.test.ts

z0723

  • src/secrets/runtime-auth-store-admission.test.ts
  • src/secrets/runtime-channel-inactive-variants.test.ts
  • src/secrets/runtime-degraded-state.test.ts
  • src/secrets/runtime-external-channel-origin-discovery.test.ts
  • src/secrets/runtime-inactive-core-surfaces.test.ts
  • src/secrets/runtime-nostr.test.ts
  • src/secrets/runtime-plugin-secret-owners.test.ts
  • src/secrets/runtime-state.clear.test.ts

z0721

  • src/agents/embedded-agent-runner/run/attempt-context-engine.test-support.ts
  • src/agents/embedded-agent-runner/run/attempt-decision-prefilter.test.ts
  • src/agents/embedded-agent-runner/run/attempt-finalize.media.test.ts
  • src/agents/embedded-agent-runner/run/attempt-memory-audience.test.ts
  • src/agents/embedded-agent-runner/run/attempt.context-engine-helpers.test.ts
  • src/agents/embedded-agent-runner/run/attempt.exec-review-transcript.test.ts
  • src/agents/embedded-agent-runner/run/attempt.model-wait.test.ts
  • src/agents/embedded-agent-runner/run/attempt.tool-call-argument-repair.test.ts

z0719

  • extensions/feishu/src/monitor.bot-menu.test.ts
  • extensions/feishu/src/monitor.cleanup.test.ts
  • extensions/feishu/src/monitor.message-handler.test-support.ts
  • extensions/feishu/src/policy.test.ts
  • extensions/feishu/src/reactions.test.ts
  • extensions/feishu/src/reply-dispatcher.model-wait.test.ts
  • extensions/feishu/src/sequential-key.test.ts
  • extensions/feishu/src/sequential-queue.test.ts

z0724

  • extensions/browser/src/browser/client-fetch.cold-start.test.ts
  • extensions/browser/src/browser/client-fetch.unavailable.test.ts
  • extensions/browser/src/browser/errors.test.ts
  • extensions/browser/src/browser/extension-install-atomic.test.ts
  • extensions/browser/src/browser/extension-pairing.test.ts
  • extensions/browser/src/browser/extension-setup.test.ts
  • extensions/browser/src/browser/extension-windows-host.test.ts
  • extensions/browser/src/browser/extension-windows.test-support.ts

z0725

  • src/config/sessions/session-history-eviction.lifecycle-contention.test.ts
  • src/config/sessions/session-history-read.imports.test.ts
  • src/config/sessions/session-lifecycle-projection.reads.test.ts
  • src/config/sessions/session-memory-entry.worker.test.ts
  • src/config/sessions/session-model-context-window.test.ts
  • src/config/sessions/session-native-binding.execution.test-support.ts
  • src/config/sessions/session-pending-input-foreign-rewrite.test.ts
  • src/config/sessions/session-pending-input-source.test.ts

z0726

  • src/state/openclaw-state-lease-native-admission.test.ts
  • src/state/openclaw-state-lease-native-cleanup.test.ts
  • src/state/openclaw-state-lease-renewal.worker.test.ts
  • src/state/openclaw-state-lease-worker.test.ts
  • src/state/openclaw-state-lease-worker.transaction-group.test.ts
  • src/state/openclaw-state-read-source.test.ts
  • src/state/openclaw-state-read.owned-native-token.test.ts
  • src/state/openclaw-state-read.worker.test.ts

z0727

  • ui/src/pages/new-session/cloud-target.browser.test.ts
  • ui/src/pages/new-session/composer-attachments.test.ts
  • ui/src/pages/new-session/composer-critters.test.ts
  • ui/src/pages/new-session/composer.test-support.ts
  • ui/src/pages/new-session/draft-cloud-machine-state.test.ts
  • ui/src/pages/new-session/draft-controller.test-support.ts
  • ui/src/pages/new-session/draft.catalog-reconnect.test.ts
  • ui/src/pages/new-session/draft.model-defaults.test.ts

@clawsweeper

clawsweeper Bot commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review in progress

ClawSweeper is reviewing this revision. This supersedes any previous blocked status.

View the workflow run.

@steipete
steipete enabled auto-merge (squash) October 21, 2026 06:10
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review 🔄 Running since 2026-10-21T07:56:00.799649Z 66590fb New commits
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui extensions: memory-core Extension: memory-core agents Agent runtime and tooling channel: feishu Channel integration: feishu extensions: qa-lab extensions: browser size: XL labels Oct 21, 2026
@steipete
steipete disabled auto-merge October 21, 2026 06:18
@steipete
steipete enabled auto-merge (squash) October 21, 2026 06:34
@steipete
steipete force-pushed the tcr/land-d365-1792562027 branch 2 times, most recently from 1253180 to 91dd5ef Compare October 21, 2026 06:58
@steipete
steipete disabled auto-merge October 21, 2026 07:11
@steipete
steipete enabled auto-merge (squash) October 21, 2026 07:17
@steipete
steipete disabled auto-merge October 21, 2026 07:28
@steipete
steipete force-pushed the tcr/land-d365-1792562027 branch from 0d36a4b to 66590fb Compare October 21, 2026 07:55
@steipete
steipete enabled auto-merge (squash) October 21, 2026 07:56
@steipete
steipete merged commit 6480ff7 into main Oct 21, 2026
131 of 132 checks passed
@steipete
steipete deleted the tcr/land-d365-1792562027 branch October 21, 2026 08:19
steipete added a commit that referenced this pull request Oct 21, 2026
Restore the explicit Worker receiver contract removed by6480ff70b857 (#179124), capture postMessage before spying, and retain apply forwarding to the actual worker. Remove the unbound-method suppression without changing the pinned97-entry inventory.

Reproduced the suppression test at98versus97 before repair. All60 affected tests across7 files pass with one worker, including real worker-loss cases. The matching agents-sessions test typecheck leaf, targeted lint, formatting and P2 review pass.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 22, 2026
…179124)

* test(browser): deslop z0715 tests

* test(browser): deslop z0715 tests

* test(browser): deslop z0715 tests

* test(systems): deslop z0717 tests

* test(systems): deslop z0717 tests

* test(systems): deslop z0717 tests

* test(memory-core): deslop z0718 tests

* test(memory-core): deslop z0718 tests

* test(memory-core): deslop z0718 tests

* test(qa-lab): deslop z0720 tests

* test(qa-lab): deslop z0720 tests

* test(scripts): deslop z0722 tests

* test(scripts): deslop z0722 tests

* test(secrets): deslop z0723 tests

* test(secrets): deslop z0723 tests

* test(agents): deslop z0721 tests

* test(agents): deslop z0721 tests

* test(agents): deslop z0721 tests

* test(feishu): deslop z0719 tests

* test(feishu): deslop z0719 tests

* test(browser): deslop z0724 tests

* test(browser): deslop z0724 tests

* test(browser): deslop z0724 tests

* test(config): deslop z0725 tests

* test(config): deslop z0725 tests

* test(config): deslop z0725 tests

* test(state): deslop z0726 tests

* test(state): deslop z0726 tests

* test(state): deslop z0726 tests

* test(ui): deslop z0727 tests

* test: repair batch d365 fixtures and preserve browser contracts

* test: prune resolved batch d365 mock allowances
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 22, 2026
Restore the explicit Worker receiver contract removed by6480ff70b857 (openclaw#179124), capture postMessage before spying, and retain apply forwarding to the actual worker. Remove the unbound-method suppression without changing the pinned97-entry inventory.

Reproduced the suppression test at98versus97 before repair. All60 affected tests across7 files pass with one worker, including real worker-loss cases. The matching agents-sessions test typecheck leaf, targeted lint, formatting and P2 review pass.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling app: web-ui App: web-ui channel: feishu Channel integration: feishu extensions: browser extensions: memory-core Extension: memory-core extensions: qa-lab size: XL

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant