Repository navigation
test: remove low-value tests (batch d450) - #180495
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. |
There was a problem hiding this comment.
💡 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(); | |||
| }); | |||
|
|
|||
There was a problem hiding this comment.
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 👍 / 👎.
* 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
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.107a181f9582(browser family consolidation),161ef2a56096,59617e2de969,35fea1e8a1b0(workboard family),bc1a0b98fc85(Beam family consolidation), andb91a35a45be2(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), andgit diff --checkpass. No Vitest, check-changed, tsgo, coverage, or Testbox runs were performed. Hostedopenclaw/ci-gateis 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).
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.