Skip to content

test(core): remove low-value tests (batch d203) - #175132

Merged
steipete merged 31 commits into
mainfrom
tcr/land-d203-1792212872
Oct 17, 2026
Merged

steipete merged 31 commits into
mainfrom
tcr/land-d203-1792212872

Conversation

@steipete

@steipete steipete commented Oct 17, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Reduces repetitive fixtures and assertion scaffolding across the campaign's test suites without changing production code.

User Impact

No intended user-visible behavior change, API change, or migration. This is test-only consolidation; hosted CI is the execution proof.

Why This Change Was Made

Replays batch d203 onto pinned main 66ffabc522acce880e6fc28f18964608049593f1. Retains distinct security, lifecycle, rollback, and compatibility scenarios while sharing repeated setup and consolidating compatible cases into tables.

Applied 29 of 30 supplied commits in order. Skipped eba93b529d3cb11a9af8014e7dc46ba9cb7b6d4e (x7475): all three release test files conflict extensively because the source parent already has restructuring absent from current main. Kept current main's release tests unchanged.

Conflict resolutions:

  • x7482 / 9ab39a787c8f2a88e10dcd92cd10551fb1910ef6: kept the current auth-v2.test.ts file at that replay point. Its earlier batch cleanup remains; later conflicting cleanup is dropped, preserving main's added field-binding and duplicate-JSON security cases. Other files replayed.
  • x7489 / 1d956dd13a4392097729154cdca8d1f6854ed378, 700d1348d435765fb201e59583240e500a2acc8b, 501a76d8f900785494d6db41b7ff5b68456c9bf3: dropped changes to ui-tsx-discovery.test.ts throughout. Main covers ordinary and linked sparse checkouts; the campaign parent only covered the linked case. Kept main's file and both cases intact.
  • No production seams, baseline files, or CODEOWNERS-owned paths changed.

CI repair and dropped changes

The first CI run (39005216860) reported runtime, type, lint, and ratchet failures. Auto-merge was disabled while repairing them; no failed job was rerun unchanged and no inherited-failure bypass is claimed.

The second CI run (39006045520) exposed one dependent-helper regression after restoring the cancellation tests: the shared HTTP helper no longer exported handleMcpAppStandaloneHttpRequest. Restored that existing export for its retained caller; no production changes.

Retained mechanical repairs: keep asymmetric matchers bound to expect; test spawnSync.error separately instead of requiring an absent property; remove a non-Promise await and obsolete max-lines directive; explicitly type the browser upgrade Buffer parameter; use the supported null encoding for binary reads; retain tuple positions in the speech assertion table; assert the required sandbox fixture URL is defined.

Dropped all batch edits in the following 20 files, restoring the pinned main versions. This avoids changing distinct scenarios, invalid fixture references, mock-factory identities, and nontrivial type contracts; it also preserves the original cancellation timeout-race baseline. This supersedes the earlier shard report's final-file scope.

Files excluded after CI feedback
  • extensions/matrix/src/matrix/subagent-hooks.test.ts
  • extensions/matrix/src/matrix/thread-bindings.test.ts
  • src/commands/audit.test.ts
  • src/commands/auth-choice.apply.api-providers.test.ts
  • src/commands/auth-choice.apply.plugin-provider.test.ts
  • src/commands/auth-choice.test.ts
  • src/gateway/mcp-app-extension-runtime.test.ts
  • src/gateway/mcp-app-form-resources.test.ts
  • src/gateway/mcp-app-reconstruction.test.ts
  • src/secrets/configure.test.ts
  • src/agents/openclaw-tools.media-factory-plan.test.ts
  • src/agents/openclaw-tools.registration.test.ts
  • src/config/sessions/session-accessor.transcript-identity.test.ts
  • extensions/matrix/src/matrix/send.test.ts
  • extensions/matrix/src/matrix/read-policy.test.ts
  • src/gateway/mcp-app-standalone-cancellation.test.ts
  • src/plugin-sdk/acp-runtime.test.ts
  • src/process/exec-input-admission.test.ts
  • test/scripts/tsdown-runtime-config.test.ts
  • extensions/browser/src/browser/extension-relay/relay-coexistence.integration.test.ts

Evidence

  • pnpm install --frozen-lockfile --prefer-offline: passed.
  • node_modules/.bin/oxfmt --write <59 changed files>: exit 0.
  • node_modules/.bin/oxlint -c .oxlintrc.json <59 changed files>: exit 0.
  • git diff --check 66ffabc522acce880e6fc28f18964608049593f1: passed.
  • Per operator CI-only instruction, no Vitest, check-changed, tsgo, coverage, or Testbox/Crabbox was run locally. Required openclaw/ci-gate is the execution gate.
  • The first independent review was stopped during source preparation because CI required a repaired head; it produced no verdict. The next review attempt failed before inference because the system Python was too old for the configured provider route; it produced no verdict. The final review uses the installed Python 3.14 interpreter and runs alongside CI.

Net test/support LOC: −5,123 (+9,830 / −14,953), across 59 files. Production LOC: +0 / −0. Static it/test declaration count: 590 → 559; declarations are not expanded runtime case counts.

The source reports under results/xNNNN.md explicitly say coverage was not run under CI-only mode; no numeric coverage totals exist to quote. They report preserving expanded cases for their recorded first-pass heads. Later supplied commits make additional consolidations, so those earlier report counts are not presented as measured proof of this final head.

Shard Changed files Test/support LOC before → after Diff LOC Static declarations Reported coverage totals
x7475 0 0 → 0 +0/−0 0 → 0 Not measured (CI-only)
x7481 7 3370 → 2603 +1538/−2305 85 → 82 Not measured (CI-only)
x7482 7 3133 → 2530 +1317/−1920 69 → 66 Not measured (CI-only)
x7485 6 3377 → 2586 +809/−1600 74 → 72 Not measured (CI-only)
x7484 4 1537 → 1132 +373/−778 31 → 30 Not measured (CI-only)
x7483 3 821 → 601 +279/−499 38 → 33 Not measured (CI-only)
x7490 4 3602 → 3056 +938/−1484 54 → 52 Not measured (CI-only)
x7489 5 2887 → 2417 +1366/−1836 36 → 33 Not measured (CI-only)
x7486 6 2463 → 2129 +752/−1086 44 → 35 Not measured (CI-only)
x7487 6 2422 → 2024 +561/−959 57 → 54 Not measured (CI-only)
x7491 7 3264 → 2825 +1661/−2100 43 → 43 Not measured (CI-only)
x7492 4 2053 → 1903 +236/−386 59 → 59 Not measured (CI-only)
x7481: 7 changed files
  • src/plugin-sdk/agent-harness-completion.test.ts
  • src/plugin-sdk/allowlist-config-edit.test.ts
  • src/plugin-sdk/api-baseline.test.ts
  • src/plugin-sdk/approval-delivery-helpers.test.ts
  • src/plugin-sdk/approval-native-helpers.test.ts
  • src/plugin-sdk/approval-reaction-runtime.test.ts
  • src/plugin-sdk/approval-renderers.test.ts
x7482: 7 changed files
  • extensions/browser/src/browser/extension-relay/auth-v2.test.ts
  • extensions/browser/src/browser/extension-relay/gateway-relay-route.integration.test.ts
  • extensions/browser/src/browser/extension-relay/gateway-relay-route.test.ts
  • extensions/browser/src/browser/extension-relay/relay-bridge.test.ts
  • extensions/browser/src/browser/extension-relay/relay-coexistence.test-support.ts
  • extensions/browser/src/browser/extension-relay/relay-bootstrap.integration.test.ts
  • extensions/browser/src/browser/extension-relay/relay-bridge.fetch.test.ts
x7485: 6 changed files
  • src/secrets/apply.test.ts
  • src/secrets/audit.test.ts
  • src/secrets/channel-contract-api.external.test.ts
  • src/secrets/job-egress.test.ts
  • src/secrets/provider-env-vars.dynamic.test.ts
  • src/secrets/model-egress.test.ts
x7484: 4 changed files
  • src/commands/auth-choice-options.test.ts
  • src/commands/auth-choice-prompt.test.ts
  • src/commands/auth-choice.model-check.test.ts
  • src/commands/backup.test.ts
x7483: 3 changed files
  • extensions/matrix/src/matrix/draft-stream.test.ts
  • extensions/matrix/src/matrix/format.test.ts
  • extensions/matrix/src/matrix/poll-types.test.ts
x7490: 4 changed files
  • src/gateway/server.mcp-auth-login.test.ts
  • src/gateway/server.sessions.reset-cleanup.test.ts
  • src/gateway/server.sessions.reset-hooks.test.ts
  • src/gateway/server.talk-consult-history.test.ts
x7489: 5 changed files
  • test/scripts/tsdown-declaration-resolution.test.ts
  • test/scripts/ui.test.ts
  • test/scripts/update-clawtributors.test.ts
  • test/scripts/update-config-runtime-compat.test.ts
  • test/scripts/tsgo-performance.test.ts
x7486: 6 changed files
  • src/agents/openclaw-tools.camera.test.ts
  • src/agents/openclaw-tools.decision.test.ts
  • src/agents/openclaw-tools.session-context.test.ts
  • src/agents/openclaw-tools.session-status.gateway-model.test.ts
  • src/agents/openclaw-tools.sessions-timeout.test-support.ts
  • src/agents/openclaw-tools.browser-plugin.integration.test.ts
x7487: 6 changed files
  • src/gateway/mcp-app-host-files.test.ts
  • src/gateway/mcp-app-standalone.test.ts
  • src/gateway/mcp-grant-store.test.ts
  • src/gateway/mcp-app-sandbox-http.test.ts
  • src/gateway/mcp-app-standalone.browser.test-support.ts
  • src/gateway/mcp-app-standalone.http.test-support.ts
x7491: 7 changed files
  • src/config/sessions/session-accessor.compaction-boundary.test.ts
  • src/config/sessions/session-accessor.sqlite-data-version.test.ts
  • src/config/sessions/session-accessor.sqlite-entry-writes.test.ts
  • src/config/sessions/session-accessor.sqlite-message-cut.test.ts
  • src/config/sessions/session-accessor.sqlite-replacement-publication.test.ts
  • src/config/sessions/session-accessor.sqlite-transcript-watermark.test.ts
  • src/config/sessions/session-accessor.sqlite-lifecycle-publication.test.ts
x7492: 4 changed files
  • src/process/exec-scope-settlement.test.ts
  • src/process/exec-termination.test.ts
  • src/process/kill-tree.test.ts
  • src/process/linux-oom-score.test.ts

@clawsweeper

clawsweeper Bot commented Oct 17, 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 17, 2026 05:09
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 17, 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-17T05:26:56.980358Z 1e711b8 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 channel: matrix Channel integration: matrix gateway Gateway runtime commands Command implementations agents Agent runtime and tooling extensions: browser size: XL labels Oct 17, 2026
@steipete
steipete disabled auto-merge October 17, 2026 05:16
@steipete
steipete enabled auto-merge (squash) October 17, 2026 05:23
@steipete
steipete disabled auto-merge October 17, 2026 05:30
@steipete
steipete enabled auto-merge (squash) October 17, 2026 05:31
@steipete
steipete merged commit 6485b19 into main Oct 17, 2026
130 of 132 checks passed
@steipete
steipete deleted the tcr/land-d203-1792212872 branch October 17, 2026 06:00
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 18, 2026
* test(plugin-sdk): deslop x7481 tests

* test(plugin-sdk): deslop x7481 tests

* test(plugin-sdk): deslop x7481 tests

* test(browser): deslop x7482 tests

* test(browser): deslop x7482 tests

* test(browser): deslop x7482 tests

* test(secrets): deslop x7485 tests

* test(secrets): deslop x7485 tests

* test(commands): deslop x7484 tests

* test(commands): deslop x7484 tests

* test(matrix): deslop x7483 tests

* test(matrix): deslop x7483 tests

* test(matrix): deslop x7483 tests

* test(gateway): deslop x7490 tests

* test(gateway): deslop x7490 tests

* test(gateway): deslop x7490 tests

* test(scripts): deslop x7489 tests

* test(scripts): deslop x7489 tests

* test(scripts): deslop x7489 tests

* test(agents): deslop x7486 tests

* test(agents): deslop x7486 tests

* test(agents): deslop x7486 tests

* test(gateway): deslop x7487 tests

* test(gateway): deslop x7487 tests

* test(gateway): deslop x7487 tests

* test(sessions): deslop x7491 tests

* test(sessions): further deslop x7491 tests

* test(sessions): tighten x7491 fixture repetition

* test(process): deslop x7492 tests

* test: preserve fixture contracts in batch d203

* test(gateway): retain standalone request helper export
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling channel: matrix Channel integration: matrix commands Command implementations extensions: browser gateway Gateway runtime size: XL

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant