Skip to content

Remove 181 low-value tests and 28 entire suites - #41007

Merged
OrcaWin merged 1 commit into
mainfrom
rm-tests/audit3372-28-suites
Nov 11, 2026
Merged

OrcaWin merged 1 commit into
mainfrom
rm-tests/audit3372-28-suites

Conversation

@OrcaWin

@OrcaWin OrcaWin commented Nov 11, 2026 •

Copy link
Copy Markdown
Collaborator

ELI5

Remove 181 low-value test definitions (196 expanded cases), including 28 entire suites, to reduce CI work and maintenance.

What Changed

Delete mock-heavy hibernation, host-session launch, terminal recovery, web launch-option and sleeping-resume suites. Remove tiny suites that mainly pin labels, field inventories, flags, callback receipts, URI conversions and similar projections. Five suites retain ten definitions (12 expanded cases) covering editor text/ownership, hidden browser collision repair, transport epochs/input safety and two Unicode range hazards.

Remove two orphan fixtures (305 support lines), ten obsolete timing keys, and affected reliability selectors/claims. Archive retired receipts and original metadata verbatim; preserve remaining evidence within its original scope. Net reduction: 6,181 lines across 37 files. No production code changes.

Why

The removed coverage provides too little incremental regression value for its fixture and maintenance cost. Whole suites are removed without a keeper quota or replacement requirement. Two reviewed source batches share one PR and CI run.

Linked Issue

Maintainer-requested comprehensive test-value audit; no existing linked issue.

Visual Proof

N/A — tests, unused test fixtures and coverage metadata only.

Testing

  • All five retained suites pass locally on Linux: 12 cases, no skips, background launch enabled and two workers.
  • All 39 changed-file checks pass against the actual proposal base, including typechecks, unit tests, metadata and ratchets.
  • Scoped formatting/lint and normal commit hooks pass.
  • Independent source, metadata, import closure, freshness and patch replay proofs recorded in audit3363/3364/3367/3369/3368/3372. All retained registrations, callbacks and table multipliers remain unchanged.
  • All four applicable workflows and all 44 PR checks pass or are correctly skipped, including the mobile workflow and old/new client-server compatibility journeys.

Risk

Level: Medium. This deliberately loses real attention/liveness, retry/backoff, cleanup, compatibility/legacy, parser/pause/quarantine/remount, saved recipe/Windows quoting, host classification, credential omission, diagnostics, timeout and decoding regression alarms. The credential test checks a descriptor's field inventory; removing it loses its future object-spread disclosure alarm. Retained cases are narrower and do not replace every removed check. No real provider/PTY/shell, native UI, mobile device, mixed-version or cross-platform behavior validation is claimed from local tests. Revert restores the tests, fixtures and metadata.

Review

Both source-value batches and independent reviews are recorded in the audit tracker. Fixtures with surviving importers are preserved. This PR receives only its 181 authored removals; earlier merged removals receive no duplicate credit. The exhaustive repository audit remains ongoing.

Agent skill upstream boundary

  • Not applicable; no upstream skill source copied.

Checklist

  • Scope, rationale, validation and coverage loss explained.
  • No production or UI behavior changed.
  • Cross-platform, folder-workspace, remote and mobile implications considered.
  • Full PR CI passes.

@coderabbitai

coderabbitai Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

Walkthrough

The pull request removes or reduces test suites and fixtures across mobile, main, renderer, and shared code. Several remote terminal transport tests retain narrower checks for input replay and stream reconnection. The CI shard timing manifest removes entries for deleted tests and adds a timing entry for resume-stale-structured-agent-session.test.ts.

Pre-merge checks: Passed 5

Check name Status Explanation
Title check Passed The title clearly describes the primary change: removing 181 low-value tests and 28 suites.
Docstring Coverage Passed No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Description check Passed The description is complete and relevant. It explains the scope, rationale, retained coverage, testing, risk, rollback, visual-proof status, and cross-platform limitations. It does not provide a linke…
Full details: Docstring Coverage

Explanation

No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 1 files.

Full details: Description check

Explanation

The description is complete and relevant. It explains the scope, rationale, retained coverage, testing, risk, rollback, visual-proof status, and cross-platform limitations. It does not provide a linked issue, but it states that the work is maintainer-requested, which matches the template's maintainer exception.

Finishing Touches

Generate docstrings

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Warning

Review coverage is incomplete: 1 file could not be fully reviewed. Findings from completed review steps are included; see review info for details.

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 9866ec2a-48e1-43af-a4c7-36ec059990af
Commits

Reviewing files that changed from the base of the PR and between ba930a0 and 6c6c8b5.

Files selected for processing: 37

  • config/reliability-gates.jsonc
  • config/scripts/ci/sharding/ci-shard-timings.json
  • mobile/src/mobile-web-shell/generations/generation-store-file-system.test.ts
  • mobile/src/session/native-chat/composer/mobile-native-chat-file-attachment.test.ts
  • mobile/src/session/use-missing-worktree-bounce.test.ts
  • src/main/codex/structured/catalog/codex-project-config-isolation.test.ts
  • src/main/gitea/repository-ref.test.ts
  • src/main/runtime/orchestration/db/federated-worker-report-outcome.test.ts
  • src/main/runtime/rpc/server/runtime-rpc-client-connection-log.test.ts
  • src/main/server/serve-stdout-boundary.test.ts
  • src/renderer/src/components/activity/activity-thread-presentation.stale-preview.test.ts
  • src/renderer/src/components/sidebar/execution-host-label.test.ts
  • src/renderer/src/components/sidebar/workspace-board-status-label.test.ts
  • src/renderer/src/components/sidebar/worktree-list/parity/sidebar-workspace-activity.test.ts
  • src/renderer/src/components/terminal-pane/pty-transport/remote-runtime/remote-runtime-host-session-launch-test-fixture.ts
  • src/renderer/src/components/terminal-pane/pty-transport/remote-runtime/remote-runtime-pty-transport-host-session-launch.test.ts
  • src/renderer/src/components/terminal-pane/pty-transport/remote-runtime/remote-runtime-pty-transport-input-replay.test.ts
  • src/renderer/src/components/terminal-pane/pty-transport/remote-runtime/remote-runtime-pty-transport-stream-reconnect.test.ts
  • src/renderer/src/components/terminal-pane/render-health/recovery/terminal-pane-recovery.test.ts
  • src/renderer/src/components/terminal-pane/session-restore/spawn-deferral/pane-spawn-deferral-drain.test.ts
  • src/renderer/src/components/wsl-move/use-wsl-move-quit-guard.test.ts
  • src/renderer/src/diagnostics/memory/renderer-memory-profile.test.ts
  • src/renderer/src/lib/agent-session/hibernation/agent-hibernation-coordinator.test.ts
  • src/renderer/src/lib/agent-session/resume/resume-sleeping-agent-session.test.ts
  • src/renderer/src/lib/browser-session-profile-label.test.ts
  • src/renderer/src/lib/files/search/file-search-selection.test.ts
  • src/renderer/src/lib/pane-manager/terminal-rendering/terminal-arabic-shaping-joiner.test.ts
  • src/renderer/src/lib/rate-limit-user-facing-error.test.ts
  • src/renderer/src/runtime/hosted-terminals/creation/agent-launch/web-runtime-agent-launch-options.test-fixture.ts
  • src/renderer/src/runtime/hosted-terminals/creation/agent-launch/web-runtime-agent-launch-options.test.ts
  • src/renderer/src/runtime/web-session-tabs-sync/subscriptions/web-session-tabs-sync-window-visibility.test.tsx
  • src/renderer/src/store/repos/project-removal-host-twin-state.test.ts
  • src/renderer/src/web/preload-api/web-artifact-sharing-setting.test.ts
  • src/renderer/src/web/preload-api/web-floating-workspace-setting.test.ts
  • src/shared/agent-launch/startup/claude-chat-entrypoint.test.ts
  • src/shared/native-chat/tools/native-chat-diff.test.ts
  • src/shared/sentence-joining.test.ts
Files with no reviewable changes: 35

  • src/main/gitea/repository-ref.test.ts
  • src/renderer/src/components/sidebar/execution-host-label.test.ts
  • src/shared/sentence-joining.test.ts
  • src/renderer/src/lib/browser-session-profile-label.test.ts
  • src/renderer/src/components/sidebar/workspace-board-status-label.test.ts
  • src/renderer/src/lib/files/search/file-search-selection.test.ts
  • src/main/codex/structured/catalog/codex-project-config-isolation.test.ts
  • src/shared/native-chat/tools/native-chat-diff.test.ts
  • src/main/runtime/orchestration/db/federated-worker-report-outcome.test.ts
  • src/renderer/src/components/wsl-move/use-wsl-move-quit-guard.test.ts
  • src/main/runtime/rpc/server/runtime-rpc-client-connection-log.test.ts
  • src/renderer/src/lib/rate-limit-user-facing-error.test.ts
  • src/renderer/src/components/sidebar/worktree-list/parity/sidebar-workspace-activity.test.ts
  • src/renderer/src/lib/agent-session/resume/resume-sleeping-agent-session.test.ts
  • mobile/src/session/use-missing-worktree-bounce.test.ts
  • src/renderer/src/components/terminal-pane/render-health/recovery/terminal-pane-recovery.test.ts
  • src/renderer/src/runtime/hosted-terminals/creation/agent-launch/web-runtime-agent-launch-options.test-fixture.ts
  • src/renderer/src/web/preload-api/web-floating-workspace-setting.test.ts
  • src/renderer/src/components/activity/activity-thread-presentation.stale-preview.test.ts
  • mobile/src/mobile-web-shell/generations/generation-store-file-system.test.ts
  • src/renderer/src/components/terminal-pane/pty-transport/remote-runtime/remote-runtime-host-session-launch-test-fixture.ts
  • src/renderer/src/lib/agent-session/hibernation/agent-hibernation-coordinator.test.ts
  • src/main/server/serve-stdout-boundary.test.ts
  • src/renderer/src/runtime/hosted-terminals/creation/agent-launch/web-runtime-agent-launch-options.test.ts
  • src/renderer/src/components/terminal-pane/session-restore/spawn-deferral/pane-spawn-deferral-drain.test.ts
  • src/shared/agent-launch/startup/claude-chat-entrypoint.test.ts
  • src/renderer/src/components/terminal-pane/pty-transport/remote-runtime/remote-runtime-pty-transport-host-session-launch.test.ts
  • src/renderer/src/lib/pane-manager/terminal-rendering/terminal-arabic-shaping-joiner.test.ts
  • src/renderer/src/diagnostics/memory/renderer-memory-profile.test.ts
  • mobile/src/session/native-chat/composer/mobile-native-chat-file-attachment.test.ts
  • src/renderer/src/web/preload-api/web-artifact-sharing-setting.test.ts
  • src/renderer/src/components/terminal-pane/pty-transport/remote-runtime/remote-runtime-pty-transport-stream-reconnect.test.ts
  • src/renderer/src/store/repos/project-removal-host-twin-state.test.ts
  • config/scripts/ci/sharding/ci-shard-timings.json
  • src/renderer/src/components/terminal-pane/pty-transport/remote-runtime/remote-runtime-pty-transport-input-replay.test.ts
Files not fully reviewed because they exceed a per-file size limit: 1

  • config/reliability-gates.jsonc

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 6 remain after this review.

@OrcaWin
OrcaWin merged commit 59fd2da into main Nov 11, 2026
44 checks passed
AmethystLiang added a commit that referenced this pull request Nov 12, 2026
* test(artifacts): restore publishing permission regression tests

#41012 and #41007 removed the tests that guard #40948 (new profiles allow
artifact publishing, profiles saved before the setting stay off, web clients
fail closed until the host grant is mirrored) and #40982 (moving a project
between profiles must not grant publishing to an older profile). Restore them
against current paths. Each fails when the code it guards is reverted.

* test(artifacts): keep only guards that fail when their fix is reverted

Drop the explicit opt-out and explicit-choice transfer cases: saved values
already win in both paths, so reverting #40948 or #40982 does not fail them.
Name the web test for what it checks: the local fallback, not host mirroring.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant