Skip to content

test: remove 152 low-value renderer store tests - #37608

Merged
OrcaWin merged 1 commit into
mainfrom
codex/remove-low-value-renderer-store-tests-8
Nov 3, 2026
Merged

OrcaWin merged 1 commit into
mainfrom
codex/remove-low-value-renderer-store-tests-8

Conversation

@OrcaWin

@OrcaWin OrcaWin commented Nov 3, 2026 •

Copy link
Copy Markdown
Collaborator

ELI5

Remove 152 low-value tests, including five entire suites, to reduce maintenance and CI work. Retain 91 registrations covering real races, destructive cleanup, recovery and ownership boundaries.

What Changed

Delete fixture-result, forwarding, scalar/reference, counter and notification-copy checks across renderer repository catalogs and runtime-status stores. Remove dead registrars and suite timing/baseline entries. Narrow current reliability-gate assertions and document the specific lost alarms while preserving historical execution evidence.

Why

These tests mostly check implementation details or canned results without exercising their downstream consequences. The removed draft-preservation suite uses a slice fixture without destructive host purge. We deliberately retire those narrow alarms; other tests are not claimed as equivalent replacements.

Linked Issue

Maintainer-requested comprehensive test-value audit; no separate issue.

Visual Proof

N/A — test and metadata removals only; no application UI changes.

Testing

  • Manually tested locally (local project execution intentionally omitted).
  • Automated tests updated: 152 authored registrations removed, 91 retained; parameterized registrations count once.
  • External parsing/formatting and retained registration/callback/scope hash verification passed.
  • Inert lint passed for changed surviving suites and the registrar caller.
  • Metadata references and historical evidence checked; all source/owner/change originals reconciled against the verified base.
  • Current-head GitHub CI: all 12 full unit shards, aggregate, static/typecheck, relay integration, headless server and test-LoC passed.

CI ran merge 8cee6ee over 7a038070. Main subsequently advanced; an independent proposed-tree check preserves its 15 timing-path relocations and the exact reviewed removal patch. That newer combined tree has not run this CI. The public squash will be checked independently against its actual parent.

AI Disclosure

Prepared with Codex.

Review

Root read all 30 original sources and every per-case advisory reason. Independent read provenance is recorded per component. Kept held-response races, actual host purge and persistence consumers, measured publication/work bounds, compatibility-cache recovery, outage retry coalescing and host-collision activation. Retained test bodies and setup scopes are unchanged. Reviewed the suggestion to restore a direct local-fallback assertion after runtime purge; intentionally accept that narrow lost alarm. The retained writer case proves the retired runtime stops receiving writes, without proving every other destination is local. CodeRabbit reported an unrelated PHP ast-grep rule configuration failure; no complete external-tool execution or formal approval claim.

Agent skill upstream boundary

  • Not applicable; no upstream skill-installer material changed.

Risk

Level: Low

Risk: exact removed scalar, routing, field, reference, counter and feedback alarms are lost. Loss notes narrow current gate claims; historical commands/counts/results stay intact. Cross-platform, independent client/server versions, SSH/remote, mobile and folder-workspace coverage losses were considered; no new live-host/platform evidence is claimed. Rollback: revert this test-only commit.

Checklist

  • Focused test-value cleanup batched to reduce CI cycles.
  • Explained what changed and why.
  • Visual proof N/A with reason.
  • Self-reviewed for correctness, security and performance.
  • Cross-platform, remote/SSH and folder-workspace impact considered.
  • Applicable current-head CI checks pass; no local project tests, typechecks or builds run.

@OrcaWin
OrcaWin marked this pull request as ready for review November 3, 2026 01:29
@coderabbitai

coderabbitai Bot commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Walkthrough

The pull request removes renderer tests and test registrations across repository, restored-editor-owner, and runtime areas. It also updates reliability-gate notes, the flaky-test baseline, and CI shard timing data. The supplied summaries describe test and audit-data changes, not runtime implementation changes.

Merge Risk: Low · up to 1517b

This PR removes low-value renderer tests and does not change runtime behavior. One retained test should assert local routing after a host purge, so a misrouted session write would not pass unnoticed. Merging is low risk, and the assertion fix is small.

Pre-merge checks: Passed 5
Check name Status Explanation
Title check Passed The title "test: remove 152 low-value renderer store tests" matches the main change. The changeset deletes two spec files and removes many test cases across renderer store slice tests, which the raw s…
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 follows the required structure. It explains the scope, rationale, testing, risk, rollback plan, AI use, and the absence of UI changes. It also documents that local proj…
Full details: Title check

Explanation

The title "test: remove 152 low-value renderer store tests" matches the main change. The changeset deletes two spec files and removes many test cases across renderer store slice tests, which the raw summary and PR objectives both describe. The title is specific and concise, and it uses the conventional commit prefix. The 152 count comes from the author's PR description and is not checked against the diff.

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 5 files. (1 skipped: 1 unsupported.)

Full details: Description check

Explanation

The description is complete and follows the required structure. It explains the scope, rationale, testing, risk, rollback plan, AI use, and the absence of UI changes. It also documents that local project tests were not run and identifies the CI evidence and remaining validation requirement. The linked-issue section has no issue number, but the author identifies this as a maintainer-requested audit, 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

Some tools did not complete. Review the errors below.

ast-grep (0.51.1)

ast-grep could not parse rule config: /ast-grep-rules/ast-grep-essentials/rules/php/security/curl-certificate-verification.yml

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.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nitpick comments: 1
src/renderer/src/store/slices/runtime-host-purge-session-partition-split.test.ts: 1

42-42: Trivial · Data Integrity & Integration · Quick win

Keep a direct check that purged worktrees route to local.

The retained test rejects writes only to RUNTIME_A. It still passes if the post-purge write routes to another non-local host, such as a second runtime partition. The removed buildHostIdByWorktreeId assertion was the only test of that routing in src.

Assert the post-purge call count and that the local write omits the host ID:

Suggested assertion
     const runtimeWritesAfter = api.patch.mock.calls.filter(([, hostId]) => hostId === RUNTIME_A)
     expect(runtimeWritesAfter).toHaveLength(0)
-    expect(api.patch).toHaveBeenCalled()
+    expect(api.patch.mock.calls).toHaveLength(1)
+    expect(api.patch.mock.calls[0]?.[1]).toBeUndefined()

patchWorkspaceSessionByHost calls api.patch(local) first, with no host argument. Any non-local write adds a second call with a host ID, so the length check fails on a misroute.

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: 1e3afcde-70f2-4e0c-8ae9-389b8ec29637
Commits

Reviewing files that changed from the base of the PR and between 7a03807 and 1517b07.

Files selected for processing: 30
  • config/flaky-test-pattern-baseline.txt
  • config/reliability-gates.jsonc
  • config/scripts/ci-shard-timings.json
  • src/renderer/src/store/slices/repos-catalog-reconciliation.test.ts
  • src/renderer/src/store/slices/repos-refresh-identity.spec.ts
  • src/renderer/src/store/slices/repos-remove-missing-remote-project.test.ts
  • src/renderer/src/store/slices/repos-runtime-visibility-defaults.spec.ts
  • src/renderer/src/store/slices/repos-selected-owner-routing.test.ts
  • src/renderer/src/store/slices/repos-shared-project-badge-color.spec.ts
  • src/renderer/src/store/slices/repos-ssh-host-reconciliation.test.ts
  • src/renderer/src/store/slices/repos-update-serialization.spec.ts
  • src/renderer/src/store/slices/repos.runtime-fallback.test.ts
  • src/renderer/src/store/slices/repos.test.ts
  • src/renderer/src/store/slices/restored-editor-owner-layout-owner.test.ts
  • src/renderer/src/store/slices/restored-editor-owner-reparent.test.ts
  • src/renderer/src/store/slices/runtime-catalog-merge-removed-env-guard.test.ts
  • src/renderer/src/store/slices/runtime-detected-agents-pairing.test.ts
  • src/renderer/src/store/slices/runtime-detected-agents.test.ts
  • src/renderer/src/store/slices/runtime-environment-peer-replacement.test.ts
  • src/renderer/src/store/slices/runtime-environment-ssh.test.ts
  • src/renderer/src/store/slices/runtime-host-purge-session-partition-split.test.ts
  • src/renderer/src/store/slices/runtime-pane-title-sort-epoch.test.ts
  • src/renderer/src/store/slices/runtime-status-catalog-identity.test.ts
  • src/renderer/src/store/slices/runtime-status-first-publication.test.ts
  • src/renderer/src/store/slices/runtime-status-reconnect-connection-generation.test.ts
  • src/renderer/src/store/slices/runtime-status-skill-cache-eviction.test.ts
  • src/renderer/src/store/slices/runtime-status-snapshot.test.ts
  • src/renderer/src/store/slices/runtime-status.test.ts
  • src/renderer/src/store/slices/runtime-switch-settings-persistence.test.ts
  • src/renderer/src/store/slices/selected-host-active-workspace-identity.test.ts
Files with no reviewable changes: 24
  • src/renderer/src/store/slices/runtime-environment-ssh.test.ts
  • config/flaky-test-pattern-baseline.txt
  • src/renderer/src/store/slices/runtime-status-catalog-identity.test.ts
  • src/renderer/src/store/slices/repos.runtime-fallback.test.ts
  • src/renderer/src/store/slices/runtime-status-snapshot.test.ts
  • src/renderer/src/store/slices/runtime-status-first-publication.test.ts
  • src/renderer/src/store/slices/runtime-status-reconnect-connection-generation.test.ts
  • src/renderer/src/store/slices/restored-editor-owner-layout-owner.test.ts
  • src/renderer/src/store/slices/repos-update-serialization.spec.ts
  • src/renderer/src/store/slices/runtime-catalog-merge-removed-env-guard.test.ts
  • src/renderer/src/store/slices/runtime-detected-agents-pairing.test.ts
  • src/renderer/src/store/slices/runtime-status-skill-cache-eviction.test.ts
  • src/renderer/src/store/slices/runtime-detected-agents.test.ts
  • src/renderer/src/store/slices/selected-host-active-workspace-identity.test.ts
  • src/renderer/src/store/slices/repos-refresh-identity.spec.ts
  • src/renderer/src/store/slices/repos-ssh-host-reconciliation.test.ts
  • src/renderer/src/store/slices/repos-shared-project-badge-color.spec.ts
  • src/renderer/src/store/slices/runtime-pane-title-sort-epoch.test.ts
  • src/renderer/src/store/slices/repos-runtime-visibility-defaults.spec.ts
  • src/renderer/src/store/slices/repos-catalog-reconciliation.test.ts
  • src/renderer/src/store/slices/repos-remove-missing-remote-project.test.ts
  • config/scripts/ci-shard-timings.json
  • src/renderer/src/store/slices/repos-selected-owner-routing.test.ts
  • src/renderer/src/store/slices/runtime-environment-peer-replacement.test.ts

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 900146b into main Nov 3, 2026
68 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