Repository navigation
test(core,plugins,ui): remove low-value tests (batch d295) - #177339
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. |
|
Codex review: needs maintainer review before merge. What this changesThis PR consolidates test fixtures and assertions and removes two obsolete mock-export baseline entries. Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this maintainer-authored test cleanup open; source review found no definite introduced defect, but the reviewed head has an unclassified UI CI failure. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe affected suites feed synthetic requests, events, and lifecycle transitions into existing OpenClaw owners and assert their responses, persistence, and cleanup. flowchart LR
A[Synthetic fixtures] --> B[Consolidated test suites]
B --> C[Existing production owners]
C --> D[Responses and lifecycle outcomes]
D --> E[Independent assertions]
Technical reviewBest possible solution: Retain the test-only consolidation after attributing the reviewed head’s UI failure and satisfying the required merge gate. Do we have a high-confidence way to reproduce the issue? This is behavior-preserving test maintenance rather than a runtime bug report; no target code was executed during this read-only review. Is this the best way to solve the issue? Consolidating fixtures within existing suites is appropriate, and inspection found no definite loss of a distinct behavioral boundary. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against bfb316be2ab2. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
PR surfaceTests -1397, Other -2. Total -1399 across 20 files. Added test files: 0. View PR surface stats
Review metrics
LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed October 19, 2026, 10:21 AM ET / 14:21 UTC. |
b4ad503 to
d775964
Compare
…177339) * test(helpers): deslop x8603 tests * test(helpers): deslop x8603 tests * test(helpers): deslop x8603 tests * test(bonjour): deslop x8605 tests * test(meta): deslop x8606 tests * test(command-explainer): deslop x8608 tests * test(microsoft-foundry): deslop x8607 tests * test(qa-lab): deslop x8610 tests * test(gateway): deslop x8609 tests * test(gateway): deslop x8609 tests * test(gateway): deslop x8609 tests * test(media-generation): deslop x8611 tests * test(media-generation): deslop x8611 tests * test(mistral): deslop x8613 tests * test(mistral): deslop x8613 tests * test(github): deslop x8612 tests * test(github): deslop x8612 tests * test(acp): deslop x8614 tests * test(acp): deslop x8614 tests * test(logs): deslop x8604 tests * test(logs): deslop x8604 tests * test(logs): deslop x8604 tests * test(web-fetch): deslop x8616 tests * test(session-url-contract): deslop x8618 tests * test(raft): deslop x8617 tests * test(raft): deslop x8617 tests * test(raft): deslop x8617 tests * test(bonjour): guard missing service creation in fixture * test: resolve type-aware lint in consolidated fixtures * test: preserve buffer handling and real mock exports * test: prune repaired mock export baseline entries
What Problem This Solves
This batch consolidates repeated test fixtures, setup, assertions, and table cases across existing suites. It keeps the behavioral boundaries while reducing test-only repetition. No production code, public APIs, dependencies, or runtime defaults change.
Replayed 27 of the 30 selected commits onto pinned main
b429fdd74d69ad362f23588314deeba0306c21e4, with follow-up test-helper type/lint fixes. Test-only diff: +2,515 / -3,912 lines (net -1,397) across 19 files, plus two deleted obsolete mock-baseline rows in one config file. Total net: -1,399 lines. Production and shared-support diff: 0 / 0. The independently scoped shard cleanups are the stages of this batch; no new framework or production abstraction is introduced.Shard accounting
LOC and declaration counts below are recomputed from this PR against its pinned base, not copied from earlier campaign snapshots. Declarations are lexical
it/testdeclarations, not expanded/executed cases. Table consolidation can lower declarations without removing input rows.In-shard coverage totals: unavailable for every listed shard. Each supplied shard report explicitly states that tests and coverage were not run under the operator's CI-only override. There is no measured coverage or <=1% coverage-drop claim for this batch. Some reports describe earlier shard revisions; the table above is the actual final replay delta.
Conflict decisions
4689df58d28(x8598 dashboards): current main has a substantially different test harness. Kept main's complete dashboard lifecycle, pagination, and route tests rather than transplanting the conflicting fixture rewrite.403c4c0c9ec(x8606 Meta), retaining main's explicit 4096 output-cap case and all newer catalog, authored-alias, and transport cases. Skipped follow-upf0f4d34bdad, whose fixed-model helper conflicts with main's multi-model resolver.f4febe3ee42(x8607 Foundry), updating main-added cases to the consolidated mock names and retaining main's removal of the duplicate environment-header assertion. Skipped follow-up20cebbef38f, whose larger fixture/table rewrite conflicts with newer custom-deployment cases.Evidence and review
pnpm install --frozen-lockfile --prefer-offline: passed.node_modules/.bin/oxfmt --write <19 changed files>: passed (exit 0).node_modules/.bin/oxlint -c .oxlintrc.json <19 changed files>: passed (exit 0).git diff --check b429fdd74d69ad362f23588314deeba0306c21e4: passed (exit 0).test/helpers/qa-gateway-cleanup.test.tsregisters exactly oneafterEach;createFixtureLifetimeand its imported preparation module register none. That single hook joins fixture work and removes its roots, so the captured hook does not discard another teardown on this base.server.getConnectionsreference and an unnecessary generic DOM-query wrapper. Bound the server method before promisifying it and removed the wrapper in favor of direct typed DOM queries. Repeated only the permitted local formatting/plain lint/whitespace checks; fresh CI remains the full proof.config/test-mock-exports-baseline.txt, as emitted by the hosted check. The broad baseline scan is not run locally under CI-only mode.openclaw/ci-gate, pinned-head squash auto-merge.Risk is confined to test fidelity and fixture behavior. Retained coverage includes authentication/origin rejection, restart/deduplication, cancellation/cleanup ordering, ACP replay/recovery, media fallback policy, and UI log lifecycle behavior. No user-facing release note is needed for test-only changes.