Repository navigation
test(core): remove low-value tests (batch d203) - #175132
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review blockedAutomated 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. |
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. |
* 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
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:
9ab39a787c8f2a88e10dcd92cd10551fb1910ef6: kept the currentauth-v2.test.tsfile 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.1d956dd13a4392097729154cdca8d1f6854ed378,700d1348d435765fb201e59583240e500a2acc8b,501a76d8f900785494d6db41b7ff5b68456c9bf3: dropped changes toui-tsx-discovery.test.tsthroughout. Main covers ordinary and linked sparse checkouts; the campaign parent only covered the linked case. Kept main's file and both cases intact.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; testspawnSync.errorseparately 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.tsextensions/matrix/src/matrix/thread-bindings.test.tssrc/commands/audit.test.tssrc/commands/auth-choice.apply.api-providers.test.tssrc/commands/auth-choice.apply.plugin-provider.test.tssrc/commands/auth-choice.test.tssrc/gateway/mcp-app-extension-runtime.test.tssrc/gateway/mcp-app-form-resources.test.tssrc/gateway/mcp-app-reconstruction.test.tssrc/secrets/configure.test.tssrc/agents/openclaw-tools.media-factory-plan.test.tssrc/agents/openclaw-tools.registration.test.tssrc/config/sessions/session-accessor.transcript-identity.test.tsextensions/matrix/src/matrix/send.test.tsextensions/matrix/src/matrix/read-policy.test.tssrc/gateway/mcp-app-standalone-cancellation.test.tssrc/plugin-sdk/acp-runtime.test.tssrc/process/exec-input-admission.test.tstest/scripts/tsdown-runtime-config.test.tsextensions/browser/src/browser/extension-relay/relay-coexistence.integration.test.tsEvidence
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.openclaw/ci-gateis the execution gate.Net test/support LOC: −5,123 (+9,830 / −14,953), across 59 files. Production LOC: +0 / −0. Static
it/testdeclaration count: 590 → 559; declarations are not expanded runtime case counts.The source reports under
results/xNNNN.mdexplicitly 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.x7481: 7 changed files
src/plugin-sdk/agent-harness-completion.test.tssrc/plugin-sdk/allowlist-config-edit.test.tssrc/plugin-sdk/api-baseline.test.tssrc/plugin-sdk/approval-delivery-helpers.test.tssrc/plugin-sdk/approval-native-helpers.test.tssrc/plugin-sdk/approval-reaction-runtime.test.tssrc/plugin-sdk/approval-renderers.test.tsx7482: 7 changed files
extensions/browser/src/browser/extension-relay/auth-v2.test.tsextensions/browser/src/browser/extension-relay/gateway-relay-route.integration.test.tsextensions/browser/src/browser/extension-relay/gateway-relay-route.test.tsextensions/browser/src/browser/extension-relay/relay-bridge.test.tsextensions/browser/src/browser/extension-relay/relay-coexistence.test-support.tsextensions/browser/src/browser/extension-relay/relay-bootstrap.integration.test.tsextensions/browser/src/browser/extension-relay/relay-bridge.fetch.test.tsx7485: 6 changed files
src/secrets/apply.test.tssrc/secrets/audit.test.tssrc/secrets/channel-contract-api.external.test.tssrc/secrets/job-egress.test.tssrc/secrets/provider-env-vars.dynamic.test.tssrc/secrets/model-egress.test.tsx7484: 4 changed files
src/commands/auth-choice-options.test.tssrc/commands/auth-choice-prompt.test.tssrc/commands/auth-choice.model-check.test.tssrc/commands/backup.test.tsx7483: 3 changed files
extensions/matrix/src/matrix/draft-stream.test.tsextensions/matrix/src/matrix/format.test.tsextensions/matrix/src/matrix/poll-types.test.tsx7490: 4 changed files
src/gateway/server.mcp-auth-login.test.tssrc/gateway/server.sessions.reset-cleanup.test.tssrc/gateway/server.sessions.reset-hooks.test.tssrc/gateway/server.talk-consult-history.test.tsx7489: 5 changed files
test/scripts/tsdown-declaration-resolution.test.tstest/scripts/ui.test.tstest/scripts/update-clawtributors.test.tstest/scripts/update-config-runtime-compat.test.tstest/scripts/tsgo-performance.test.tsx7486: 6 changed files
src/agents/openclaw-tools.camera.test.tssrc/agents/openclaw-tools.decision.test.tssrc/agents/openclaw-tools.session-context.test.tssrc/agents/openclaw-tools.session-status.gateway-model.test.tssrc/agents/openclaw-tools.sessions-timeout.test-support.tssrc/agents/openclaw-tools.browser-plugin.integration.test.tsx7487: 6 changed files
src/gateway/mcp-app-host-files.test.tssrc/gateway/mcp-app-standalone.test.tssrc/gateway/mcp-grant-store.test.tssrc/gateway/mcp-app-sandbox-http.test.tssrc/gateway/mcp-app-standalone.browser.test-support.tssrc/gateway/mcp-app-standalone.http.test-support.tsx7491: 7 changed files
src/config/sessions/session-accessor.compaction-boundary.test.tssrc/config/sessions/session-accessor.sqlite-data-version.test.tssrc/config/sessions/session-accessor.sqlite-entry-writes.test.tssrc/config/sessions/session-accessor.sqlite-message-cut.test.tssrc/config/sessions/session-accessor.sqlite-replacement-publication.test.tssrc/config/sessions/session-accessor.sqlite-transcript-watermark.test.tssrc/config/sessions/session-accessor.sqlite-lifecycle-publication.test.tsx7492: 4 changed files
src/process/exec-scope-settlement.test.tssrc/process/exec-termination.test.tssrc/process/kill-tree.test.tssrc/process/linux-oom-score.test.ts