Repository navigation
test(agents,plugins,ui): remove low-value tests (batch d179) - #174541
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. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 3b430c3bb6
ℹ️ 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".
|
Codex review: needs changes before merge. What this changesThis PR consolidates repeated test fixtures and assertions across agent, plugin, state, tooling, and UI suites. Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 8 items remain Keep this maintainer-approved cleanup open: six introduced test defects need repair before merge. Priority: P3 Before merge
Findings
Provenance
Agent review detailsHow this fits togetherTest fixtures feed production owners and simulated transports, then assert configuration, delivery, lifecycle, and tooling contracts. flowchart LR
A[Test scenarios] --> B[Shared fixtures]
B --> C[Production owners]
C --> D[Simulated transports and stores]
D --> E[Behavior assertions]
E --> F[CI gates]
Technical reviewBest possible solution: Retain the smaller fixtures while restoring distinct regression inputs and the original optional-property assertion semantics. Do we have a high-confidence way to reproduce the issue? The introduced test failures are source-verifiable and corroborated by hosted CI on the reviewed head; no local tests were executed. Is this the best way to solve the issue? Shared fixtures are appropriate when they preserve distinct inputs, expected outcomes, and absence checks. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against fdc6a76b835c. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceAcceptance criteria:
What I checked:
PR surfaceTests -3588. Total -3588 across 76 files. Added test files: 5. 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 16, 2026, 2:56 PM ET / 18:56 UTC. |
3b430c3 to
f79d2b5
Compare
…w#174541) * test(subagents): deslop x7223 tests * test(subagents): deslop x7223 tests * test(sms): deslop x7228 tests * test(sms): deslop x7228 tests * test(doctor): deslop x7219 tests * test(doctor): deslop x7219 tests * test(doctor): deslop x7219 tests * test(ui): deslop x7227 tests * test(ui): deslop x7227 tests * test(ui): deslop x7227 tests * test(state): deslop x7229 tests * test(state): deslop x7229 tests * test(state): deslop x7229 tests * test(reef): deslop x7230 tests * test(reef): deslop x7230 tests * test(reef): deslop x7230 tests * test(clickclack): deslop x7232 tests * test(clickclack): deslop x7232 tests * test(config): deslop x7225 tests * test(config): deslop x7225 tests * test(pr): deslop x7231 tests * test(pr): deslop x7231 tests * test(pr): deslop x7231 tests * test(gateway): deslop x7226 tests * test(gateway): deslop x7226 tests * test(gateway): deslop x7226 tests * test(scripts): deslop x7234 tests * test(scripts): deslop x7234 tests * test: preserve d179 fixture contracts after review * test: repair d179 table typing and stale mock baselines * test(ui): type optional background observation explicitly
What Problem This Solves
Repeated fixtures and assertion boilerplate make these suites harder to maintain. This is the explicitly requested d179 campaign batch, replayed and then rebased onto main at
d4325cb0aa39e45c84ec19b7e701bdc9c9538195.User Impact
No intended user-visible change. Production +0 / -0 LOC. Tests and test support: +8481 / -13406, net -4925, across 66 files. The mock-export baseline additionally shrinks by eight obsolete entries. No dependency, schema, runtime configuration, or runtime changes.
Why This Change Was Made
Consolidate repeated fixtures and assertion setup while retaining independent boundary and failure cases. New helpers remain test-only. Newer main tests win over older campaign assumptions.
Replayed 28 of 30 supplied commits in order with their subjects preserved; one additional repair commit restores independent coverage and fixes CI-discovered fixture mistakes.
Skipped commits:
Kept and dropped conflict hunks
The rebase range comparison showed 28 patch-identical commits; only the second config commit dropped its external-refresh hunk to preserve main's expanded eight-case failure/order matrix.
Evidence
pnpm install --frozen-lockfile --prefer-offline: passed.node_modules/.bin/oxfmt --write <66 changed TS/JS files>: passed after repairs and rebase.node_modules/.bin/oxlint -c .oxlintrc.json <66 changed TS/JS files>: exit 0 after repairs and rebase.git diff --check: passed.Shard inventory
These are actual replay deltas against the pinned base, including test-only support. Declaration counts are lexical direct
it/testdeclarations, not expanded parameterized cases. The supplied shard reports describe earlier revisions and explicitly state coverage was not run in CI-only mode. There are no in-shard coverage totals to quote; no coverage percentage is claimed.Changed files by shard
x7219
src/commands/doctor-config-analysis.test.tssrc/commands/doctor-config-flow.cron-owners.test.tssrc/commands/doctor-config-flow.legacy-composition.test.tssrc/commands/doctor-config-flow.session-store-owner.test.tssrc/commands/doctor-config-flow.test.tssrc/commands/doctor-config-flow.workspace-persistence.test.tsx7223
src/agents/subagents/registry/subagent-announcement-delivery.worker.test.tssrc/agents/subagents/registry/subagent-announcement.test-support.tssrc/agents/subagents/registry/subagent-announcement.worker.test.tssrc/agents/subagents/registry/subagent-control.commands.test.tssrc/agents/subagents/registry/subagent-control.test.tsx7225
ui/src/lib/config/config-external-refresh.test.tsui/src/lib/config/config-patch-recovery.test.tsui/src/lib/config/config-suite.test-support.tsui/src/lib/config/config-validation-rejection.test.tsx7226
src/gateway/server-plugin-reload.activation.test-support.tssrc/gateway/server-plugin-reload.fixture-tools.test-support.tssrc/gateway/server-plugin-reload.managed-candidate.test-support.tssrc/gateway/server-plugin-reload.recovery.test-support.tssrc/gateway/server-plugin-reload.resources.test-support.tsx7227
ui/src/pages/new-session/draft-persistence.test.tsui/src/pages/new-session/draft-place-default-repository.test.tsui/src/pages/new-session/draft-place-state.test.tsui/src/pages/new-session/draft-preference-migration.test.tsui/src/pages/new-session/draft-submission-background.test.tsui/src/pages/new-session/draft-submission-flow.test-support.tsui/src/pages/new-session/draft-submission-title.test.tsx7228
extensions/sms/src/accounts.test.tsextensions/sms/src/channel.test.tsextensions/sms/src/delivery-observations.test.tsextensions/sms/src/gateway.test.tsextensions/sms/src/inbound.test.tsextensions/sms/src/ingress-spool.test.tsextensions/sms/src/partial-send.test-support.tsextensions/sms/src/send.test.tsx7229
src/state/openclaw-state-lease-admission.test-support.tssrc/state/openclaw-state-lease-worker-group.test.tssrc/state/openclaw-state-lease-worker-owner.test.tssrc/state/openclaw-state-maintenance-resources.test.tssrc/state/openclaw-state-read.existing-schema.test.tssrc/state/openclaw-state-read.quarantine-cleanup.test.tsx7230
extensions/reef/src/audit-state.test.tsextensions/reef/src/channel.test.tsextensions/reef/src/flow-receipts.test.tsextensions/reef/src/flow.test.tsextensions/reef/src/friends.test.tsextensions/reef/src/inbox-cursor.test.tsx7231
test/scripts/pr-correction-continuation.test.tstest/scripts/pr-correction-preparation.test.tstest/scripts/pr-correction-publication.test.tstest/scripts/pr-crabbox-gate-publisher.test.tstest/scripts/pr-cross-checkout.test.tsx7232
extensions/clickclack/src/accounts.test.tsextensions/clickclack/src/gateway.test.tsextensions/clickclack/src/gateway.thread-reply-window.test.tsextensions/clickclack/src/http-client.test.tsextensions/clickclack/src/inbound.mention-gating.test.tsextensions/clickclack/src/inbound.test.tsx7234
test/scripts/clawhub-parent-authorization.test.tstest/scripts/clawhub-postpublish.test.tstest/scripts/clawlog.test.tstest/scripts/clawsweeper-dispatch.test.tstest/scripts/cli-startup-bench-spawner.test.tstest/scripts/close-duplicate-prs-after-merge.test.tstest/scripts/code-mode-matrix-data-tasks.test.tstest/scripts/code-mode-matrix-fanout-tasks.test.tsCODEOWNERS visibility: none of these paths match the current explicit rules. No security-policy or release-owner files change.