Skip to content

test: remove low-value tests (batch d315) - #178340

Merged
steipete merged 36 commits into
mainfrom
tcr/land-d315-1792492175
Oct 20, 2026
Merged

steipete merged 36 commits into
mainfrom
tcr/land-d315-1792492175

Conversation

@steipete

@steipete steipete commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Removes repetitive test scaffolding and duplicate assertion structure in campaign batch d315.

User Impact

No user-visible behavior or production code changes. Existing security, lifecycle, ordering, and transport assertions remain the intended contract.

Why This Change Was Made

Consolidates fixtures and table-driven assertions across agent finalization, skills, chat, Control UI, provider/plugin contracts, Gateway cron, Nextcloud Talk, and integration suites. Replayed onto main 1ff58cefbe8d69c1ac833d435b19afe413262a94.

29 of 30 source commits applied, with original messages retained. The entire f3fec2186b5c QA-lab commit (z0129) was skipped: current main has substantially rewritten Gateway startup, configuration, quota recovery, and credential fixtures; retaining those fixes takes precedence over this cleanup.

Conflict resolutions:

  • z0130: dropped all three commits' changes to chat-message-streaming.browser.test.tsx; retained main's wrapped/split highlighting, one/multiple promoted paragraph, and 1/200-character chunk matrices. All other chat cleanup retained.
  • z0133: dropped the second commit's changes to provider-policy-api.test.ts and realtime-voice-provider.test.ts; retained first-commit cleanup plus main's additional endpoint and serialization cases.
  • z0136: retained both none/webhook delivery cases in the first commit; dropped the second commit's changes to server-cron-completion.test.ts to preserve command, deleted/reset source, and missing-identity coverage. Other Gateway cleanup retained; third commit replayed cleanly.
  • Follow-up repair adapts newly added main ClawHub tests to the consolidated mock/fixture names and preserves the Gateway fixture's default/work account list.

Evidence

  • pnpm install --frozen-lockfile --prefer-offline: passed.
  • node_modules/.bin/oxfmt --write <94 changed surviving test/support files>: passed.
  • node_modules/.bin/oxlint -c .oxlintrc.json <94 changed surviving test/support files>: exit 0 after repairing a shadowed ClawHub fixture.
  • git diff --check 1ff58cefbe8d69c1ac833d435b19afe413262a94: passed.
  • No Vitest, typecheck, check-changed, coverage, or Testbox run, per the CI-only instruction. Hosted openclaw/ci-gate is the runtime proof/merge gate. No Testbox IDs created.
  • Independent autoreview runs during hosted CI; actionable findings will disable auto-merge for repair.
  • Production LOC: +0/−0. Test and test-support LOC: +8871/−14321, net -5450, across 94 files (one removed). Separate shrink-only baselines change one timeout entry from 4 to 1 and remove 18 obsolete mock-factory entries.
  • No matching CODEOWNERS paths are touched.
  • No release, changelog, dependency, runtime config, or schema change.

Per-shard replay totals

Counts are recomputed against pinned main for the final replay, including test support. Declaration counts are static it/test call sites, not expanded runtime cases. Source result files describe earlier shard snapshots, so their counts are not substituted for these final totals. Every supplied shard report explicitly states that coverage was not run under CI-only mode; there is no in-shard coverage total to claim.

Shard Test/support LOC before → after (delta) Static declarations Coverage
z0124 2639 → 2150 (-489) 54 → 49 Not run (CI-only)
z0128 2581 → 1979 (-602) 51 → 45 Not run (CI-only)
z0130 1800 → 1461 (-339) 35 → 32 Not run (CI-only)
z0132 1845 → 1552 (-293) 18 → 16 Not run (CI-only)
z0133 2394 → 2014 (-380) 69 → 63 Not run (CI-only)
z0134 2538 → 1878 (-660) 45 → 43 Not run (CI-only)
z0135 2415 → 2048 (-367) 47 → 39 Not run (CI-only)
z0136 2522 → 2056 (-466) 42 → 36 Not run (CI-only)
z0137 2520 → 2014 (-506) 22 → 22 Not run (CI-only)
z0138 2516 → 2093 (-423) 48 → 42 Not run (CI-only)
z0139 2514 → 1878 (-636) 55 → 55 Not run (CI-only)
z0140 2334 → 2045 (-289) 12 → 12 Not run (CI-only)
z0129 Unchanged (commit skipped) Unchanged Not run (CI-only)

CI repair on the replacement head

The initial run (39409171985) exposed batch-caused fixture/type/lint regressions. Auto-merge was disabled before repair. Fixed renamed Google fixture references, Nextcloud tuple arity, bootstrap literal typing, typed callback signatures, missing ClawHub verification setup, missing-vs-undefined assertions, and matcher-triggered getter reads. Static ClawHub response fixtures live in the existing support module to preserve the line cap. Dropped the Copilot-handoff and account-handoff file rewrites entirely, retaining their main versions.

The incomplete initial autoreview was stopped for these edits; a fresh complete review runs on the replacement head. Local formatting, plain lint, and diff checks passed again. No local tests/typechecks or Testbox used.

Final review and remaining repair

The complete three-pass review reported six findings. Accepted: restore default-model Google transcript-finality coverage (entire file restored to main); restore explicit ClawHub linked-status narrowing; restore document-visibility spy cleanup. Rejected after inspecting the actual owners: Gateway handler result always contains response (not a discriminated union); mountSolid roots are registered with shared afterEach cleanupSolid; createTestChatPane already registers disconnectedCallback cleanup. The final repair-delta review completed with no actionable P0-P2 findings.

Later CI failures were repaired with native typed DOM queries instead of unconstrained generic wrappers, the original order-independent catalog assertions, safe unknown catch handling, and an arrow callback for suite.define so downstream callers can safely detach it. The board helper itself was unchanged. The timeout baseline is shrink-only (4 to 1); no assertion, retry, timeout, or skip was weakened to pass CI. The query-fix head was d98e979; earlier CI failures remain earlier-head evidence.

The final query-label correction restores the existing expectDefined API contract; nullable catalog values use the original exact-length plus array-containing assertions. No typecheck or runtime assertion was bypassed.

Run 39412549100 then identified the mock-export ratchet and one catalog attachment assertion. The existing partial mocks intentionally isolate live harness selection, transcript/session persistence, host skill discovery and installer processes; the cold-catalog traps intentionally reject runtime/auth imports. Added precise isolation reasons and removed their obsolete exact baseline entries, plus the entry belonging to the deleted presentation suite. The catalog assertion again compares attachment content, not the source ID: the real handoff owner deliberately assigns a fresh ID to the independent destination. Hosted typechecks and lint passed on the preceding head. Both the annotation-only review and combined follow-up repair review were scoped-clean at P0-P2. The final additional baseline deletion corresponds to the entirely removed presentation test file; fresh hosted CI validates the complete head.

Run 39414812053 passed the repaired mock-export ratchet and catalog test but reported a cold-load title reconciliation failure in the unchanged chat-cold-load-anchor.e2e.test.ts. No inherited-main exception was established. Conservatively dropped the entire cleanup of control-ui-e2e-suite.test-support.ts, restoring the pinned main fixture and its explicit signatures, startup, and cleanup implementation. The cold-load test and production behavior remain unchanged; fresh-head CI must establish the result.

Files and per-file line deltas by shard

z0124

  • src/agents/embedded-agent-runner/run/preparation-timing.test.ts (+36/−70)
  • src/agents/embedded-agent-runner/run/settled-finalization-harness.test-support.ts (+19/−0)
  • src/agents/embedded-agent-runner/run/settled-tool-evidence.test.ts (+218/−368)
  • src/agents/embedded-agent-runner/run/settled-turn-finalization.provider-error.test.ts (+88/−110)
  • src/agents/embedded-agent-runner/run/settled-turn-finalization.qwen.test.ts (+62/−87)
  • src/agents/embedded-agent-runner/run/settled-turn-finalization.silence.test.ts (+196/−279)
  • src/agents/embedded-agent-runner/run/settled-turn-finalization.stale-error.test.ts (+55/−105)
  • src/agents/embedded-agent-runner/run/settled-turn-finalization.test.ts (+193/−365)
  • src/agents/embedded-agent-runner/run/settled-turn-finalization.unavailable.test.ts (+35/−56)
  • src/agents/embedded-agent-runner/run/settled-turn-fixtures.test-support.ts (+49/−0)

z0128

  • src/skills/lifecycle/clawhub-store.authority.test.ts (+29/−64)
  • src/skills/lifecycle/clawhub.test-support.ts (+137/−202)
  • src/skills/lifecycle/clawhub.test.ts (+570/−974)
  • src/skills/lifecycle/install-cache-freshness.test.ts (+26/−54)
  • src/skills/lifecycle/upload-store-lifecycle.test.ts (+87/−130)
  • src/skills/lifecycle/workspace-skill-write.test.ts (+54/−81)

z0130

  • ui/src/pages/chat/components/chat-message-media-solid.test.tsx (+31/−46)
  • ui/src/pages/chat/components/chat-message-media-spacing.browser.test.ts (+181/−224)
  • ui/src/pages/chat/components/chat-message-stream.solid.test.tsx (+35/−40)
  • ui/src/pages/chat/components/chat-model-catalog-state.test.tsx (+157/−216)
  • ui/src/pages/chat/components/chat-model-picker.browser.test.tsx (+101/−117)
  • ui/src/pages/chat/components/chat-model-picker.test-support.tsx (+49/−0)
  • ui/src/pages/chat/components/chat-model-picker.test.tsx (+75/−320)
  • ui/src/pages/chat/components/chat-model-policy.test.ts (+91/−96)

z0132

  • ui/src/e2e/control-ui-build-publication.e2e.test.ts (+109/−113)
  • ui/src/e2e/control-ui-built-module.test-support.ts (+10/−13)
  • ui/src/e2e/control-ui-screenshot-identity.test-support.ts (+12/−25)
  • ui/src/e2e/control-ui-stale-build-reload.e2e.test.ts (+9/−15)
  • ui/src/e2e/cron-duration-save.real-gateway.e2e.test.ts (+146/−345)
  • ui/src/e2e/cron-heartbeat-scratch.e2e.test.ts (+52/−84)
  • ui/src/e2e/cron-history-recovery.e2e.test.ts (+29/−65)

z0133

  • extensions/google/image-generation-provider.test.ts (+65/−231)
  • extensions/google/media-understanding-registration.test.ts (+20/−42)
  • extensions/google/memory-embedding-adapter.test.ts (+44/−81)
  • extensions/google/provider-hooks.test.ts (+18/−88)
  • extensions/google/provider-policy-api.test.ts (+19/−34)
  • extensions/google/provider-registration.test.ts (+52/−65)
  • extensions/google/realtime-voice-provider.test.ts (+163/−220)

z0134

  • src/plugins/contracts/active-run-steering.contract.test.ts (+91/−111)
  • src/plugins/contracts/agent-event-payload.contract.test.ts (+41/−71)
  • src/plugins/contracts/capability-catalog.contract.test.ts (+73/−99)
  • src/plugins/contracts/channel-provider-skills.contract.test.ts (+57/−98)
  • src/plugins/contracts/core-extension-facade-boundary.test.ts (+19/−67)
  • src/plugins/contracts/embedding-provider.contract.test.ts (+50/−90)
  • src/plugins/contracts/plugin-sdk-index.bundle.test.ts (+54/−87)
  • src/plugins/contracts/plugin-sdk-subpaths.test.ts (+419/−841)

z0135

  • ui/src/pages/chat/chat-pane-archive-shortcuts.test.ts (+119/−157)
  • ui/src/pages/chat/chat-pane-bridge.test.tsx (+97/−140)
  • ui/src/pages/chat/chat-pane-browser-annotation.test.ts (+59/−87)
  • ui/src/pages/chat/chat-pane-catalog-disconnect.test.ts (+81/−124)
  • ui/src/pages/chat/chat-pane-catalog.test-support.ts (+35/−0)
  • ui/src/pages/chat/chat-pane-catalog.test.ts (+199/−352)
  • ui/src/pages/chat/chat-pane-companion-lifecycle.test.ts (+107/−152)
  • ui/src/pages/chat/chat-pane-connection-lifecycle.test.ts (+119/−171)

z0136

  • src/gateway/server-cron-completion.test-support.ts (+9/−14)
  • src/gateway/server-cron-completion.test.ts (+119/−153)
  • src/gateway/server-cron-notifications.presentation.test.ts (+0/−191)
  • src/gateway/server-cron-notifications.repair.test.ts (+41/−70)
  • src/gateway/server-cron-notifications.test.ts (+326/−462)
  • src/gateway/server-cron-primary-webhook.test.ts (+74/−91)
  • src/gateway/server-cron-reconciled.test.ts (+55/−97)
  • src/gateway/server-cron.queue.test-support.ts (+31/−43)

z0137

  • test/subagent-requester-owner.e2e.test.ts (+379/−573)
  • test/telegram-question-gateway.test.ts (+121/−136)
  • test/test-env.state-lifetime.test.ts (+91/−104)
  • test/visitor-access-revocation.test.ts (+122/−133)
  • test/vitest-projects-config.test-support.ts (+42/−78)
  • test/vitest-redacting-reporter.test.ts (+75/−98)
  • test/vitest-reporters-config.test.ts (+67/−95)
  • test/vitest-ui-e2e-config.test.ts (+74/−260)

z0138

  • src/agents/embedded-agent-runner/run/attempt.abort-race.test.ts (+117/−164)
  • src/agents/embedded-agent-runner/run/attempt.cwd-split.test.ts (+52/−75)
  • src/agents/embedded-agent-runner/run/attempt.media-hint-cache-boundary.test.ts (+37/−69)
  • src/agents/embedded-agent-runner/run/attempt.sessions-yield.test.ts (+18/−51)
  • src/agents/embedded-agent-runner/run/attempt.spawn-workspace.context-engine.test.ts (+248/−436)
  • src/agents/embedded-agent-runner/run/attempt.spawn-workspace.context-injection.test.ts (+16/−72)
  • src/agents/embedded-agent-runner/run/attempt.subagent-runtime-facts.test.ts (+61/−85)
  • src/agents/embedded-agent-runner/run/attempt.subscription-cleanup.test.ts (+92/−112)

z0139

  • extensions/nextcloud-talk/src/accounts.test.ts (+50/−83)
  • extensions/nextcloud-talk/src/bot-preflight.test.ts (+55/−92)
  • extensions/nextcloud-talk/src/channel.core.test.ts (+26/−58)
  • extensions/nextcloud-talk/src/channel.status.test.ts (+51/−66)
  • extensions/nextcloud-talk/src/doctor-contract.test.ts (+30/−54)
  • extensions/nextcloud-talk/src/inbound-media.behavior.test.ts (+216/−367)
  • extensions/nextcloud-talk/src/inbound-media.test.ts (+152/−337)
  • extensions/nextcloud-talk/src/inbound.authz.test.ts (+92/−251)

z0140

  • test/cron-edit-trigger-preservation.e2e.test.ts (+60/−92)
  • test/cron-message-read.integration.test.ts (+119/−231)
  • test/decision-admission.test-support.ts (+134/−0)
  • test/decision-levanto-admission.integration.test.ts (+223/−315)
  • test/decision-subq-admission.integration.test.ts (+261/−379)
  • test/docker-entrypoint.test.ts (+41/−55)
  • test/doctor-lease-contention.e2e.test.ts (+72/−93)
  • test/gateway-a2a.e2e.test.ts (+80/−114)

Separate ratchet: config/test-timeout-race-baseline.txt, +1/−1.

@steipete
steipete disabled auto-merge October 20, 2026 10:52
@steipete
steipete enabled auto-merge (squash) October 20, 2026 10:58
@steipete
steipete disabled auto-merge October 20, 2026 11:04
@steipete
steipete enabled auto-merge (squash) October 20, 2026 11:06

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: d98e979512

ℹ️ 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".

Comment on lines -26 to -28
vi.mock("../infra/net/fetch-guard.js", () => ({
fetchWithSsrFGuard: mocks.fetchWithSsrFGuard,
}));

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Prune the deleted mock factory from the ratchet baseline

Deleting this test also removes its closed fetch-guard mock, but the corresponding tuple remains in config/test-mock-exports-baseline.txt:5747. The mandatory check:test-mock-exports CI ratchet treats entries removed from the current inventory as an error, so this commit cannot pass that CI check until the baseline is regenerated with the prune command.

Useful? React with 👍 / 👎.

@steipete
steipete disabled auto-merge October 20, 2026 11:15
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Oct 20, 2026
@steipete
steipete enabled auto-merge (squash) October 20, 2026 11:25
@steipete
steipete disabled auto-merge October 20, 2026 11:40
@steipete
steipete enabled auto-merge (squash) October 20, 2026 11:48
@steipete
steipete disabled auto-merge October 20, 2026 11:48
@steipete
steipete enabled auto-merge (squash) October 20, 2026 11:48
@steipete
steipete merged commit 0784da5 into main Oct 20, 2026
124 checks passed
@steipete
steipete deleted the tcr/land-d315-1792492175 branch October 20, 2026 12:06
steipete added a commit that referenced this pull request Oct 20, 2026
Remove orphaned context-engine assertions and the already-current convergence table after #178340 and #178341. Keep webhook, MCP authority, and JSON-target helpers local after #178399, #172026, and #178407; replace the test-only skill-authoring reset seam with module isolation.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 21, 2026
* test(chat): deslop z0130 tests

* test(chat): deslop z0130 tests

* test(chat): deslop z0130 tests

* test(agents): deslop z0124 tests

* test(skills): deslop z0128 tests

* test(skills): deslop z0128 tests

* test(skills): deslop z0128 tests

* test(control-ui): deslop z0132 tests

* test(control-ui): deslop z0132 tests

* test(control-ui): deslop z0132 tests

* test(plugins): deslop z0134 tests

* test(plugins): further deslop z0134 tests

* test(google): deslop z0133 tests

* test(google): deslop z0133 tests

* test(nextcloud-talk): deslop z0139 tests

* test(gateway): deslop z0136 tests

* test(gateway): deslop z0136 tests

* test(gateway): deslop z0136 tests

* test(chat): deslop z0135 tests

* test(chat): deslop z0135 tests

* test(chat): deslop z0135 tests

* test(agents): deslop z0138 tests

* test(agents): deslop z0138 tests

* test(agents): deslop z0138 tests

* test(tooling): deslop z0137 tests

* test(tooling): deslop z0137 tests

* test(tooling): deslop z0137 tests

* test(integration): deslop z0140 tests

* test(integration): deslop z0140 tests

* test: preserve current fixtures during batch d315 replay

* test: repair d315 fixture and assertion regressions from CI

* test: preserve boundary coverage and repair remaining d315 checks

* test: keep suite definition callback safely unbound

* test: retain query labels and nullable catalog assertions

* test: preserve mock isolation and attachment handoff contracts

* test(control-ui): retain the shared E2E fixture
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 21, 2026
Remove orphaned context-engine assertions and the already-current convergence table after openclaw#178340 and openclaw#178341. Keep webhook, MCP authority, and JSON-target helpers local after openclaw#178399, openclaw#172026, and openclaw#178407; replace the test-only skill-authoring reset seam with module isolation.
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: nextcloud-talk Channel integration: nextcloud-talk extensions: google gateway Gateway runtime P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. size: XL status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant