Skip to content

test: remove 153 low-value editor buffer and layout tests - #37595

Merged
OrcaWin merged 1 commit into
mainfrom
codex/remove-low-value-editor-buffer-layout-tests
Nov 2, 2026
Merged

OrcaWin merged 1 commit into
mainfrom
codex/remove-low-value-editor-buffer-layout-tests

Conversation

@OrcaWin

@OrcaWin OrcaWin commented Nov 2, 2026 •

Copy link
Copy Markdown
Collaborator
Files Added Deleted Net
Test 28 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​20 $\color{#cf222e}{\Huge{\mathbf{−}}}$​2929 $\color{#cf222e}{\Huge{\mathbf{−}}}$​2909
Prod 1 0 $\color{#cf222e}{\Huge{\mathbf{−}}}$​8 $\color{#cf222e}{\Huge{\mathbf{−}}}$​8

ELI5

Remove 153 low-value tests, including eight entire suites, to reduce maintenance and CI work.

What Changed

Audit 30 editor, buffer, session and tab-layout test sources: remove 153 authored registrations and retain 108. Delete suites for cursor-line setters, draft setters, standalone session hydration projections, conflict-overview selectors, join decision tables, hydration complexity projections, status-index getter counts and staged-rename field projections. Remove their eight timing entries.

Why

The removed tests repeat narrow variants, assert supplied state/commands or internal identities, duplicate production logic, or stop before a meaningful consumer. Keep tests for draft preservation and rejoin, runtime retirement isolation, cross-workspace edits, actual frame ordering/refusal/reopen and representative layout policy.

Some standalone regression alarms are intentionally lost. Retained tests are not claimed to provide equivalent coverage.

Linked Issue

Internal maintenance requested by a stablyai maintainer. The template exempts maintainers from opening needless issues; no pre-existing issue is linked.

Visual Proof

N/A — test and timing-metadata removals only; no runtime/UI changes.

Testing

  • I manually tested these changes locally
  • Automated test removals explained above

All original sources were read and every registration received a value decision. External static parsing, exact retained registration/callback/setup/scope comparisons, cleanup replay, preserved runtime import edges, formatting and inert lint passed. No local project tests, builds, typechecks, installs or apps were run. CI must run all 12 full unit shards and applicable workflows before merge.

Review

Root reviewed all 30 originals and the final cleanup. Named owner bodies were read; other direct-import snapshots serve as pins, without a dependency-closure claim. Publication must reconcile all source and owner pins against the verified previous merge. Historical execution evidence remains unchanged.

Agent skill upstream boundary

  • Not applicable; no upstream skill source is copied or translated.

Risk

Level: Low. Test coverage decreases intentionally. Reverting this PR restores the removed suites, registrations and timing rows; it does not change production behavior. Retained tests are not equivalent coverage for every removed alarm.

Notes

Production behavior is unchanged across macOS, Linux, Windows, remote, mobile and folder workspaces. Coverage decreases intentionally; revert this PR to restore the removed alarms.

Checklist

  • Focused test cleanup
  • Scope and rationale explained
  • Visual proof marked N/A
  • Self-reviewed
  • Platform and remote impact considered
  • CI passed (required before merge)

@coderabbitai

coderabbitai Bot commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review.

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: b16153d2-f699-4baf-b14e-708d1d96c552
Commits

Reviewing files that changed from the base of the PR and between 1d2e7f6 and 154592e.

Files selected for processing: 29
  • config/scripts/ci-shard-timings.json
  • src/renderer/src/store/slices/editor-markdown-view-state.test.ts
  • src/renderer/src/store/slices/editor-open-diff.test.ts
  • src/renderer/src/store/slices/editor-open-link-placement.test.ts
  • src/renderer/src/store/slices/editor-read-only-tabs.test.ts
  • src/renderer/src/store/slices/editor-recently-closed-tabs.test.ts
  • src/renderer/src/store/slices/editor-rekey-open-files.test.ts
  • src/renderer/src/store/slices/editor-remote-branch-actions.test.ts
  • src/renderer/src/store/slices/editor-right-sidebar-state.test.ts
  • src/renderer/src/store/slices/editor-set-active-file-guard.test.ts
  • src/renderer/src/store/slices/editor-state-worktree-purge-leak.test.ts
  • src/renderer/src/store/slices/editor-tab-host-ownership.test.ts
  • src/renderer/src/store/slices/editor-tab-layout-owner.test.ts
  • src/renderer/src/store/slices/editor-tab-placement.test.ts
  • src/renderer/src/store/slices/editor-tab-shared-project-owner.test.ts
  • src/renderer/src/store/slices/editor/actions/editor-cursor-line.test.ts
  • src/renderer/src/store/slices/editor/actions/editor-draft-state.test.ts
  • src/renderer/src/store/slices/editor/actions/hydrated-editor-session-state.test.ts
  • src/renderer/src/store/slices/editor/buffers/editor-buffer-conflict-overview.test.ts
  • src/renderer/src/store/slices/editor/buffers/editor-buffer-identity.test.ts
  • src/renderer/src/store/slices/editor/buffers/editor-buffer-join.test.ts
  • src/renderer/src/store/slices/editor/buffers/editor-buffer-reconcile-identity.test.ts
  • src/renderer/src/store/slices/editor/buffers/editor-buffer-reconcile-joins.test.ts
  • src/renderer/src/store/slices/editor/buffers/editor-buffer-rejoin.test.ts
  • src/renderer/src/store/slices/editor/buffers/editor-buffer-views.test.ts
  • src/renderer/src/store/slices/editor/file-ids/hydrated-editor-projections.test.ts
  • src/renderer/src/store/slices/editor/git/git-status-reconciliation.perf.test.ts
  • src/renderer/src/store/slices/editor/staged-rename-status-reconciliation.test.ts
  • src/renderer/src/store/slices/editor/tabs/editor-open-adjacent-group.test.ts
Files with no reviewable changes: 18
  • src/renderer/src/store/slices/editor/actions/hydrated-editor-session-state.test.ts
  • src/renderer/src/store/slices/editor/actions/editor-cursor-line.test.ts
  • src/renderer/src/store/slices/editor/buffers/editor-buffer-reconcile-joins.test.ts
  • src/renderer/src/store/slices/editor/git/git-status-reconciliation.perf.test.ts
  • src/renderer/src/store/slices/editor/buffers/editor-buffer-conflict-overview.test.ts
  • src/renderer/src/store/slices/editor/actions/editor-draft-state.test.ts
  • src/renderer/src/store/slices/editor-tab-shared-project-owner.test.ts
  • src/renderer/src/store/slices/editor/staged-rename-status-reconciliation.test.ts
  • src/renderer/src/store/slices/editor/buffers/editor-buffer-reconcile-identity.test.ts
  • src/renderer/src/store/slices/editor-set-active-file-guard.test.ts
  • src/renderer/src/store/slices/editor-read-only-tabs.test.ts
  • src/renderer/src/store/slices/editor/buffers/editor-buffer-join.test.ts
  • src/renderer/src/store/slices/editor-state-worktree-purge-leak.test.ts
  • src/renderer/src/store/slices/editor/file-ids/hydrated-editor-projections.test.ts
  • src/renderer/src/store/slices/editor-open-link-placement.test.ts
  • src/renderer/src/store/slices/editor-right-sidebar-state.test.ts
  • src/renderer/src/store/slices/editor-rekey-open-files.test.ts
  • config/scripts/ci-shard-timings.json

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

Walkthrough

The pull request changes editor-store test coverage across tab opening, ownership, layout, editor state, buffers, and remote and Git workflows. It adds tests for distinct markdown previews across source owners and removes tests for several editor behaviors. It also updates CI test-duration entries. The supplied changes contain no implementation-code changes.

Merge Risk: Minimal · up to 15459

The test coverage reduction is intentional, and no concrete failure has been identified. The change is mergeable after normal checks.

Pre-merge checks: Passed 5
Check name Status Explanation
Title check Passed The title names the main change: removing 153 low-value editor, buffer, and layout tests. The changeset deletes and trims test files under the editor store slices and removes the matching timing entri…
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 follows the required template. It explains the scope, rationale, testing performed, intentional coverage reduction, visual-proof status, risk, rollback, platform impact, and CI status.…
Full details: Title check

Explanation

The title names the main change: removing 153 low-value editor, buffer, and layout tests. The changeset deletes and trims test files under the editor store slices and removes the matching timing entries, so the title matches the changeset. It is specific and does not use vague wording.

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 11 files.

Full details: Description check

Explanation

The description follows the required template. It explains the scope, rationale, testing performed, intentional coverage reduction, visual-proof status, risk, rollback, platform impact, and CI status. No linked issue is provided, but the author identifies this as internal maintainer work, 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

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

CodeRabbit Verify

  • Run CodeRabbit Verify to test the changes in this pull request.

@OrcaWin
OrcaWin merged commit e850589 into main Nov 2, 2026
41 checks passed
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