Skip to content

ci: trim redundant tests and consolidate suite startup - #29156

Merged
nwparker merged 2 commits into
mainfrom
nwparker/ci-unit-value-batch
Oct 15, 2026
Merged

nwparker merged 2 commits into
mainfrom
nwparker/ci-unit-value-batch

Conversation

@nwparker

@nwparker nwparker commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 96 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​3859 $\color{#cf222e}{\Huge{\mathbf{−}}}$​5022 $\color{#cf222e}{\Huge{\mathbf{−}}}$​1163
Prod 2 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​1 $\color{#cf222e}{\Huge{\mathbf{−}}}$​2 $\color{#cf222e}{\Huge{\mathbf{−}}}$​1

ELI5

CI repeatedly starts the same test machinery for small related files. This combines related suites, trims redundant assertions, and keeps the checks that exercise Orca behavior.

What Changed

  • Remove 51 test entry points through domain-specific consolidation. Moved startup suites retain their original bodies in imported sibling files.
  • Remove 52 redundant cases, including six Windows-only checks of Node/OS behavior that import no Orca code. Retain the meaningful application checks in their surrounding suites.
  • Reuse the existing lightweight RPC fixture, load journal-opening support only when used, reduce an oversized rendering fixture, and replace 60,000 jitter assertions with equivalent bounds over the same samples.

Application behavior, CI workers, jobs, and test selection policy are unchanged.

Why

This removes repeated setup and assertions directly. Broader cache and worker-policy changes have greater isolation risks. A separate mobile bundle-sharing experiment passed all browser tests but showed no reliable lane speedup, so it is excluded.

Linked Issue

Maintainer-requested CI capacity work; no separate issue.

Visual Proof

N/A — test organization and fixtures only; no product UI or interaction change.

Testing

  • I manually tested these changes locally
  • Automated tests added/updated, or explained why not below

macOS: normal Bun/Node routing with four fixed workers, including all direct journal-support consumers, relevant siblings, the reliability-manifest checker and Windows registration contract. The corrected final pair passed 3,171 candidate cases across 272 files versus 3,217 baseline passes across 323 files. Candidate: one skipped and five todo; baseline: seven skipped and five todo. The reviewed ledger accounts for all 52 net removals and 556 moved cases.

Local wall timings are mixed. The corrected final pair took 83.57 seconds versus 82.28 baseline; earlier successful pairs ranged from an apparent gain to a regression. No reliable focused wall-time gain is established. Hosted verification is complete; the exact corrected source passed all 12,213 expected test files. Five unit jobs used 2,931 runner-seconds versus 3,018 in the prior observed run. Separate runs differ; this is not a causal speedup claim.

All four CI typecheck projects passed before the title/reference fixes. The corrected source passes the full native-plugin check (using the repository's local mobile import-cycle allowance), changed-code quality gate, formatting, all 146 reliability gates, and 55 manifest/Windows-registration contract cases. Independent review verified all seven IPC suite bodies are unchanged apart from distinct names, and all historical evidence commands are preserved.

The exact corrected head, 5560ab0, passed the full PR workflow, all 39 paginated current checks, and independent source/artifact/log qualification with zero findings. The tested synthetic tree equals the PR tree; all 12,213 test files and reviewed case changes reconcile. The first head failed the duplicate-title guard and was corrected before this run.

AI Disclosure

Review

Independent domain reviews checked the moved assertions, mock/hook isolation, deleted-case coverage, platform handling, and journal fixture consumers. An exact case ledger accounts for deletions, additions/renames, and moves.

Agent skill upstream boundary

  • Not applicable, or this change copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.

Notes

No runtime platform, SSH, folder-workspace, wire-protocol, or provider behavior changes. Windows application tests remain; only the six OS-only checks are deleted.

Checklist

  • This PR is small and focused
  • I explained what changed and why (ELI5, the user-facing before/after, the mechanism, and why over the alternatives)
  • Before/after screenshots or videos attached for UI changes, or N/A with reason
  • Self-reviewed for correctness, security, and performance
  • Cross-platform, SSH/remote, and path/shortcut impact considered (or N/A)
  • pnpm lint, pnpm typecheck, pnpm test, and pnpm build pass (or CI will cover; local preferred)

@coderabbitai

coderabbitai Bot commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 73fbfa55-2f3d-4164-8297-5c68d37deb2b
📥 Commits

Reviewing files that changed from the base of the PR and between e16b58b and 5560ab0.

📒 Files selected for processing: 9
  • config/reliability-gates.jsonc
  • config/scripts/win32-test-lane-registration.test.mjs
  • src/main/ipc/pty-controller-ownership-routing.test.ts
  • src/main/ipc/pty-daemon-controller-teardown.test.ts
  • src/main/ipc/pty-output-batching-drain.test.ts
  • src/main/ipc/pty-pending-output-cap.test.ts
  • src/main/ipc/pty-renderer-inflight-credit.test.ts
  • src/main/ipc/pty-renderer-lifecycle-delivery-reset.test.ts
  • src/main/ipc/pty-spawn-cwd-fallback.test.ts
💤 Files with no reviewable changes: 1
  • config/scripts/win32-test-lane-registration.test.mjs
🚧 Files skipped from review as they are similar to previous changes: 7
  • src/main/ipc/pty-controller-ownership-routing.test.ts
  • src/main/ipc/pty-pending-output-cap.test.ts
  • src/main/ipc/pty-renderer-lifecycle-delivery-reset.test.ts
  • src/main/ipc/pty-output-batching-drain.test.ts
  • src/main/ipc/pty-renderer-inflight-credit.test.ts
  • src/main/ipc/pty-spawn-cwd-fallback.test.ts
  • src/main/ipc/pty-daemon-controller-teardown.test.ts

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

📝 Walkthrough

The pull request reorganizes and expands tests across tooling, PTY handling, persistence, orchestration, RPC, renderer components, store state, and agent startup planning. It consolidates related assertions into existing test files, separates agent startup tests into dedicated spec files, and removes or narrows other test coverage. No production behavior changes are described in the supplied summaries.

Priority: ⬇️ Low

Merge Risk: 🔵 Low · up to 5560a

The CLI tests can pass after an unsuccessful process launch; add an explicit successful-exit assertion as a bounded follow-up.

Pre-merge checks: Passed 4 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 17 functions across 40 files. (1 skipped: … Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed Passed checks: 4 passed
Check name Status Explanation
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.
Title check Passed The title clearly and concisely describes the main changes: reducing redundant tests and consolidating test-suite startup.
Description check Passed The description includes the required sections and gives clear details about the consolidation, removed cases, rationale, testing, review, platform impact, and lack of UI changes. The linked issue fie…
Full details: Docstring Coverage

Explanation

Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 17 functions across 40 files. (1 skipped: 1 unsupported.)

  • Fix all pre-merge checks with AI
✨ Finishing Touches: 💡 1
📝 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

Comment @coderabbitai help to get the list of available commands.

@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.

Actionable comments posted: 1


ℹ️ Review info
⚙️ Run configuration
  • Configuration used: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: a33efca8-e150-4f23-8774-7f0ca2e4a457
📥 Commits

Reviewing files that changed from the base of the PR and between e8c7b32 and e16b58b.

📒 Files selected for processing: 98
  • config/scripts/mobile-web-app-module-closure-entrypoints.test.mjs
  • config/scripts/mobile-web-app-module-entry-resolution.test.mjs
  • config/scripts/oxc-cli-invocation.test.mjs
  • config/scripts/oxlint-cli-invocation.test.mjs
  • config/scripts/renderer-boot-graph.test.mjs
  • config/scripts/vitest-sqlite-database-runtime-files.mjs
  • src/main/ipc/pty-controller-owner-recovery.test.ts
  • src/main/ipc/pty-controller-ownership-routing.test.ts
  • src/main/ipc/pty-cumulative-ack-accounting.test.ts
  • src/main/ipc/pty-daemon-controller-teardown.test.ts
  • src/main/ipc/pty-daemon-ssh-lease-lifecycle.test.ts
  • src/main/ipc/pty-encoding.test.ts
  • src/main/ipc/pty-ipc-producer-flow-control.test.ts
  • src/main/ipc/pty-output-batching-drain.test.ts
  • src/main/ipc/pty-output-drain-rounds.test.ts
  • src/main/ipc/pty-pending-output-cap.test.ts
  • src/main/ipc/pty-renderer-inflight-credit.test.ts
  • src/main/ipc/pty-renderer-lifecycle-delivery-reset.test.ts
  • src/main/ipc/pty-renderer-send-failure-recovery.test.ts
  • src/main/ipc/pty-spawn-cwd-fallback.test.ts
  • src/main/ipc/pty-wsl-cwd-validation.test.ts
  • src/main/native-chat/agent-session-journal/journal-host-database-test-support.ts
  • src/main/persistence/applying-settings/settings-update-machine-name.test.ts
  • src/main/persistence/applying-settings/settings-update-normalization.test.ts
  • src/main/persistence/applying-settings/settings-update-terminal-contrast.test.ts
  • src/main/persistence/applying-settings/settings-update-terminal-default-shell.test.ts
  • src/main/persistence/profile-state/profile-state-recovery-crash-boundaries.test.ts
  • src/main/runtime/orca-runtime-structured-status-sink-wiring.test.ts
  • src/main/runtime/orca-runtime-terminal-close-records.test.ts
  • src/main/runtime/orchestration/coordinator-stale-base-flag.test.ts
  • src/main/runtime/orchestration/db.test.ts
  • src/main/runtime/orchestration/db/decision-gate-lifecycle.test.ts
  • src/main/runtime/orchestration/db/run-list-cursor.test.ts
  • src/main/runtime/orchestration/orchestration-db-retention-pagination.test.ts
  • src/main/runtime/orchestration/preamble.test.ts
  • src/main/runtime/push/push-agent-state.test.ts
  • src/main/runtime/push/push-dispatcher.test.ts
  • src/main/runtime/relay/relay-renewal-jitter.test.ts
  • src/main/runtime/rpc/methods/diagnostics.test.ts
  • src/main/runtime/rpc/methods/structured-agent-session-visual.test.ts
  • src/main/runtime/rpc/methods/terminal/terminal-inspect-process-params.test.ts
  • src/main/runtime/rpc/methods/worktree-create-args.test.ts
  • src/main/runtime/rpc/methods/worktree-create-setup-choice.test.ts
  • src/main/runtime/runtime-reference-integration.test.ts
  • src/main/runtime/runtime-rpc-browser-host-admission.test.ts
  • src/main/runtime/runtime-rpc-metadata-lifecycle.test.ts
  • src/main/runtime/runtime-rpc-pairing-offer.test.ts
  • src/main/runtime/runtime-rpc-relay-pairing.test.ts
  • src/main/runtime/runtime-rpc-relay-provider-install.test.ts
  • src/main/runtime/runtime-rpc-websocket-fallback-port.test.ts
  • src/main/runtime/session-tabs-inventory-publication.test.ts
  • src/main/runtime/workspaces/workspace-query-prototype.test.ts
  • src/renderer/src/components/contextual-tours/ContextualTourOverlay.test.tsx
  • src/renderer/src/components/contextual-tours/ContextualTourOverlaySurface.localization.test.tsx
  • src/renderer/src/components/native-chat/NativeChatCodeBlock.test.tsx
  • src/renderer/src/components/native-chat/NativeChatMessageList.tool-stream-cost.test.tsx
  • src/renderer/src/components/native-chat/NativeChatMessageList.turn-status.test.tsx
  • src/renderer/src/components/native-chat/NativeChatTurnActivityLine.test.tsx
  • src/renderer/src/components/right-sidebar/FileExplorerFilesTreePane.errors.test.tsx
  • src/renderer/src/components/right-sidebar/FileExplorerRow.load-error.test.tsx
  • src/renderer/src/components/settings/AccountsPane.test.tsx
  • src/renderer/src/components/settings/GitPane.test.ts
  • src/renderer/src/components/settings/GitPane.test.tsx
  • src/renderer/src/components/settings/accounts-pane-claude-section.test.tsx
  • src/renderer/src/components/sidebar/CommentMarkdown.github-callout.test.tsx
  • src/renderer/src/components/sidebar/CommentMarkdown.jira-links.test.tsx
  • src/renderer/src/components/sidebar/CommentMarkdown.test.tsx
  • src/renderer/src/store/slices/agent-status-cursor-checkpoint.test.ts
  • src/renderer/src/store/slices/agent-status-main-agent-fact.test.ts
  • src/renderer/src/store/slices/agent-status-provider-session.test.ts
  • src/renderer/src/store/slices/agent-status-quit-capture-resumable-agents.test.ts
  • src/renderer/src/store/slices/agent-status-remember-sleeping-session.test.ts
  • src/renderer/src/store/slices/agent-status-reminted-pane-key.test.ts
  • src/renderer/src/store/slices/agent-status-session-boundary-done.test.ts
  • src/renderer/src/store/slices/agent-status-turn-started-at.test.ts
  • src/renderer/src/store/slices/terminal-startup-command-retention.test.ts
  • src/renderer/src/store/slices/terminal-tab-recovery-remount.test.ts
  • src/shared/agent-resume-argv-drop.spec.ts
  • src/shared/agent-resume-launch-command.spec.ts
  • src/shared/agent-startup-plan-inputs-extra-agent-args.spec.ts
  • src/shared/agent-startup-plan-inputs.spec.ts
  • src/shared/automation-extra-agent-args.spec.ts
  • src/shared/dsh-startup.spec.ts
  • src/shared/freebuff-launch.spec.ts
  • src/shared/freebuff-startup.spec.ts
  • src/shared/omp-fresh-launch.spec.ts
  • src/shared/opencode-startup-prompt.spec.ts
  • src/shared/opencode2-resume-launch-mode.spec.ts
  • src/shared/qoder-cn-launch-recipe.spec.ts
  • src/shared/tui-agent-fork-startup.spec.ts
  • src/shared/tui-agent-launch-defaults.spec.ts
  • src/shared/tui-agent-prompt-transport.spec.ts
  • src/shared/tui-agent-startup-copilot-resume.spec.ts
  • src/shared/tui-agent-startup-hermes.spec.ts
  • src/shared/tui-agent-startup-session-options.spec.ts
  • src/shared/tui-agent-startup-shell.spec.ts
  • src/shared/tui-agent-startup.spec.ts
  • src/shared/tui-agent-startup.test.ts
💤 Files with no reviewable changes: 39
  • src/renderer/src/store/slices/agent-status-session-boundary-done.test.ts
  • src/main/runtime/rpc/methods/worktree-create-setup-choice.test.ts
  • src/renderer/src/components/sidebar/CommentMarkdown.github-callout.test.tsx
  • src/renderer/src/components/settings/accounts-pane-claude-section.test.tsx
  • src/main/ipc/pty-renderer-send-failure-recovery.test.ts
  • src/main/runtime/orchestration/coordinator-stale-base-flag.test.ts
  • src/renderer/src/store/slices/terminal-startup-command-retention.test.ts
  • src/main/runtime/workspaces/workspace-query-prototype.test.ts
  • config/scripts/vitest-sqlite-database-runtime-files.mjs
  • src/main/runtime/orchestration/db/run-list-cursor.test.ts
  • src/renderer/src/store/slices/agent-status-remember-sleeping-session.test.ts
  • src/renderer/src/store/slices/agent-status-turn-started-at.test.ts
  • src/main/runtime/rpc/methods/structured-agent-session-visual.test.ts
  • src/main/ipc/pty-encoding.test.ts
  • src/renderer/src/components/native-chat/NativeChatTurnActivityLine.test.tsx
  • src/main/runtime/orchestration/db/decision-gate-lifecycle.test.ts
  • src/main/persistence/applying-settings/settings-update-terminal-default-shell.test.ts
  • src/renderer/src/components/right-sidebar/FileExplorerRow.load-error.test.tsx
  • src/main/persistence/profile-state/profile-state-recovery-crash-boundaries.test.ts
  • src/main/ipc/pty-wsl-cwd-validation.test.ts
  • src/main/runtime/push/push-agent-state.test.ts
  • src/main/persistence/applying-settings/settings-update-machine-name.test.ts
  • src/main/ipc/pty-cumulative-ack-accounting.test.ts
  • src/main/ipc/pty-ipc-producer-flow-control.test.ts
  • src/main/ipc/pty-output-drain-rounds.test.ts
  • src/main/runtime/rpc/methods/diagnostics.test.ts
  • src/renderer/src/components/settings/GitPane.test.tsx
  • src/renderer/src/components/sidebar/CommentMarkdown.jira-links.test.tsx
  • src/main/persistence/applying-settings/settings-update-terminal-contrast.test.ts
  • src/renderer/src/store/slices/agent-status-reminted-pane-key.test.ts
  • src/renderer/src/components/contextual-tours/ContextualTourOverlaySurface.localization.test.tsx
  • src/main/ipc/pty-controller-owner-recovery.test.ts
  • config/scripts/mobile-web-app-module-entry-resolution.test.mjs
  • src/main/ipc/pty-daemon-ssh-lease-lifecycle.test.ts
  • src/renderer/src/store/slices/agent-status-quit-capture-resumable-agents.test.ts
  • src/main/runtime/orca-runtime-structured-status-sink-wiring.test.ts
  • config/scripts/oxlint-cli-invocation.test.mjs
  • config/scripts/renderer-boot-graph.test.mjs
  • src/renderer/src/store/slices/agent-status-cursor-checkpoint.test.ts

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

@nwparker
nwparker merged commit 7a47f46 into main Oct 15, 2026
39 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