Repository navigation
test(ui,cli,browser,cron): remove low-value tests (batch d071) - #170246
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: needs changes before merge. What this changesThis PR consolidates and removes test cases across the UI, CLI, browser, cron, plugins, and desktop Gateway. Review scores
ProductKind: Test only · Worth it: Yes Merge readiness⛔ Needs changes before merge - 12 items remain Keep this useful test cleanup open, but restore six independent contract checks that the retained coverage does not replace. Priority: P2 Before merge
Findings
Provenance
Agent review detailsHow this fits togetherThe changed suites exercise production owners with controlled inputs and check their results; the timeout baseline records remaining test-timeout exceptions. flowchart LR
Fixtures[Controlled inputs] --> Tests[Retained test suites]
Tests --> Owners[Production owners]
Owners --> Results[Observable results]
Results --> Assertions[Contract assertions]
Assertions --> CI[Regression detection]
Technical reviewBest possible solution: Keep the consolidation while restoring focused coverage for the six independent contracts. Do we have a high-confidence way to reproduce the issue? Source inspection establishes the six coverage losses; this test-only change introduces no runtime defect to reproduce, and execution was prohibited. Is this the best way to solve the issue? Consolidating redundant permutations is appropriate, but independent custody, identity, compatibility, and routing contracts must retain their own 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 53dc08144966. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceAcceptance criteria:
What I checked:
PR surfaceTests -4905, Other 0. Total -4905 across 62 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 12, 2026, 5:20 PM ET / 21:20 UTC. |
…law#170246) * test(ui): deslop x1379 tests * test(nextcloud-talk): deslop x1376 tests * test(cli): deslop x1380 tests * test(config): deslop x1363 tests * test(ui): deslop x1383 tests * test(diffs): deslop x1378 tests * test(browser): deslop x1384 tests * test(browser): deslop x1385 tests * test(qa-lab): deslop x1386 tests * test(desktop): deslop x1387 tests * test: retain independent contracts in batch d071
What Problem This Solves
Removes redundant test permutations and implementation-level replays from ten previously validated test-audit shards.
User Impact
No production behavior, public API, or UI appearance changes. Retained tests continue to cover the distinct security, regression, authority, and lifecycle contracts.
Why This Change Was Made
Replayed all ten campaign commits onto main
529b4d75b7030592d7e0718fa63fb9db16ce8ec3, preserving their messages. All applied cleanly: no conflicts, skipped commits, or dropped hunks. The only non-test change reduces the timeout-race baseline formodel-preflight.runtime.test.tsfrom two occurrences to one.Production LOC: +0 / -0. Test LOC: +723 / -5628 (net -4905). Test baseline metadata: +1 / -1. No CODEOWNERS-owned paths are touched.
Evidence
Focused local validation passed:
pnpm test <all 62 replay-touched test files> --maxWorkers=1ran 771 tests across 62 files / 11 Vitest groups, all passing, in 561.55 seconds wall time. Installedoxfmt --write/oxfmt --check, plainoxlint -c .oxlintrc.json, andgit diff --checkagainst the pinned landing base passed. The earlier run was intentionally interrupted to restore review findings; the final run covers the complete corrected batch. No timeouts, retries, skips, or assertions were weakened. Hostedopenclaw/ci-gateowns broad/type-aware proof and CI timing; those results are pending at submission. No Testbox/Crabbox allocation was requested for this landing.The slow local groups were cron (133.95s) and database-backed plugin tests (122.62s), which retain real worker/storage, delivery, and artifact-rendering coverage. Other group durations: unit-fast 0.668s, desktop Gateway 16.54s, CLI 13.18s, UI 10.50s, browser UI 6.40s, diffs 35.80s, browser plugin 27.90s, messaging 70.55s, and QA 44.20s.
The table below records actual changed-file LOC and declaration counts against the landing base, not the larger original shard inventory. Coverage totals are historical in-shard before/after evidence, not a new coverage measurement on main.
The independent review raised 13 potential contract losses; all were addressed by restoring focused original tests/table rows before publication. These retain retired-local cleanup recovery, evaluation authority checks, pairing transport/path/secret rejection, restricted and pending-page eligibility, post-confirmation revocation, CLI admin scope, manifest/runtime schema parity, plain-command authorization, stale-thread isolation, explicit-empty fallback behavior, token timer expiry, privileged creation, and visibility-driven presence clearing. In particular,
relay-command-handler.test.tsis now unchanged from the landing base. No production changes were needed. A fresh independent review of the correction delta was scoped-clean at P2 and above; no findings were rejected.Shard file inventory and original validation notes
All names below have the
.test.tssuffix.ui/src/components/board/: board-view-sizing, board-view.browser, board-view, board-widget-cell-mcp-app, board-widget-frame.extensions/nextcloud-talk/src/: api-credentials, bot-preflight, core, inbound.behavior, message-actions, room-info, setup, webhook-spool.src/cli/: session-ref, skills-library-cli, system-cli, tagline, telemetry-cli, users-cli. The original shard also tested the unchanged update-dry-run-state.process file.src/cron/isolated-agent/: current-session-completion, delivery-target, model-preflight.runtime, run-fallback-policy, subagent-followup. Also adjustsconfig/test-timeout-race-baseline.txtshrink-only. Its result Markdown was absent; coverage totals were recovered from the saved before/after artifacts and final comparison log.ui/src/lib/: presenter, provider-quota-summary, session-display, session-method-access, session-viewer-presence, sidebar-zone, toast.extensions/diffs/src/: browser.runtime, config, language-hints, render, tool, viewer-client.extensions/browser/chrome-extension/modules/: native-bootstrap, relay-command-handler, relay-core, tab-access-events.navigation, tab-access, tab-document-provenance. Original shard included unchanged relay-auth-v2.extensions/browser/src/cli/: browser-cli-inspect, browser-cli-manage, browser-cli-manage.timeout-option, browser-cli-shared, browser-cli-state.option-collisions, browser-cli.lazy.extensions/qa-lab/src/live-transports/matrix/substrate/: client, config, events, fault-proxy, harness.runtime, recording-proxy, sync.src/gateway/desktop/: attachment, node-stream-broker, observe-bridge, rfb-preauth, rfb-probe, rfb-view-only-filter. Original shard included unchanged computer-process.Original shard reports recorded no coverage drop above the 1% budget. Declaration targets were intentionally not met where independent retained contracts prevented further safe deletion. x1376 and x1387 recorded unrelated baseline dead-export failures; these are historical notes, not claims about this PR's CI. The x1379 Chromium per-case coverage and x1387 nested-project case coverage used aggregate coverage fallback; x1383 used individual-file measurements after combined translation transforms were incomparable.