Skip to content

test(gateway,plugins,cli,ui): remove low-value tests (batch d252) - #176399

Merged
steipete merged 31 commits into
mainfrom
tcr/land-d252-1792353973
Oct 18, 2026
Merged

steipete merged 31 commits into
mainfrom
tcr/land-d252-1792353973

Conversation

@steipete

@steipete steipete commented Oct 18, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Reduces repeated test fixtures and assertion boilerplate across the d252 campaign batch.

User Impact

No production behavior, public API, configuration, or visual change. 68 changed files are tests or test support, with 4,132 net lines removed (+7,574 / -11,706). One mock-export baseline file loses nine obsolete entries, for 4,141 total net lines removed across 69 files. Production: +0 / -0.

Why This Change Was Made

Replayed 29 of 30 supplied commits and a reviewed correction onto pinned main 2e98e99. Initial base was 3561a19; refreshed because GitHub reported a conflicting merge ref. During the rebase, kept main's entire Codex attempt-context test file, including newer deferred-tool prompt-report coverage, and dropped its cleanup hunks. Consolidated fixtures and table cases while preserving distinct security, authorization, lifecycle, and recovery checks.

Skipped 3aeb9fe3acf3126d83a92e5b8c82fd7e7cef4302 (x8036): extensive conflicts with current script fixtures and action behavior. For conflicting files, kept current-main content and dropped the corresponding cleanup hunks: UI custom-theme and exec-approval; plugin runtime-agent; gateway server.config-patch; node-host desktop-stream-command. Later node-host config cleanup hunks were also dropped, retaining the clean first-round changes and all main-added cases. Nonconflicting changes were retained. Fixed one newly shadowed runtimeScope binding by reusing the suite-owned binding. No production seams changed. Pruned exactly the nine obsolete mock-export baseline entries reported by hosted CI after adding explicit isolation reasons. No changed paths match CODEOWNERS.

Independent review found three P2 issues: a metadata-only test changed session identity; no-Git-context coverage was removed; and runner capability negotiation coverage was removed. All accepted: restored the three complete main files. Hosted typed lint/type checks also identified fixture issues. Restored utility-model, sessions-import, dev-gateway, Feishu transport-status, and goal-lifecycle tests/support instead of broadening their cleanup. Corrected literal/nullable fixture types, synchronous event result normalization, context-free callback declarations, and cleanup ordering; restored explicit mock-isolation reasons. The cron collector now awaits events through the owning test signal instead of introducing a wall-clock timeout. No review findings rejected. Independent correction review completed clean at P0–P2.

The rebased CI run (https://github.com/openclaw/openclaw/actions/runs/39165449848) confirmed the timeout-race repair and exposed an uninitialized ACP fixture variable plus those stale baseline entries; both corrected. The X-publication composition test timed out again without matching hourly-main failure evidence. Dropped the entire x8042 chat-fixture refactor and restored all its files byte-for-byte from the pinned main instead of weakening the test or claiming it pre-existing.

Evidence

  • pnpm install --frozen-lockfile --prefer-offline: passed.
  • node_modules/.bin/oxfmt --write <68 changed files>: exit 0.
  • node_modules/.bin/oxlint -c .oxlintrc.json <68 changed TS files>: exit 0.
  • git diff --check 2e98e99: passed.
  • Initial hosted run: https://github.com/openclaw/openclaw/actions/runs/39162049416. Typed lint/type and timeout/mock ratchet failures addressed in the follow-up; a separate untouched X-publication composition test timed out and is not claimed as proven pre-existing. Fresh-head CI remains required.
  • CI-only operator instruction: no local tests, typecheck, check-changed, coverage, or Testbox runs. Required openclaw/ci-gate is the runtime proof; independent review runs during CI. No leases created.
  • Source shard reports explicitly say tests and coverage were not run under CI-only mode, so no coverage totals or <=1% coverage-loss claim is available. Their 25%-per-file reduction target was not reached; this batch does not claim otherwise.
Per-shard replay inventory and static counts

Counts below are from the actual replay versus pinned main; declaration counts are static it/test call-site counts (table rows are not expanded). LOC includes test support.

Shard Test/support LOC before → after Declaration sites before → after Coverage totals
x8033 1917 → 1503 40 → 39 Not run: CI-only
x8035 2715 → 2091 84 → 77 Not run: CI-only
x8037 1265 → 1108 13 → 13 Not run: CI-only
x8038 2033 → 1703 31 → 29 Not run: CI-only
x8039 2030 → 1773 56 → 49 Not run: CI-only
x8040 2694 → 2198 73 → 67 Not run: CI-only
x8041 1943 → 1734 38 → 37 Not run: CI-only
x8042 0 → 0 0 → 0 Not run: CI-only
x8043 1216 → 1086 20 → 20 Not run: CI-only
x8044 2984 → 2472 38 → 37 Not run: CI-only
x8049 2967 → 2386 82 → 72 Not run: CI-only
x8050 2531 → 2109 48 → 46 Not run: CI-only
x8036 Skipped Unchanged Not run: CI-only

x8033

  • src/plugins/runtime/gateway-request-scope.test.ts
  • src/plugins/runtime/index.test.ts
  • src/plugins/runtime/load-context.test.ts
  • src/plugins/runtime/metadata-registry-loader.test.ts
  • src/plugins/runtime/runtime-agent.acp-binding.test.ts
  • src/plugins/runtime/runtime-agent.ingress.integration.test.ts
  • src/plugins/runtime/runtime-channel.test.ts

x8035

  • src/cli/secrets-store-cli.kind-inheritance.test.ts
  • src/cli/secrets-store-cli.test-support.ts
  • src/cli/secrets-store-cli.test.ts
  • src/cli/security-cli.test.ts
  • src/cli/session-ref.test.ts
  • src/cli/skills-cli.commands.test.ts
  • src/cli/skills-cli.test-support.ts
  • src/cli/skills-cli.test.ts
  • src/cli/skills-cli.verify.test.ts

x8037

  • src/gateway/server.cron.test.ts

x8038

  • src/gateway/control-ui-session-prs-branch.test.ts
  • src/gateway/control-ui-session-prs-host.test.ts
  • src/gateway/control-ui-session-prs-landing.test.ts
  • src/gateway/control-ui-session-prs-retention.test.ts
  • src/gateway/control-ui-session-prs.test-support.ts
  • src/gateway/conversation-list.test.ts

x8039

  • ui/src/app/lazy-custom-element.test.ts
  • ui/src/app/lazy-shell-action.test.ts
  • ui/src/app/link-reader-routing.test.ts
  • ui/src/app/mentions.test.ts
  • ui/src/app/mount-fallback.test.ts

x8040

  • src/agents/vllm-serving-context.e2e.test.ts
  • src/agents/watched-sessions-prompt.test.ts
  • src/agents/workspace-access.test.ts
  • src/agents/workspace-alias-rebind.test.ts
  • src/agents/workspace.bootstrap-cache.test.ts
  • src/agents/workspace.bootstrap-read-diagnostics.test.ts
  • src/agents/workspace.test.ts

x8041

  • src/node-host/auto-update-compatibility.test.ts
  • src/node-host/auto-update-install.test.ts
  • src/node-host/auto-update.test-support.ts
  • src/node-host/auto-update.test.ts
  • src/node-host/claude-skill-session.test.ts
  • src/node-host/config.test.ts
  • src/node-host/gateway-candidate-connection.test.ts

x8043

  • extensions/feishu/src/monitor.card-action.lifecycle.test-support.ts
  • extensions/feishu/src/monitor.message-handler.ingress.test.ts
  • extensions/feishu/src/monitor.vc-meeting-invited-handler.test.ts

x8044

  • src/agents/harness/host-capability.skill-pins.test.ts
  • src/agents/harness/host-model-execution.test.ts
  • src/agents/harness/host-skills.test.ts
  • src/agents/harness/isolated-completion.native-auth.test.ts
  • src/agents/harness/lifecycle-hook-helpers.test.ts
  • src/agents/harness/mediated-delegation-effects.test.ts
  • src/agents/harness/model-catalog.test.ts
  • src/agents/harness/native-hook-relay-store.test.ts

x8049

  • src/plugin-sdk/browser-maintenance.test.ts
  • src/plugin-sdk/channel-config-helpers.test.ts
  • src/plugin-sdk/channel-entry-contract.test.ts
  • src/plugin-sdk/channel-entry.test-support.ts
  • src/plugin-sdk/channel-inbound.test.ts
  • src/plugin-sdk/channel-ingress-runtime.test.ts
  • src/plugin-sdk/channel-lifecycle.test.ts
  • src/plugin-sdk/channel-policy.test.ts
  • src/plugin-sdk/core.test.ts

x8050

  • extensions/codex/src/app-server/app-server-policy.test.ts
  • extensions/codex/src/app-server/attempt-client-cleanup.test.ts
  • extensions/codex/src/app-server/attempt-startup-computer-use.test.ts
  • extensions/codex/src/app-server/attempt-startup-retry.test.ts
  • extensions/codex/src/app-server/attempt-startup.test-support.ts
  • extensions/codex/src/app-server/attempt-steering.test.ts

Baseline maintenance

  • config/test-mock-exports-baseline.txt: nine exact obsolete entries removed, as reported by CI.

@clawsweeper

clawsweeper Bot commented Oct 18, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

ClawSweeper review blocked

Automated review did not run, so no review verdict was produced.

Reason: The input-safety check rejected material in this revision. No detected value, path, or scanner output is reproduced here.

Automatic review is on hold, including after source changes. Request a fresh re-review after resolving the failure; maintainers can also release the hold through an intentional scanner-policy update.

Next step: If this is a genuine credential, remove and rotate it. If it is an intentional test fixture, a maintainer must review and qualify it.

View the workflow run.

@steipete
steipete enabled auto-merge (squash) October 18, 2026 20:09
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 18, 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 ✅ Completed 2026-10-18T21:13:27.340294Z bb6d21e 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 gateway Gateway runtime cli CLI command changes agents Agent runtime and tooling channel: feishu Channel integration: feishu extensions: codex size: XL labels Oct 18, 2026
@steipete
steipete disabled auto-merge October 18, 2026 20:15
@steipete
steipete enabled auto-merge (squash) October 18, 2026 20:46
@steipete
steipete force-pushed the tcr/land-d252-1792353973 branch from ea4267b to 7b629da Compare October 18, 2026 20:54
@steipete
steipete disabled auto-merge October 18, 2026 21:06
@steipete
steipete enabled auto-merge (squash) October 18, 2026 21:09
@steipete
steipete merged commit b518289 into main Oct 18, 2026
138 checks passed
@steipete
steipete deleted the tcr/land-d252-1792353973 branch October 18, 2026 21:34
obviyus added a commit that referenced this pull request Oct 18, 2026
## What Problem This Solves

Fixes: Knip `deadcode:exports` on main reports four exports that recent refactors left without a consumer. #176447 does not cover them.

## User Impact

No user-visible change.

## Why This Change Was Made

- `src/cron/service.test-harness.ts: createCronServiceStateWithJobs`: #175975 removed its last callers, so it is deleted.
- `extensions/copilot/src/attempt.test-support.ts: createStubToolBridge`: #176003 added an exported copy that nothing imports, so it is deleted. The file is back to its state before #176003.
- `src/daemon/inspect-markers.ts: classifyGatewayCommand`: #176469 removed the only outside import, so it is now module-private.
- `src/gateway/server-cron.events.test-support.ts: CRON_WAIT_TIMEOUT_MS`: #176399 removed the last outside caller, so it is now module-private.

No ignores were added.

## Evidence

- `pnpm run deadcode:exports` on this branch, diffed against main `48439195832`: only these four entries disappear.
- `extensions/copilot/src/attempt.test.ts` and `src/daemon/inspect.test.ts` pass in full. `oxfmt` and `oxlint` are clean.

Co-authored-by: Ayaan Zaidi <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 19, 2026
…enclaw#176399)

* test(gateway): deslop x8038 tests

* test(gateway): deslop x8038 tests

* test(gateway): deslop x8038 tests

* test(ui): deslop x8039 tests

* test(ui): deslop x8039 tests

* test(ui): deslop x8039 tests

* test(plugins): deslop x8033 tests

* test(plugins): deslop x8033 tests

* test(feishu): deslop x8043 tests

* test(cli): deslop x8035 tests

* test(cli): deslop x8035 tests

* test(cli): deslop x8035 tests

* test(gateway): deslop x8037 tests

* test(gateway): deslop x8037 tests

* test(gateway): deslop x8042 tests

* test(gateway): deslop x8042 tests

* test(node-host): deslop x8041 tests

* test(node-host): deslop x8041 tests

* test(node-host): deslop x8041 tests

* test(agents): deslop x8040 tests

* test(agents): deslop x8040 tests

* test(agents): deslop x8040 tests

* test(harness): deslop x8044 tests

* test(plugin-sdk): deslop x8049 tests

* test(plugin-sdk): deslop x8049 tests

* test(harness): deslop x8044 tests

* test(codex): deslop x8050 tests

* test(codex): deslop x8050 tests

* test(codex): deslop x8050 tests

* test: preserve reviewed coverage and repair CI fixtures

* test: drop uncertain chat fixture cleanup and prune stale baselines
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 19, 2026
…6562)

## What Problem This Solves

Fixes: Knip `deadcode:exports` on main reports four exports that recent refactors left without a consumer. openclaw#176447 does not cover them.

## User Impact

No user-visible change.

## Why This Change Was Made

- `src/cron/service.test-harness.ts: createCronServiceStateWithJobs`: openclaw#175975 removed its last callers, so it is deleted.
- `extensions/copilot/src/attempt.test-support.ts: createStubToolBridge`: openclaw#176003 added an exported copy that nothing imports, so it is deleted. The file is back to its state before openclaw#176003.
- `src/daemon/inspect-markers.ts: classifyGatewayCommand`: openclaw#176469 removed the only outside import, so it is now module-private.
- `src/gateway/server-cron.events.test-support.ts: CRON_WAIT_TIMEOUT_MS`: openclaw#176399 removed the last outside caller, so it is now module-private.

No ignores were added.

## Evidence

- `pnpm run deadcode:exports` on this branch, diffed against main `7451c5780e5`: only these four entries disappear.
- `extensions/copilot/src/attempt.test.ts` and `src/daemon/inspect.test.ts` pass in full. `oxfmt` and `oxlint` are clean.

Co-authored-by: Ayaan Zaidi <[email protected]>
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 cli CLI command changes extensions: codex gateway Gateway runtime size: XL

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant