Skip to content

test(gateway,agents,ui): remove low-value tests (batch d224) - #175648

Merged
steipete merged 30 commits into
mainfrom
tcr/land-d224-1792250190
Oct 17, 2026
Merged

steipete merged 30 commits into
mainfrom
tcr/land-d224-1792250190

Conversation

@steipete

@steipete steipete commented Oct 17, 2026 •

Copy link
Copy Markdown
Contributor

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

  • Skipped both x7714 commits: their fixture ownership no longer matches current main; preserving current teardown and integration coverage takes precedence.
  • x7712: retained current placement-store.move.test.ts and placement-store.turn-claim-closure.test.ts throughout all three commits; retained placement-store.test.ts in the third commit. This preserves expanded source-identity, credential, SQL-thread, and workspace-reconciliation cases. Other clean file changes retained.
  • x7724: retained current embedded-agent-utils.test.ts and embedded-agent-subscribe.handlers.messages.replies.test.ts throughout all three commits; retained exec-auto-review-transcript.test.ts in commits two and three, and exec-auto-review.stress.test.ts in commit two. This preserves newer redaction, media trust, and command-security cases. Other clean file changes retained.
  • x7722: retained current auth-health.test.ts and auth-profile-runtime-contract.test.ts throughout the series, preserving expanded expiry/auth-alias contracts. Other clean file changes retained.
  • All other commits replayed normally.

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 --check passed. 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.ts
  • src/gateway/live-tool-probe-utils.test.ts
  • src/gateway/local-http-probe.test.ts
  • src/gateway/local-request-context.session-archive.test.ts
  • src/gateway/local-request-context.session-rename.test.ts
  • src/gateway/local-request-context.session-tools.test-support.ts
  • src/gateway/local-request-context.session-tools.test.ts
  • src/gateway/local-request-context.test.ts

Source report coverage statement: Plain oxlint exited 0; formatting and git diff --check passed. 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.ts
  • src/gateway/server-maintenance.dedupe.test.ts
  • src/gateway/server-methods.profile-authorization.test.ts
  • src/gateway/server-methods.request-gate.test-support.ts
  • src/gateway/server-methods.suspension-admission.test.ts
  • src/gateway/server-methods.suspension-continuations.test.ts

Source report coverage statement: Formatting, plain oxlint, and git diff --check passed. 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.ts
  • src/gateway/worker-environments/placement-store-fixture.test-support.ts
  • src/gateway/worker-environments/placement-store-terminal.test.ts
  • src/gateway/worker-environments/placement-store.activation.test.ts
  • src/gateway/worker-environments/placement-store.test.ts
  • src/gateway/worker-environments/placement-targeted-recovery.test.ts

Source 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.ts
  • src/infra/outbound/message-action-execution.source-reply.test.ts
  • src/infra/outbound/message-action-execution.test.ts
  • src/infra/outbound/message-action-gateway.test.ts
  • src/infra/outbound/message.channels.test.ts

Source report coverage statement: Oxlint exited 0; formatting and git diff --check passed. 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.ts
  • ui/src/e2e/provider-browser-login.test-support.ts
  • ui/src/e2e/question-flow.e2e.test.ts
  • ui/src/e2e/question-footer.test-support.ts
  • ui/src/e2e/question-guest.e2e.test.ts
  • ui/src/e2e/question-guest.test-support.ts
  • ui/src/e2e/resize-handles.e2e.test.ts
  • ui/src/e2e/route-css.e2e.test.ts

Source 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.ts
  • src/config/sessions/session-accessor.sqlite-active-events.test.ts

Source report coverage statement: Plain oxlint exited 0; formatting and git diff --check passed. 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.ts
  • src/infra/sqlite-readonly-location.cleanup.test.ts
  • src/infra/sqlite-readonly-location.owned-native.test.ts
  • src/infra/sqlite-readonly-location.worker.test.ts
  • src/infra/sqlite-readonly-native-resource.test.ts
  • src/infra/sqlite-readonly-worker.model-auth.test.ts
  • src/infra/sqlite-readonly-worker.operations.test.ts
  • src/infra/sqlite-readonly-worker.test.ts
  • src/infra/sqlite-readonly.test-support.ts

Source 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.ts
  • src/agents/embedded-agent-subscribe.subscribe-embedded-agent-session.subscribeembeddedagentsession.deferred-progress.test.ts
  • src/agents/exec-auto-review.stress.test.ts
  • src/agents/exec-auto-review.test-support.ts
  • src/agents/exec-auto-reviewer.resources.test.ts
  • src/agents/exec-auto-reviewer.test.ts

Source 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.ts
  • src/agents/auth-profiles.sqlite-read-pool.test.ts
  • src/agents/auth-profiles.sqlite-store.test.ts
  • src/agents/bash-process-registry.test.ts
  • src/agents/bash-tools.exec.approval-id.test.ts

Source 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.ts
  • extensions/qa-lab/src/manual-lane.runtime.test.ts
  • extensions/qa-lab/src/model-catalog.runtime.test.ts
  • extensions/qa-lab/src/multipass.runtime.test.ts
  • extensions/qa-lab/src/plugin-subagent-self-yield-followup.e2e.test.ts
  • extensions/qa-lab/src/profile-evidence-plan.test.ts
  • extensions/qa-lab/src/profile-evidence-sharding.test.ts

Source report coverage statement: Formatting, plain oxlint, and git diff --check passed. 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.ts remained. 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.ts and local-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.

@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 complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@steipete
steipete enabled auto-merge (squash) October 17, 2026 15:23
@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-17T19:18:32.288871Z 974f264 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 agents Agent runtime and tooling extensions: qa-lab size: XL labels Oct 17, 2026
@steipete
steipete disabled auto-merge October 17, 2026 15:30
@steipete
steipete enabled auto-merge (squash) October 17, 2026 15:34
@steipete
steipete force-pushed the tcr/land-d224-1792250190 branch from 445d9c6 to eefd024 Compare October 17, 2026 15:40
@steipete
steipete disabled auto-merge October 17, 2026 15:49
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. 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 17, 2026
@clawsweeper

clawsweeper Bot commented Oct 17, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: stale review; fresh review needed.

Summary
The latest durable ClawSweeper review was for head eefd024568b74bc7738a385945208c7ee6e035d0, but the PR head is now f1ef970fe1b0636668c4b2030b3bec13fb1ffeae. Its old verdict and PR readiness labels are no longer current.

Next step
Run or wait for a fresh ClawSweeper review on the current PR head.

Review history (1 earlier review cycle)
  • reviewed 2026-10-17T15:56:39.698Z sha eefd024 :: needs changes before merge. :: [P2] Complete the user-input helper rename | [P2] Prune baseline entries for retired mock factories

@steipete
steipete enabled auto-merge (squash) October 17, 2026 16:04
@steipete
steipete force-pushed the tcr/land-d224-1792250190 branch from fda12dd to f1ef970 Compare October 17, 2026 16:15
@steipete
steipete disabled auto-merge October 17, 2026 16:24
@clawsweeper clawsweeper Bot removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Oct 17, 2026
@steipete
steipete force-pushed the tcr/land-d224-1792250190 branch from f1ef970 to 51cee51 Compare October 17, 2026 18:15
@steipete
steipete enabled auto-merge (squash) October 17, 2026 18:15
@steipete

steipete commented Oct 17, 2026 •

Copy link
Copy Markdown
Contributor Author

Settlement evidence for exact head 974f264297a76f08e45abf11c37443bdeaaf3cce:

Fresh PR CI 39061642481 finished. Its only failures are the following proven-main failures plus the aggregate openclaw/ci-gate; no check is pending. Main CI is used solely to match failures, never as green proof for this PR.

PR check Classification and exact matching evidence
check-additional-extension-package-boundary The original Discord TS2883 was stale-base. Main fix 84da50d6716 was incorporated; the final-head boundary job passed. No Discord edits in the batch.
check-lint-core-2 PRE-EXISTING exact lint step: oxlint:core:stripe:4:src:infra, config/tsconfig/oxlint.core.json, typescript(await-thenable) at src/infra/sqlite-readonly-location.worker.ts:381. PR lint job; scheduled-main run 39062485709, lint job, main head 7d81a7d13af9df93a0f92c459fa4e2cb64801a08. Display-job packing differs: main assigns this identical stripe to check-lint-core-4, while the PR packs it under check-lint-core-2. Compared the actual failed leaf, rule, file, and line, not the matrix ordinal or a job-name-only classification. Main's online-backup change removed the async snapshot operation and left this untouched caller's await. Neither production caller nor registry is modified by the batch.
PostgreSQL conformance (infra) PRE-EXISTING: final-head PR job has the same seven test/error signatures as completed scheduled-main run 39058564617, infra job, main head ec36f9b9617a8d668a660d97e262a861453d9246. All five failing files and production owners/fixtures are untouched.
openclaw/ci-gate Aggregate only: final-head gate log fails solely on check-lint-hosted-core-shard and postgres-conformance.

Exact PostgreSQL infra failures (all paths under src/infra/database-engine/):

  • archive-restore.postgres.test.ts: rehydrates every family and retained Matrix root before Gateway startup — 240000ms timeout; publishes recovered PostgreSQL and SQLite selection from a captured config alias last — No local OpenClaw state was found to back up.
  • doctor-migration.postgres.test.ts: keeps the real agent v30→current rollback exact (foreign write: false) — 120000ms timeout.
  • matrix-roots.postgres.test.ts: ports every retained token/account root with the state family and restores fresh namespaces — 450000ms timeout; resume recovers a partially published multi-root port and blocks ordinary startup meanwhile — expected 2 published roots, received 0.
  • port-command.postgres.test.ts: probes real privileges, refuses occupied/wrong-owner/RLS sources, and resumes verified staging — 60000ms timeout.
  • update-preflight.conformance.test.ts: captures a retained PostgreSQL agent and restores local credentials after candidate failure while preserving current update history — 120000ms timeout.

Prior head 51cee51d8ec received exactly one failed-job rerun, which cleared six of these seven infra failures. Its authorized admin merge was then rejected because main had advanced into conflicts; no merge occurred. The final rebase preserves main's session-archive and session-rename tests verbatim, dropping this batch's cleanup in those two paths. The other 26 commits are patch-identical; four differ only by those omitted path changes. Prior-head CI is not claimed as final-head proof.

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.

@steipete
steipete force-pushed the tcr/land-d224-1792250190 branch from 51cee51 to 974f264 Compare October 17, 2026 19:15
@steipete
steipete merged commit a08628b into main Oct 17, 2026
140 of 146 checks passed
@steipete
steipete deleted the tcr/land-d224-1792250190 branch October 17, 2026 19:58
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 18, 2026
…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
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 extensions: qa-lab gateway Gateway runtime P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. size: XL

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant