Repository navigation
test(sessions,ui,infra): remove low-value tests (batch d328) - #178500
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 repeated test fixtures and assertions across session, UI, CLI, infrastructure, decision, and script suites. Example: A foreground transcript reader closes while another database remains usable.
Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this PR open as useful maintainer-directed test cleanup; no concrete introduced defect was found. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe changed tests supply synthetic inputs to existing runtime and UI owners and inspect their results, lifecycle behavior, and rendered output. flowchart TD
F[Synthetic fixtures] --> T[Focused tests]
T --> R[Runtime owners]
T --> U[Control UI]
R --> A[Contract assertions]
U --> A
A --> C[CI gate]
Technical reviewBest possible solution: Land the consolidation after the existing exact-head validation gate passes, preserving the retained behavioral contracts. Do we have a high-confidence way to reproduce the issue? This PR proposes behavior-preserving test cleanup rather than a product bug fix; no target code was executed during this read-only review. Is this the best way to solve the issue? Shared fixtures and existing production owners are appropriate replacements for repeated setup, and the examined consolidations retain their distinct lifecycle, rejection, recovery, and rendering assertions. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against e12719836f8e. Provenance checked
TestingProof path: none. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfacePR surface statistics unavailable: the file list is incomplete. 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 20, 2026, 11:44 AM ET / 15:44 UTC. |
811c1f6 to
efa13e0
Compare
…w#178500) * test(sessions): deslop z0268 tests * test(sessions): deslop z0268 tests * test(ui): deslop z0271 tests * test(ui): deslop z0271 tests * test(ui): deslop z0275 tests * test(daemon-cli): deslop z0272 tests * test(daemon-cli): further deslop z0272 tests * test(ui): deslop z0267 tests * test(ui): deslop z0267 tests * test(ui): deslop z0267 tests * test(activity): deslop z0274 tests * test(activity): deslop z0274 tests * test(activity): deslop z0274 tests * test(infra): deslop z0273 tests * test(infra): deslop z0273 tests * test(infra): deslop z0273 tests * test(decisions): deslop z0278 tests * test(decisions): deslop z0278 tests further * test(decisions): consolidate z0278 contract proof * test(chat): deslop z0277 tests * test(chat): deslop z0277 tests * test(chat): deslop z0277 tests * test(integration): deslop z0276 tests * test(integration): deslop z0276 tests * test(integration): deslop z0276 tests * test(agents): deslop z0281 tests * test(agents): deslop z0281 tests * test(agents): deslop z0281 tests * test(scripts): deslop z0283 tests * test(scripts): deslop z0283 tests * test: retain distinct safety and attribution regressions * test: preserve mock exports and document isolation * test(sessions): restore inline assistant fixture role * test: retain current fixtures and shrink stale mock baseline
What Problem This Solves
Consolidate repetitive test fixtures, repeated assertions, and overlapping test cases across the sessions, Control UI, daemon/CLI, activity, infrastructure, decisions, integration, agent, and script suites. Preserve distinct lifecycle, security, rollback, rendering, and ordering contracts. No product behavior change is intended.
Replayed the 30 supplied campaign commits onto pinned main 620b8fb. All commits contributed changes; no entire commit was skipped.
Rebased again onto current main fcdb4cd after GitHub reported a conflict. Preserved current-main behavior and dropped cleanup files implicated by late CI fixture/type failures.
Conflict decisions
src/config/sessions/session-transcript-worker-lanes.test.tsfor both z0268 commits: main has extracted the fixture owner and removed the older local wrappers.src/config/sessions/session-transcript-worker-readers.test.ts: main has additional Proxy serialization cases; did not replace them with the older campaign shape.ui/src/e2e/chat-cold-load-anchor.e2e.test.tsfor both z0271 commits: retain the newer title trace, reconciliation diagnostics, and setup.src/infra/dev-install-branch.test.ts, preserved main's four-row main/master/detached/empty branch table while adapting it to the consolidated fixture helper.ui/src/pages/chat/components/chat-html-preview-assets.test.ts, retained main's additional empty base-href row as well as the external base-href row; kept the non-conflicting fixture consolidation.chat-html-preview-assets.test.tsandchat-media-playback.test.ts; kept their first-commit cleanup and main's newer asset-security, playback backoff, bounded-retry, and final-HEAD assertions.Per-shard evidence
Late CI and rebase drops (these files retain current main unchanged):
src/infra/deferred-plugin-migrations.test.ts,src/infra/delivery-queue-health.test.ts,src/agents/bash-tools.exec-notify.test.ts,src/cli/daemon-cli/response.test.ts,src/config/sessions/session-transcript-reconcile.sql-observer.test-support.ts,test/scripts-update-gateway.test.ts,ui/src/e2e/chat-child-attention.e2e.test.ts,ui/src/e2e/chat-composer-undo-redo.e2e.test.ts,ui/src/pages/activity/session-activity-view.test.ts,ui/src/pages/activity/session-activity-view.browser.test.ts,ui/src/pages/chat/components/chat-forwarded-attribution.test.ts,ui/src/pages/chat/components/chat-forwarded-disclosure.browser.test.ts,ui/src/pages/chat/components/chat-image-loading.browser.test.tsx,ui/src/pages/chat/components/chat-media-playback.test.ts, andui/src/test-helpers/control-ui-cold-load-event-stream.ts.The decision test helper now preserves the literal unavailable reason instead of widening it. The mock-export baseline shrink removes only the 11 exact stale entries reported by CI after their factories were repaired or documented; no allowances were added.
The final current-main restorations, literal-reason typing, and exact baseline shrink passed independent P0–P2 review. Formatting, plain changed-file oxlint, and
git diff --checkpassed again on the final candidate. Fresh-head hosted CI remains the validation gate; earlier-head results are not presented as final-head proof.Numbers below are counted from the actual replayed tree against the pinned base, not copied from the earlier campaign snapshot. Declarations are source-counted
it/testcalls (parameterized rows are not expanded). Test-support and E2E fixture files are included in test LOC. The shard reports explicitly say tests and coverage were not run under CI-only instructions; there is no coverage totals line to claim.Production LOC: +0 / -0. Test and test-support LOC: +4985 / -8060, net -3075. 76 test/support files changed. Configuration-only change: shrink the obsolete mock-export baseline entries reported by CI.
Evidence
pnpm install --frozen-lockfile --prefer-offline: passed.node_modules/.bin/oxfmt --write <changed files>: passed.node_modules/.bin/oxlint -c .oxlintrc.json <changed TS/JS files>: passed (exit 0).git diff --checkagainst the pinned base: passed.openclaw/ci-gateis the required runtime/typecheck gate.clearConfigCache()is a no-op insrc/config/io.runtime.ts; the originalstoppedServiceStatecall also used its empty top-level environment default; Solid 2 explicitly supports array-valuedclass(installed cheatsheet and repository Solid guidance).config-form-fixtures.tsx; exit status is 0.assistantfixture reference during report-facts test collection. Restored main's inlinerole: "assistant"literal; no test case or assertion was removed.Files by shard
z0268
src/config/sessions/session-transcript-read-pools.test.tssrc/config/sessions/session-transcript-reconcile.admission.test.tssrc/config/sessions/session-transcript-reconcile.fixtures.test-support.tssrc/config/sessions/session-transcript-reconcile.scheduling.test.tssrc/config/sessions/session-transcript-report-facts.test.tsz0271
ui/src/e2e/chat-code-block-fences.e2e.test.tsui/src/e2e/chat-collapsed-reply-reveal.e2e.test.tsui/src/e2e/chat-composer-accessory-focus.e2e.test.tsui/src/e2e/chat-composer-picker-layout.e2e.test.tsui/src/e2e/chat-composer-predictions.e2e.test.tsz0275
ui/src/e2e/update-confirmation.e2e.test.tsui/src/e2e/update-external-supervisor.e2e.test.tsui/src/e2e/update-git-revisions.e2e.test.tsui/src/e2e/update-run.e2e.test.tsui/src/e2e/update-stale-git-refresh-proof.e2e.test.tsui/src/e2e/usage-export-recovery.e2e.test.tsui/src/e2e/usage-known-zero-cost.e2e.test.tsui/src/e2e/usage-overview.e2e.test.tsz0272
src/cli/daemon-cli/lifecycle-action-preflight.test.tssrc/cli/daemon-cli/lifecycle-fallback.test.tssrc/cli/daemon-cli/lifecycle-safe-restart.test.tssrc/cli/daemon-cli/register-service-commands.test.tssrc/cli/daemon-cli/restart-health-external.test.tssrc/cli/daemon-cli/start-repair.test.tssrc/cli/daemon-cli/lifecycle.test-helpers.tsz0267
ui/src/test-helpers/board-provider.tsui/src/test-helpers/chat-model.tsui/src/test-helpers/config-form-fixtures.tsxui/src/test-helpers/control-ui-e2e.test.tsui/src/test-helpers/application-context-fixtures.tsui/src/test-helpers/board-ops.tsui/src/test-helpers/chat-layout-menu.tsz0274
ui/src/pages/activity/route.test.tsui/src/pages/activity/session-activity-media.test.tsui/src/pages/activity/activity-page.test-support.tsz0273
src/infra/dev-install-branch.test.tssrc/infra/device-bootstrap.worker.test.tssrc/infra/device-pairing-approval-policy.test.tssrc/infra/device-pairing-identity.test.tssrc/infra/device-pairing.ingress-approval.test.tssrc/infra/device-bootstrap.pruning.test.tsz0278
src/decisions/compatibility.test.tssrc/decisions/runtime-v2.test.tssrc/decisions/runtime.admission.test.tssrc/decisions/validation-v2.test.tssrc/decisions/catalog.test-support.tssrc/decisions/contract.test-support.tssrc/decisions/registry-adoption.test.tssrc/decisions/runtime.preparation.test.tsz0277
ui/src/pages/chat/components/chat-effort-picker.service-tiers.test.tsxui/src/pages/chat/components/chat-github-publication.test.tsui/src/pages/chat/components/chat-html-preview-assets.test.tsui/src/pages/chat/components/chat-forwarded-avatar.browser.test.tsz0276
test/progress-card-channel-literals.integration.test.tstest/qa-convex-credential-payload-validation.test.tstest/scripts-update-gateway-legacy.test.tstest/storage-locations-r2.test.tstest/subagent-progress-telegram-retirement.integration.test.tstest/signal-approval-forwarding.integration.test.tstest/runtime-proof.test-support.tsz0281
src/agents/bash-tools.exec-launch-policy.integration.test.tssrc/agents/bash-tools.exec-live-state-sqlite-guard.test.tssrc/agents/bash-tools.exec-source-authority.test.tssrc/agents/bash-tools.exec-approval-followup.incognito.test.tssrc/agents/bash-tools.exec-approval-output.test.tssrc/agents/bash-tools.exec.egress-closure.test.tssrc/agents/bash-tools.notify-on-exit-ack.test.tsz0283
test/scripts/tsgo-ci-continuation.test.tstest/scripts/tsgo-core-test-shards.test.tstest/scripts/type-suppression-inventory.test.tstest/scripts/typecheck-inert.test.tstest/scripts/script-fixture-files.test-support.tstest/scripts/tsgo-shard-cancellation.test.tstest/scripts/update-channel-switch-fixture.test.tstest/scripts/update-compat-cleanup.test.tstest/scripts/update-compat-external-bindings.test.ts