Skip to content

test: remove low-value tests (batch d450) - #180495

Merged
steipete merged 29 commits into
mainfrom
tcr/land-d450-1792662170
Oct 22, 2026
Merged

steipete merged 29 commits into
mainfrom
tcr/land-d450-1792662170

Conversation

@steipete

@steipete steipete commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Reduces duplicated test setup and overlapping test-family scaffolding in batch d450, without changing shipped behavior.

User Impact

No production runtime code or public behavior changes. Distinct authority, cancellation, persistence, and transport checks are retained; related scenarios share fixtures and selected sibling suites are consolidated.

Why This Change Was Made

Replayed 24 of the 30 supplied commits onto pinned main df396710a661171a40d9bdff729f685d67bf4ff9. Original commit messages and relative order are preserved.

Conflict decisions:

  • e3ac6c6205d0: kept main's entire device-pair notification suite (newer failure/settlement tracking); retained command fixture consolidation in index.test.ts.
  • 3b314486eb8b: retained main's explicit browser setup, isolated localStorage, stylesheet path, HTTP error mock, and selectValue helper while adding the shared capture setup.
  • b237a83c5b8b: kept main's three redirect regression scenarios; retained the clean fixture simplifications elsewhere.
  • Skipped 107a181f9582 (browser family consolidation), 161ef2a56096, 59617e2de969, 35fea1e8a1b0 (workboard family), bc1a0b98fc85 (Beam family consolidation), and b91a35a45be2 (QA runtime family consolidation). Their old fixture/lifecycle assumptions conflicted substantially with current main; dropping them preserves current browser cleanup, redirect, lease-authority, and workboard regression coverage.

Evidence

CI-only validation as requested: changed-file oxfmt, plain oxlint (.oxlintrc.json), and git diff --check pass. No Vitest, check-changed, tsgo, coverage, or Testbox runs were performed. Hosted openclaw/ci-gate is the behavioral proof and merge gate. No Testbox leases created.

Dependency installation was attempted with pnpm install --frozen-lockfile --prefer-offline, but the preinstall version check rejected host Node 26.12.0 (current main requires 26.12.1). Existing slot-local formatter/linter binaries were used successfully; no runtime or dependency policy was bypassed.

The supplied per-shard result files explicitly say coverage was not run under CI-only instructions; they contain no covered statement/branch totals. Those reports also describe earlier/different commit snapshots, so their LOC figures are not attributed to this replay. No measured coverage-retention or speed claim is made.

Net diff: 3,709 additions / 6,088 deletions, 2,379 fewer lines across 63 files. Runtime production LOC: +0/-0. Test suites: +3,565/-6,045; test support: +144/-28; routing/baseline metadata: +0/-15. Baseline changes are shrink-only.

Per-shard replay evidence and files

Declarations below are static it/test declaration counts over the changed family files, not expanded test cases. LOC includes test support. Every shard has coverage totals unavailable (not run, CI-only).

Shard Added/deleted LOC Declarations before → after Changed files (relative to family root)
y0615 device-pair +185/-503 36 → 11 index.test.ts
y0616 agents/agent-hooks +151/-183 41 → 40 compaction-safeguard.degraded-fallback.test.ts; compaction-safeguard.test.ts; compaction-workspace-context.test.ts (deleted)
y0617 skills/workshop +332/-400 55 → 54 experience-review-scheduler.test.ts; experience-review.test.ts; library.test.ts; review-outcome.test.ts; review-undo.test.ts (deleted); tool-policy-diagnostic.test.ts; unused-archive.test.ts (deleted)
y0618 qa-lab/web/src +36/-45 17 → 17 app.browser.test-support.ts; app.browser.test.ts
y0619 gateway/health +497/-605 15 → 14 collector.channel-discovery.test.ts; collector.deadline.test.ts; collector.queue-health.test.ts (deleted); collector.session-row-projection.test.ts (deleted); collector.session-store-path.test.ts
y0620 workboard +0/-0 unchanged All three commits skipped; no workboard changes
y0621 beam/src +128/-207 39 → 38 beam.test-support.ts; beam.test.ts; mirror-retry.test.ts; mirror.test.ts; store.test.ts
y0622 test-utils +128/-318 15 → 12 main-thread-sql-spies.test-support.ts; openclaw-test-state.test.ts; session-state-cleanup.test.ts (deleted)
y0623 tlon/src/urbit +476/-770 66 → 41 auth.ssrf.test.ts; channel-ops.test.ts (deleted); channel-ops.transport.test.ts; error-body-boundary.test.ts (deleted); fetch.test.ts; send.test.ts; sse-client.connect-fail.transport.test.ts; sse-client.test.ts; story.test.ts; upload.test.ts
y0624 typesafe/src +632/-870 49 → 40 client.test.ts (deleted); decisions.test.ts; local.transport.test.ts; registration.lazy.test.ts; registration.transport.test.ts; remote.transport.test.ts; transport.test-support.ts; transport.test.ts (deleted)
y0625 qa-lab Discord +593/-876 43 → 38 adapter.runtime.test.ts (deleted); channel-e2e.test.ts; discord-flow.test-support.ts; discord-live.runtime.test.ts; discord-transcripts-authorization.runtime.test.ts (deleted); scenario-environment.test.ts (deleted); scenario-runtime.test.ts (deleted)
y0626 qa-lab shared +178/-333 50 → 44 credential-lease.runtime.test.ts; live-gateway.runtime.test.ts; live-transport-suite.runtime.test.ts
y0627 web-search +373/-963 41 → 36 runtime-autodetect-order.test.ts (deleted); runtime-execution.test.ts; runtime-snapshot.test.ts (deleted); runtime.test.ts

Metadata: config/test-mock-exports-baseline.txt; scripts/lib/ci-proof-test-inventory.mts; test/scripts/test-projects.test.ts; test/vitest/vitest.database-worker-core-paths.mjs; test/vitest/vitest.gateway-server-paths.mjs.

CODEOWNERS: none of the changed paths match the current explicit CODEOWNERS rules.

Independent source-only autoreview completed. Accepted two P2 coverage findings: restored the ingress-pressure/redaction scenario in collector.channel-discovery.test.ts and the parent-abort/provider-error no-fallback scenario in runtime.test.ts. Follow-up review of those changes is clean through P2.

Rejected two P1 findings after source verification: the Matrix parameter matrix has only a dedicated failure row (other callers are ready-only), so there is no generic failure execution; channel-e2e.test.ts already has a file-level afterEach restoring all mocks, covering the relocated adapter tests. No redundant branches or cleanup added. Formatting, plain oxlint, and diff checks pass after these restorations.

CI follow-up: run 39758444769 reported TS2322 in collector.session-store-path.test.ts:164. The new read-gate helper incorrectly modeled the whole promise as P; its signature now models the resolved value T (Promise in/out). Runtime behavior is unchanged. Focused source review is clean; formatting and plain lint pass. Fresh-head hosted CI validates the correction.

Further CI repairs from run 39759472522: the mixed text/JSON status call now explicitly supplies its void-or-string-array result union; Discord readiness tests keep a direct mock reference instead of extracting a method from an interface; the TypeSafe origin-binding scenario returns the existing local wire response required by its configured endpoint. No assertions were weakened. Focused source review of all three fixes is clean through P2. Previous failed checks are not claimed as passing; a fresh head is submitted for CI.

Final ratchet correction: run 39761111752 passed the repaired typecheck, extension lint, and TypeSafe shard, but mock-exports rejected two unannotated synthetic provider mocks in runtime.test.ts. Added a precise mock-isolation explanation immediately above each mock; no behavior or baseline allowance changed. The other baseline ratchets passed. The comment-only correction is independently reviewed clean and passes formatting/plain lint; current-head CI remains the merge gate.

Mock baseline follow-through: run 39763257208 accepted the isolation annotations and identified exactly three stale baseline rows (the deleted Discord authorization suite, deleted Tlon channel-ops suite, and removed TypeSafe client mock). Removed those exact rows, with no added exceptions. Independent review is clean. All other checks in that run had no reported failures; current-head CI is still required.

@clawsweeper

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

chatgpt-codex-connector Bot commented Oct 22, 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-22T10:14:44.572336Z f9d89bd 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: tlon Channel integration: tlon gateway Gateway runtime scripts Repository scripts labels Oct 22, 2026
@steipete
steipete enabled auto-merge (squash) October 22, 2026 09:49

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: ac2a3ce887

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@@ -88,13 +88,6 @@ it("does not embed an unchecked URL when a configured cap rejects its bytes", as
expect(mockUploadFile).not.toHaveBeenCalled();
});

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Preserve the verified-upload fallback test

When a capped download succeeds but uploadFile rejects, uploadImageFromUrl is explicitly supposed to return the already-validated original URL; this deletion removes the only test that exercises that branch. The remaining cap test covers only download rejection, so regressions in sourceSizeVerified or the upload-error catch path could silently turn a documented user-visible fallback into a failed send. Retain this scenario, potentially in a consolidated table.

AGENTS.md reference: AGENTS.md:L79-L79

Useful? React with 👍 / 👎.

@steipete
steipete disabled auto-merge October 22, 2026 09:56
@steipete
steipete enabled auto-merge (squash) October 22, 2026 09:57
@steipete
steipete disabled auto-merge October 22, 2026 10:09
@steipete
steipete enabled auto-merge (squash) October 22, 2026 10:10
@steipete
steipete disabled auto-merge October 22, 2026 10:26
@steipete
steipete enabled auto-merge (squash) October 22, 2026 10:27
@steipete
steipete disabled auto-merge October 22, 2026 10:38
@steipete
steipete enabled auto-merge (squash) October 22, 2026 10:39
@steipete
steipete merged commit 1fd01a2 into main Oct 22, 2026
151 of 153 checks passed
@steipete
steipete deleted the tcr/land-d450-1792662170 branch October 22, 2026 10:52
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 23, 2026
* test(device-pair): deslop y0615 tests

* test(device-pair): consolidate y0615 family fixtures

* test(workshop): deslop y0617 tests

* test(workshop): consolidate y0617 test families

* test(agents): deslop y0616 tests

* test(agents): consolidate y0616 boundary fixtures

* test(qa-lab): deslop y0618 tests

* test(gateway): deslop y0619 tests

* test(gateway): consolidate y0619 health suites

* test(gateway): deduplicate y0619 health coverage

* test(test-utils): deslop y0622 tests

* test(test-utils): consolidate y0622 cleanup family

* test(beam): deslop y0621 tests

* test(beam): consolidate catalog shutdown scenarios

* test(tlon): deslop y0623 tests

* test(tlon): consolidate y0623 transport families

* test(web-search): deslop y0627 tests

* test(qa-lab): deslop y0625 tests

* test(qa-lab): consolidate y0625 scenario suites

* test(qa-lab): consolidate y0625 lifecycle fixtures

* test(qa-lab): deslop y0626 tests

* test(typesafe): deslop y0624 tests

* test(typesafe): consolidate y0624 transport fixtures

* test(typesafe): share y0624 transport scenarios

* test: retain ingress and cancellation regression coverage

* test(gateway): correct read gate promise result type

* test: align consolidated fixtures with runtime contracts

* test(web-search): explain synthetic provider mock isolation

* test: prune stale consolidated mock baseline entries
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: tlon Channel integration: tlon extensions: device-pair extensions: qa-lab gateway Gateway runtime plugin: beam Beam session sharing plugin plugin: typesafe scripts Repository scripts size: XL

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant