Skip to content

test: remove 255 low-value tests - #39587

Merged
OrcaWin merged 1 commit into
mainfrom
test/remove-low-value-tests-1947
Nov 7, 2026
Merged

OrcaWin merged 1 commit into
mainfrom
test/remove-low-value-tests-1947

Conversation

@OrcaWin

@OrcaWin OrcaWin commented Nov 7, 2026 •

Copy link
Copy Markdown
Collaborator

ELI5

Remove 255 low-value test definitions, including 21 entire test files, from terminal connection and orchestration suites.

What Changed

Reviewed 583 direct test definitions across 96 files; retain 328 with their callbacks and registrations unchanged. Delete unused test setup, 20 obsolete shard timing entries and one obsolete real-wait baseline row. Update reliability metadata to describe the reduced protection and retire five affected historical results in full.

Why

Removed cases mainly repeat predicates, mirror implementation, or assert mocked wiring. Whole-suite deletion is intentional where the suite offers little regression value. Retained tests exercise stronger observable behavior; they are not claimed as equivalent replacements for every deleted alarm.

Linked Issue

Maintainer-directed comprehensive test audit; no existing issue.

Visual Proof

N/A — test and coverage metadata changes only.

Testing

  • Automated tests updated: 423 focused checks passed across 75 surviving files, zero skips, using prepared dependencies on Linux with background launch and an isolated display. These ran on the previous published parent; exact selected sources and 225 bounded owner inputs were subsequently authenticated at the actual merged parent. This is bounded freshness evidence, not whole-tree execution equivalence.
  • Retained callbacks, registrations, wrappers and live hooks verified against originals; surviving support remains an exact subset.
  • Independent metadata review replayed all 48 operations; 221 surviving dated results remain byte-for-byte unchanged. Five affected results retire whole, without reduced pass claims.
  • All 32 applicable changed checks pass, including typecheck and related unit tests.
  • CI will run the full PR workflow before merge. No macOS, Windows, live provider or rendered-app validation is claimed locally.

Risk

Level: Medium. Deletion intentionally loses individual regression alarms, including the sole snapshot-freshness predicate suite. Its gate is demoted to no protection. Terminal delayed/null retry examples, formatter expectations and mocked orchestration examples also lose direct alarms. Direct old-style delivery INSERT acceptance after repairing a stamped-v34 schema also loses its narrow compatibility alarm; retained migration cases do not cover that exact shape. Retained integration cases do not guarantee equivalent coverage. A plain revert restores tests and metadata; runtime code and saved data are unchanged.

Review

Reviewed each selected definition against its bounded production context. Independent review checks metadata provenance and retained-source identity; it is not a second value audit of all 96 files. Two imported renderer factory definitions remain unchanged and earn no removal credit.

Agent skill upstream boundary

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

Notes

No runtime code changes. Platform, remote, mobile and folder-workspace behavior are unchanged; local validation is Linux only.

Checklist

  • Focused test audit with explicit lost coverage and rollback.
  • Self-reviewed source preservation and coverage records.
  • Cross-platform and remote impact considered.
  • Applicable local checks pass; full CI required before merge.

@coderabbitai

coderabbitai Bot commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

Walkthrough

The pull request removes or reduces test coverage across orchestration databases, federation, mailbox handling, and renderer PTY connections. Federation sync tests add coverage for protocol-3 attachment behavior after a remote capability downgrade. The pull request also updates CI shard timing records and removes one flaky-test baseline entry. The described changes affect tests and test metadata; they do not describe changes to production implementation behavior.

Pre-merge checks: Passed 5

Check name Status Explanation
Title check Passed The title "test: remove 255 low-value tests" describes the main change: the PR deletes 255 test definitions (including 21 whole files) from terminal connection and orchestration suites. It is short, 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 follows the repository template and fills in every section: ELI5, What Changed, Why, Linked Issue, Visual Proof, Testing, Risk, Review, Agent skill upstream boundary, Notes, and Checkl…
Full details: Title check

Explanation

The title "test: remove 255 low-value tests" describes the main change: the PR deletes 255 test definitions (including 21 whole files) from terminal connection and orchestration suites. It is short, specific, and uses a conventional prefix. It does not name the affected areas, but it does not need to cover every detail.

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

Full details: Description check

Explanation

The description follows the repository template and fills in every section: ELI5, What Changed, Why, Linked Issue, Visual Proof, Testing, Risk, Review, Agent skill upstream boundary, Notes, and Checklist. It states the scope (255 test definitions removed across 21 files, plus shard-timing and baseline metadata updates) and gives the reason (the removed tests repeat predicates, mirror implementation, or assert mocked wiring). It also lists the lost coverage, the rollback path (a plain revert restores tests and metadata), and the validation scope (Linux only, CI pending). The Linked Issue section says there is no existing issue and cites a maintainer-directed audit. The template says outside contributors must link an issue, but the author indicates a maintainer-directed change, so this is a minor gap. The AI Disclosure section is blank, which the template allows for stablyai team members. The Testing section has a dense, partly unclear claim about 'bounded freshness evidence' and 'authenticated' inputs, and the Risk level is 'Medium' without an explicit statement of the affected user-facing surface. The description is mostly complete and accurate, so it passes.

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

@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/main/runtime/orchestration/db/schema/orchestration-version-skew-migration.test.ts: 1

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

Keep behavioral coverage for stamped-v34 delivery repair.

The deleted test checked that a legacy delivery insert works after repair. The surviving migration tests do not exercise that delivery shape. Keep a migration-layer test for the legacy write without pinning schema values.

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: 41565423-d27e-474e-8f55-b81e6eddd67a
Commits

Reviewing files that changed from the base of the PR and between 05af4b2 and 4f241fc.

Files selected for processing: 56

  • config/flaky-test-pattern-baseline.txt
  • config/reliability-gates.jsonc
  • config/scripts/ci/sharding/ci-shard-timings.json
  • src/main/runtime/orchestration/db/messages/mailbox-pointer-release-query.test.ts
  • src/main/runtime/orchestration/db/messages/orchestration-delivery-consumption.test.ts
  • src/main/runtime/orchestration/db/messages/orchestration-derived-delivery.test.ts
  • src/main/runtime/orchestration/db/mutation-receipts/mutation-receipt-capacity.test.ts
  • src/main/runtime/orchestration/db/orchestration-db-retention-pagination.test.ts
  • src/main/runtime/orchestration/db/orchestration-db.test.ts
  • src/main/runtime/orchestration/db/questions/orchestration-mutation-question-db.test.ts
  • src/main/runtime/orchestration/db/remaining-dispatch-statement-compilation.test.ts
  • src/main/runtime/orchestration/db/reset/orchestration-reset-db.test.ts
  • src/main/runtime/orchestration/db/runs/orchestration-adopted-run-binding.test.ts
  • src/main/runtime/orchestration/db/runs/orchestration-run-delivery-db.test.ts
  • src/main/runtime/orchestration/db/runs/orchestration-run-list-compatibility.test.ts
  • src/main/runtime/orchestration/db/runs/run-coordinator-orca-session-address.test.ts
  • src/main/runtime/orchestration/db/runs/run-coordinator-orca-session-binding.test.ts
  • src/main/runtime/orchestration/db/schema/derived-delivery-migration.test.ts
  • src/main/runtime/orchestration/db/schema/dispatch-consumer-generation-migration.test.ts
  • src/main/runtime/orchestration/db/schema/dispatch-creator-identity-migration.test.ts
  • src/main/runtime/orchestration/db/schema/federated-home-run-migration.test.ts
  • src/main/runtime/orchestration/db/schema/nested-worker-depth-migration.test.ts
  • src/main/runtime/orchestration/db/schema/orchestration-orca-session-column-migration.test.ts
  • src/main/runtime/orchestration/db/schema/orchestration-version-skew-migration.test.ts
  • src/main/runtime/orchestration/db/schema/r1-identity-migration.test.ts
  • src/main/runtime/orchestration/db/schema/run-coordinator-handle-migration.test.ts
  • src/main/runtime/orchestration/db/schema/settled-question-threads-migration.test.ts
  • src/main/runtime/orchestration/db/tasks/db-stopping-worker-task-guard.test.ts
  • src/main/runtime/orchestration/db/tasks/db-task-create-readiness.test.ts
  • src/main/runtime/orchestration/db/tasks/db-task-promotion-projection.test.ts
  • src/main/runtime/orchestration/db/worker-dispatch/orchestration-worker-dispatch-db.test.ts
  • src/main/runtime/orchestration/db/worker-dispatch/worker-dispatch-assignee-orca-session.test.ts
  • src/main/runtime/orchestration/db/writer-run-required.test.ts
  • src/main/runtime/orchestration/federation/federation-lifecycle-settlement.test.ts
  • src/main/runtime/orchestration/federation/orchestration-federated-legacy-probe.test.ts
  • src/main/runtime/orchestration/federation/synchronization/federation-sync.test.ts
  • src/main/runtime/orchestration/mailbox/formatting/message-formatting.test.ts
  • src/main/runtime/orchestration/mailbox/routing/structured-session-mail-target.test.ts
  • src/main/runtime/orchestration/mailbox/structured-mail/structured-mail-source.test.ts
  • src/main/runtime/orchestration/mailbox/structured-pointer/structured-mailbox-pointer-delivery.test.ts
  • src/main/runtime/orchestration/mailbox/structured-pointer/structured-mailbox-pointer-host.test.ts
  • src/main/runtime/orchestration/mailbox/terminal-pointer/mailbox-pointer-eligibility.test.ts
  • src/main/runtime/orchestration/mailbox/terminal-pointer/mailbox-pointer-stage.test.ts
  • src/main/runtime/orchestration/mailbox/terminal-pointer/mailbox-pointer-submit.test.ts
  • src/renderer/src/components/terminal-pane/pty-connection/input/pty-connection-preconnect-input.test.ts
  • src/renderer/src/components/terminal-pane/pty-connection/lifecycle/exited-split-pane-close.test.ts
  • src/renderer/src/components/terminal-pane/pty-connection/lifecycle/terminal-dead-session-reconcile.test.ts
  • src/renderer/src/components/terminal-pane/pty-connection/output-restore/park-reveal-snapshot-verdict.test.ts
  • src/renderer/src/components/terminal-pane/pty-connection/output-restore/pty-connection-hidden-runtime-snapshot.test.ts
  • src/renderer/src/components/terminal-pane/pty-connection/output/foreground-output-budgets.test.ts
  • src/renderer/src/components/terminal-pane/pty-connection/output/stream-admission.test.ts
  • src/renderer/src/components/terminal-pane/pty-connection/reattach/deferred-session-reattach-live-bookmark.test.ts
  • src/renderer/src/components/terminal-pane/pty-connection/reattach/painted-cold-restore-ack.test.ts
  • src/renderer/src/components/terminal-pane/pty-connection/reattach/pane-pty-layout-binding.test.ts
  • src/renderer/src/components/terminal-pane/pty-connection/reattach/reattach-payload-context.test.ts
  • src/renderer/src/components/terminal-pane/pty-connection/reattach/reattach-result-handler-park-reveal-verdict.test.ts
Files with no reviewable changes: 46

  • src/main/runtime/orchestration/db/worker-dispatch/worker-dispatch-assignee-orca-session.test.ts
  • src/main/runtime/orchestration/db/tasks/db-stopping-worker-task-guard.test.ts
  • config/flaky-test-pattern-baseline.txt
  • src/renderer/src/components/terminal-pane/pty-connection/output-restore/pty-connection-hidden-runtime-snapshot.test.ts
  • src/renderer/src/components/terminal-pane/pty-connection/reattach/reattach-payload-context.test.ts
  • src/main/runtime/orchestration/db/writer-run-required.test.ts
  • src/renderer/src/components/terminal-pane/pty-connection/output-restore/park-reveal-snapshot-verdict.test.ts
  • src/renderer/src/components/terminal-pane/pty-connection/lifecycle/terminal-dead-session-reconcile.test.ts
  • src/main/runtime/orchestration/mailbox/structured-pointer/structured-mailbox-pointer-host.test.ts
  • src/renderer/src/components/terminal-pane/pty-connection/output/foreground-output-budgets.test.ts
  • src/main/runtime/orchestration/db/runs/orchestration-run-list-compatibility.test.ts
  • src/main/runtime/orchestration/db/schema/dispatch-creator-identity-migration.test.ts
  • src/main/runtime/orchestration/db/runs/orchestration-run-delivery-db.test.ts
  • src/main/runtime/orchestration/mailbox/formatting/message-formatting.test.ts
  • src/renderer/src/components/terminal-pane/pty-connection/output/stream-admission.test.ts
  • src/main/runtime/orchestration/mailbox/terminal-pointer/mailbox-pointer-stage.test.ts
  • src/renderer/src/components/terminal-pane/pty-connection/reattach/painted-cold-restore-ack.test.ts
  • src/renderer/src/components/terminal-pane/pty-connection/reattach/reattach-result-handler-park-reveal-verdict.test.ts
  • src/main/runtime/orchestration/db/schema/federated-home-run-migration.test.ts
  • src/main/runtime/orchestration/db/schema/run-coordinator-handle-migration.test.ts
  • src/main/runtime/orchestration/db/schema/settled-question-threads-migration.test.ts
  • src/main/runtime/orchestration/db/schema/dispatch-consumer-generation-migration.test.ts
  • src/main/runtime/orchestration/db/messages/orchestration-derived-delivery.test.ts
  • src/renderer/src/components/terminal-pane/pty-connection/reattach/pane-pty-layout-binding.test.ts
  • src/main/runtime/orchestration/db/messages/mailbox-pointer-release-query.test.ts
  • src/main/runtime/orchestration/db/tasks/db-task-create-readiness.test.ts
  • src/renderer/src/components/terminal-pane/pty-connection/reattach/deferred-session-reattach-live-bookmark.test.ts
  • src/renderer/src/components/terminal-pane/pty-connection/lifecycle/exited-split-pane-close.test.ts
  • src/renderer/src/components/terminal-pane/pty-connection/input/pty-connection-preconnect-input.test.ts
  • src/main/runtime/orchestration/db/schema/derived-delivery-migration.test.ts
  • src/main/runtime/orchestration/db/schema/orchestration-orca-session-column-migration.test.ts
  • src/main/runtime/orchestration/db/schema/r1-identity-migration.test.ts
  • src/main/runtime/orchestration/federation/federation-lifecycle-settlement.test.ts
  • src/main/runtime/orchestration/db/tasks/db-task-promotion-projection.test.ts
  • src/main/runtime/orchestration/db/questions/orchestration-mutation-question-db.test.ts
  • src/main/runtime/orchestration/db/reset/orchestration-reset-db.test.ts
  • src/main/runtime/orchestration/db/messages/orchestration-delivery-consumption.test.ts
  • src/main/runtime/orchestration/db/schema/nested-worker-depth-migration.test.ts
  • src/main/runtime/orchestration/db/worker-dispatch/orchestration-worker-dispatch-db.test.ts
  • src/main/runtime/orchestration/db/runs/run-coordinator-orca-session-binding.test.ts
  • src/main/runtime/orchestration/federation/synchronization/federation-sync.test.ts
  • src/main/runtime/orchestration/db/remaining-dispatch-statement-compilation.test.ts
  • src/main/runtime/orchestration/mailbox/terminal-pointer/mailbox-pointer-submit.test.ts
  • src/main/runtime/orchestration/db/orchestration-db.test.ts
  • config/scripts/ci/sharding/ci-shard-timings.json
  • src/main/runtime/orchestration/db/runs/orchestration-adopted-run-binding.test.ts
Files not fully reviewed because their changes were unavailable: 1

  • config/reliability-gates.jsonc

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

@OrcaWin
OrcaWin merged commit ed67e11 into main Nov 7, 2026
71 of 73 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