Repository navigation
test(gateway,agents,ui): remove low-value tests (batch d224) - #175648
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
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. |
445d9c6 to
eefd024
Compare
|
Codex review: stale review; fresh review needed. Summary Next step Review history (1 earlier review cycle)
|
fda12dd to
f1ef970
Compare
f1ef970 to
51cee51
Compare
|
Settlement evidence for exact head Fresh PR CI 39061642481 finished. Its only failures are the following proven-main failures plus the aggregate
Exact PostgreSQL infra failures (all paths under
Prior head Plain changed-file oxlint, oxfmt, and whitespace checks pass. No local tests/typechecks, Testbox/AWS leases, timeout increases, skips, assertion weakening, or production changes. The exact-head administrative squash exception is authorized by the campaign's pre-existing-failure rule; these red checks remain recorded as failures, not relabeled green. |
51cee51 to
974f264
Compare
…w#175648) * test(gateway): deslop x7718 tests * test(gateway): further deslop x7718 tests * test(gateway): consolidate x7718 test fixtures * test(gateway): deslop x7716 tests * test(gateway): deslop x7716 tests * test(gateway): deslop x7716 tests * test(gateway): deslop x7712 tests * test(gateway): deslop x7712 tests * test(gateway): deslop x7712 tests * test(outbound): deslop x7719 tests * test(outbound): deslop x7719 tests * test(ui): deslop x7720 tests * test(ui): deslop x7720 tests * test(ui): deslop x7720 tests * test(sessions): deslop x7725 tests * test(sessions): deslop x7725 tests * test(infra): deslop x7721 tests * test(infra): deslop x7721 tests * test(infra): deslop x7721 tests * test(agents): deslop x7724 tests * test(agents): deslop x7724 tests * test(agents): deslop x7724 tests * test(agents): deslop x7722 tests * test(agents): deslop x7722 tests * test(agents): deslop x7722 tests * test(qa-lab): deslop x7728 tests * test(qa-lab): deslop x7728 tests * test(qa-lab): deslop x7728 tests * test: repair d224 fixture contracts exposed by CI * test: preserve reviewed coverage and finish d224 ratchets
What Problem This Solves
Repeated fixtures and assertion scaffolding make these test suites harder to maintain. This batch consolidates test setup without an intended product behavior change.
User Impact
No production behavior, public API, dependency, configuration, or visual changes. Distinct authority, lifecycle, cancellation, cleanup, and security cases are retained.
Evidence
Replayed onto pinned main f20ce15. Per operator CI-only instruction: frozen-lockfile install, changed-file oxfmt, plain oxlint, and git diff --check only; no local Vitest, typecheck, check-changed, or Testbox. Hosted openclaw/ci-gate is the behavioral proof and merge gate. Local runtime wall time and coverage deltas are not measured. Independent review runs during CI.
Diff LOC (additions/deletions): production +0/-0, tests +9252/-15008, test support +322/-158. No changed paths match CODEOWNERS.
Replay Decisions
Shard Evidence
Counts below are the actual replay versus pinned main. Declaration counts are textual it/test call sites, not expanded runtime case counts. Source reports explicitly say coverage was not run under CI-only mode; there is no coverage totals line to claim.
x7714: 0 files; test/support LOC 0 → 0; textual declarations 0 → 0
No files retained; both commits skipped.
Source report coverage statement: Oxlint exited 0; formatting and
git diff --checkpassed. Tests, coverage, and typechecks were not run under CI-only mode. No production or support files changed; no bug/flake fixes.x7718: 8 files; test/support LOC 3442 → 2772; textual declarations 38 → 38
src/gateway/link-understanding.product.test.tssrc/gateway/live-tool-probe-utils.test.tssrc/gateway/local-http-probe.test.tssrc/gateway/local-request-context.session-archive.test.tssrc/gateway/local-request-context.session-rename.test.tssrc/gateway/local-request-context.session-tools.test-support.tssrc/gateway/local-request-context.session-tools.test.tssrc/gateway/local-request-context.test.tsSource report coverage statement: Plain oxlint exited 0; formatting and
git diff --checkpassed. Tests, coverage, and check-changed were not run, per CI-only instructions.x7716: 6 files; test/support LOC 2718 → 2071; textual declarations 39 → 35
src/gateway/server-maintenance.chat-state.test.tssrc/gateway/server-maintenance.dedupe.test.tssrc/gateway/server-methods.profile-authorization.test.tssrc/gateway/server-methods.request-gate.test-support.tssrc/gateway/server-methods.suspension-admission.test.tssrc/gateway/server-methods.suspension-continuations.test.tsSource report coverage statement: Formatting, plain oxlint, and
git diff --checkpassed. Tests, coverage, and typechecks were not run, per CI-only instructions. No production or external test-support files changed; no bug fixes.x7712: 6 files; test/support LOC 2028 → 1671; textual declarations 33 → 32
src/gateway/worker-environments/placement-session-tool-operations.worker.test.tssrc/gateway/worker-environments/placement-store-fixture.test-support.tssrc/gateway/worker-environments/placement-store-terminal.test.tssrc/gateway/worker-environments/placement-store.activation.test.tssrc/gateway/worker-environments/placement-store.test.tssrc/gateway/worker-environments/placement-targeted-recovery.test.tsSource report coverage statement: Oxlint exited 0; formatting and diff checks passed. No production or support files changed. No bugs/flakes fixed. Tests, coverage, and check-changed were not run, per CI-only mode; hosted CI remains pending.
x7719: 5 files; test/support LOC 2865 → 2218; textual declarations 48 → 41
src/infra/outbound/message-action-execution.accepted-results.test.tssrc/infra/outbound/message-action-execution.source-reply.test.tssrc/infra/outbound/message-action-execution.test.tssrc/infra/outbound/message-action-gateway.test.tssrc/infra/outbound/message.channels.test.tsSource report coverage statement: Oxlint exited 0; formatting and
git diff --checkpassed. Tests, coverage, and typechecks were not run under CI-only instructions. Coordinator decision: four files remain below the 25% target. I preserved their distinct behavior coverage; hosted CI validation remains pending.x7720: 8 files; test/support LOC 2597 → 2232; textual declarations 17 → 16
ui/src/e2e/provider-browser-login.real-gateway.e2e.test.tsui/src/e2e/provider-browser-login.test-support.tsui/src/e2e/question-flow.e2e.test.tsui/src/e2e/question-footer.test-support.tsui/src/e2e/question-guest.e2e.test.tsui/src/e2e/question-guest.test-support.tsui/src/e2e/resize-handles.e2e.test.tsui/src/e2e/route-css.e2e.test.tsSource report coverage statement: Plain oxlint, formatting, and diff-check passed. Tests, coverage, and typechecks were not run, per CI-only instructions. Coordinator review and hosted CI remain pending.
x7725: 2 files; test/support LOC 3429 → 2438; textual declarations 39 → 38
src/config/sessions/session-accessor.conformance.test.tssrc/config/sessions/session-accessor.sqlite-active-events.test.tsSource report coverage statement: Plain oxlint exited 0; formatting and
git diff --checkpassed. No production or support files changed. Tests and coverage were not run under CI-only mode.x7721: 9 files; test/support LOC 3377 → 2944; textual declarations 57 → 56
src/infra/sqlite-readonly-location.cancellation.test.tssrc/infra/sqlite-readonly-location.cleanup.test.tssrc/infra/sqlite-readonly-location.owned-native.test.tssrc/infra/sqlite-readonly-location.worker.test.tssrc/infra/sqlite-readonly-native-resource.test.tssrc/infra/sqlite-readonly-worker.model-auth.test.tssrc/infra/sqlite-readonly-worker.operations.test.tssrc/infra/sqlite-readonly-worker.test.tssrc/infra/sqlite-readonly.test-support.tsSource report coverage statement: Formatting, plain oxlint, and diff checks passed. Tests, coverage, and check-changed were not run under CI-only mode. No production/support files changed or bugs/flakes fixed. Coordinator handoff: under-target reduction; hosted CI proof remains pending.
x7724: 6 files; test/support LOC 2262 → 1870; textual declarations 36 → 33
src/agents/embedded-agent-subscribe.lifecycle-billing-error.test.tssrc/agents/embedded-agent-subscribe.subscribe-embedded-agent-session.subscribeembeddedagentsession.deferred-progress.test.tssrc/agents/exec-auto-review.stress.test.tssrc/agents/exec-auto-review.test-support.tssrc/agents/exec-auto-reviewer.resources.test.tssrc/agents/exec-auto-reviewer.test.tsSource report coverage statement: Formatting,
git diff --check, and plain oxlint passed. Tests, coverage, and check-changed were not run, per CI-only mode.x7722: 5 files; test/support LOC 2639 → 2074; textual declarations 68 → 61
src/agents/auth-profiles.markauthprofilefailure.test.tssrc/agents/auth-profiles.sqlite-read-pool.test.tssrc/agents/auth-profiles.sqlite-store.test.tssrc/agents/bash-process-registry.test.tssrc/agents/bash-tools.exec.approval-id.test.tsSource report coverage statement: Formatting, plain oxlint, and diff-check passed. Tests, coverage, and check-changed were not run, per CI-only instructions.
x7728: 7 files; test/support LOC 2511 → 1986; textual declarations 47 → 44
extensions/qa-lab/src/lab-server-ui.test.tsextensions/qa-lab/src/manual-lane.runtime.test.tsextensions/qa-lab/src/model-catalog.runtime.test.tsextensions/qa-lab/src/multipass.runtime.test.tsextensions/qa-lab/src/plugin-subagent-self-yield-followup.e2e.test.tsextensions/qa-lab/src/profile-evidence-plan.test.tsextensions/qa-lab/src/profile-evidence-sharding.test.tsSource report coverage statement: Formatting, plain oxlint, and
git diff --checkpassed. No tests, coverage, builds, or check-changed ran, per CI-only instructions. No production/shared-support changes or bug fixes.Additional conflict resolutions: the x7722 read-pool mock retains main’s withPreparedExternalAuthProfiles callback; x7728 live-scenario-timeouts.test.ts is retained unchanged across all three commits to preserve expanded completion/provenance cases.
First CI Pass and Repairs
Run https://github.com/openclaw/openclaw/actions/runs/39044837112 found fixture regressions and type-aware checks missed by plain lint. Restored the placement helper's identity/execution-mode parameters and the direct poll adapter's sendText capability. Corrected async HTTP callback handling, callback signatures, request-scope narrowing, constructor-option typing, and method binding. Restored six justified mock-isolation comments. Dropped all cleanup in message-action-gateway-reconciliation.test.ts rather than introduce generic request-mock casts. No assertions were weakened and no tests were run locally. A new head receives fresh hosted CI.
Rebased again after GitHub reported a merge conflict. Preserved current-main transcript upgrade-row setup and assertions in session-accessor.sqlite-active-events.test.ts; only two session commits required resolution, with the other 27 patches unchanged (range-diff verified). Review preparation was interrupted when CI repairs and then the main conflict changed the target; no clean verdict is claimed for either interrupted attempt. The corrected committed diff is reviewed independently during CI.
Independent Review and Final Corrections
The three-pass review found two actionable coverage losses: chat.metadata privacy revalidation and profile co-author consent defaults/merged identities. Both findings were accepted. All cleanup in server-methods.session-scoped-reads.test.ts and ui/src/e2e/profile-page.e2e.test.ts was dropped; both files exactly match the pinned main base. No findings were rejected.
Run https://github.com/openclaw/openclaw/actions/runs/39046076573 then identified a conflict-resolution call still using the pre-alias name; it now calls the existing everyUserInput import. The mock ratchet's eight exact obsolete entries were removed from config/test-mock-exports-baseline.txt: six annotated isolated mocks and two removed mocks. This is shrink-only metadata (0 additions/8 deletions), with no new exemption. Local formatting/plain lint/diff checks remain the only local gates. Final behavioral and type proof is fresh-head PR CI.
Settlement and Conflict Resolution
The original Discord TS2883 declaration failure was stale-base. Main fixed it in 84da50d; the boundary job then passed on prior PR head 51cee51d8ecddf77a4116e666c78c10bb62a386f in https://github.com/openclaw/openclaw/actions/runs/39057267511/job/117468040667.
That run initially failed seven unrelated PostgreSQL infra cases. The one authorized failed-job rerun cleared six; only the 60000ms timeout in
port-command.postgres.test.tsremained. All seven exact original signatures also occur in scheduled main run https://github.com/openclaw/openclaw/actions/runs/39058564617/job/117471751210. This is matching-failure evidence, not green proof for this PR. The evidence comment records the exact surviving test. A pinned admin merge was attempted under the operator's pre-existing-failure rule, but GitHub refused because main had advanced into a merge conflict; no merge occurred.Rebased again onto pinned main 4d9a547. Dropped all cleanup in
local-request-context.session-archive.test.tsandlocal-request-context.session-rename.test.ts; both exactly match this main base, preserving its stable-schema and runtime-refusal contracts. The other 26 commits are patch-identical; four commits differ only by these dropped path changes. Existing independent review and its two accepted coverage repairs remain applicable; no new production code or assertion weakening was introduced.Final head 974f264 requires fresh exact-head PR CI. Plain oxlint, oxfmt --check (60 files), and git diff --check pass. No local tests/typechecks or remote leases. Current LOC supersedes the initial replay counts above: tests +8700/-14259, support +322/-158, production +0/-0, baseline +0/-8; net test/support reduction 5395 lines. x7718 now retains six files, with archive and rename cleanup omitted. Auto-merge is re-armed pinned to this new head.