Skip to content

test: remove 17 low-value cases and seven suites - #35394

Merged
OrcaWin merged 1 commit into
mainfrom
test-audit-720-low-value-projections
Oct 29, 2026
Merged

OrcaWin merged 1 commit into
mainfrom
test-audit-720-low-value-projections

Conversation

@OrcaWin

@OrcaWin OrcaWin commented Oct 28, 2026 •

Copy link
Copy Markdown
Collaborator
Files Added Deleted Net
Test 9 0 $\color{#cf222e}{\Huge{\mathbf{−}}}$​330 $\color{#cf222e}{\Huge{\mathbf{−}}}$​330
Prod 1 0 $\color{#cf222e}{\Huge{\mathbf{−}}}$​5 $\color{#cf222e}{\Huge{\mathbf{−}}}$​5

Removes 17 test declarations, including seven complete suites, whose assertions repeat labels, gate flags, cache-key formats, projection results, or values supplied by mocks. Deletes 335 lines across nine test files and removes five obsolete shard-timing entries.

Keeps the invalid remote-preview frame table and failed startup-phase timing/error behavior. The audit also retains four unchanged suites covering localized keybinding titles, JSON worker-message encoding, CUDA tokenization, and terminal shortcut routing. Production code is unchanged.

Validation: source review, static declaration enumeration, runner routing, formatting/lint, retained-case identity, and repository reference checks passed. Thirteen sources reviewed; nine authored cases (15 expanded) retained. Full PR CI is required before merge. This draft combines two prepared audit batches.

@OrcaWin
OrcaWin force-pushed the test-audit-720-low-value-projections branch from b2c7f50 to d7c1a04 Compare October 29, 2026 01:16
@OrcaWin OrcaWin changed the title test: remove 15 low-value cases and seven suites test: remove 17 low-value cases and seven suites Oct 29, 2026
@OrcaWin
OrcaWin marked this pull request as ready for review October 29, 2026 01:19
@greptile-apps

greptile-apps Bot commented Oct 29, 2026 •

Copy link
Copy Markdown

RetriggerView in GreptileConfidence Score: 4/5

[Low impact] The change affects automated checks, not Orca's runtime behavior.

The PR appears safe to merge, with non-blocking concerns about removing useful behavior checks.

Summary

Removes 17 test declarations, including seven complete suites, and five obsolete shard-timing entries. Runtime source code is unchanged.

  • Orca's automated checks no longer include several fixed-output test cases.

Reviews (1) · Last reviewed commit: "test: remove 17 low-value cases and seve..." · Reviewed by Greptile

@greptile-apps

greptile-apps Bot commented Oct 29, 2026

Copy link
Copy Markdown

Comments Outside Diff

These findings could not be posted inline.

  • P2 Valid previews lose coverage src/shared/remote-file-preview-address.test.ts:16 ▶

    Removing this case leaves parseRemoteFilePreviewAddress tested only with inputs that must return null. A parser that rejects every valid address would now pass the whole suite. Keep a small success case for both pinned and unpinned addresses; those assertions check acceptance, not just field projection.

    Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!

  • P2 Explicit clears lose coverage src/renderer/src/hooks/ipc-events/agent-status-unavailable.test.ts:43 ▶

    This deletion removes the only renderer test that checks statusUnavailable and programStatusRemoved override the rule that preserves completed rows. Other tests still check ordinary clears, but none sends either flag. Keep these two removal assertions, or move them into the existing listener tests, so a change that leaves stale completed rows does not pass unnoticed.

    Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!

  • P2 Language changes lose coverage src/renderer/src/components/task-page/task-page-localized-options.test.ts:32 ▶

    These tests check labels changing after i18n.changeLanguage, not just fixed label text. Deleting them removes all direct tests of getGitHubModeButtons, getGitHubTaskKindPresets, and getLinearPriorityLabel. The generic createLocalizedCatalog tests would still pass if one of these helpers stopped using that cache. Keep a language-switch check for these catalogs; exact wording can be replaced with assertions that the labels change.

    Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!

  • P2 Warning rules lose coverage src/renderer/src/components/browser-extension-permission-messages.test.ts:31 ▶

    This case checks that two permissions produce one warning and that supported permissions are not listed as unsupported. Those are filtering and duplicate-removal checks, not just repeated labels. No remaining test calls either message helper. Keep these behavior assertions, using counts or shared warning identifiers if exact text is too brittle.

    Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!

@coderabbitai

coderabbitai Bot commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Walkthrough

The pull request removes nine test files or test cases covering application startup timing, browser-extension permissions, localized task options, agent status, ownership and cache identity, runtime-status diagnostics, remote-file preview addresses, and WSL host gates. It also removes five corresponding test-duration records from the CI shard timing data.

Priority: Low

Merge Risk: Low · up to d7c1a

The production parser is unchanged, but its tests no longer protect a valid remote-preview request path. Restore a focused success-path assertion; this is a bounded follow-up rather than a merge blocker.

Pre-merge checks: Passed 4 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Description check Warning The description explains the scope, rationale, retained tests, and validation, but it omits most required template sections, including the linked issue, ELI5, visual proof or N/A, testing checklist, n… Complete the required PR template sections. Add the linked issue, ELI5 explanation, detailed What Changed and Why sections, Visual Proof or N/A with a reason, Testing checklist results, AI disclosure if applicable, Review, boundary status, …
Passed Passed checks: 4 passed
Check name Status Explanation
Title check Passed The title clearly and concisely summarizes the main change: removing 17 low-value test cases and seven test 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.
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 0 files.

Full details: Description check

Explanation

The description explains the scope, rationale, retained tests, and validation, but it omits most required template sections, including the linked issue, ELI5, visual proof or N/A, testing checklist, notes, and checklist confirmations.

Resolution

Complete the required PR template sections. Add the linked issue, ELI5 explanation, detailed What Changed and Why sections, Visual Proof or N/A with a reason, Testing checklist results, AI disclosure if applicable, Review, boundary status, Notes, and Checklist confirmations.

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

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.

Nitpick comments: 1
src/shared/remote-file-preview-address.test.ts: 1

11-20: Trivial · Maintainability & Code Quality · Quick win

Add a parser success-path test for the revision-omitted IPC request.

After this change, no test in src/shared/remote-file-preview-address.test.ts asserts that parseRemoteFilePreviewAddress returns a value. Every case in the surviving it.each block expects null. A regression that rejects every input, or that rejects revision-omitted requests, would still pass this file. The renderer's revision-omitted request reaches this parser before the host-side pinning fallback runs. The media test covers that fallback only after a direct call to grantRemoteFilePreview, so it does not exercise the parser's accept path.

The removed unknown-field assertion covers a separate parser behavior. The parser builds its result from named fields only. A regression that forwards extra properties would not be caught either. One success-path test can cover both behaviors.

Suggested fix
 describe('parseRemoteFilePreviewAddress', () => {
+  it('accepts a revision-omitted address and drops unknown fields', () => {
+    const unpinned: Record<string, unknown> = { ...address }
+    delete unpinned.expectedEnvironmentPairingRevision
+    expect(parseRemoteFilePreviewAddress({ ...unpinned, extra: 'ignored' })).toEqual(unpinned)
+  })
+
   it.each([
     { relativePath: '/etc/a.mp4' },
     { relativePath: 'C:\\a.mp4' },

This is a test-coverage gap, not a production defect. The fix assumes address contains exactly the four parser output fields, which the inspected parser summary supports but the test fixture was not read to confirm.


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: be3d056b-3761-4f11-81dd-6d73d9584102
Commits

Reviewing files that changed from the base of the PR and between 8b9d277 and d7c1a04.

Files selected for processing: 10
  • config/scripts/ci-shard-timings.json
  • src/main/orcad/orcad-startup-timing.test.ts
  • src/renderer/src/components/browser-extension-permission-messages.test.ts
  • src/renderer/src/components/task-page/task-page-localized-options.test.ts
  • src/renderer/src/hooks/ipc-events/agent-status-unavailable.test.ts
  • src/renderer/src/store/slices/github-project-row-owner.test.ts
  • src/renderer/src/store/slices/repo-owner-cache-identity.test.ts
  • src/renderer/src/store/slices/runtime-status-refresh-diagnostics.test.ts
  • src/shared/remote-file-preview-address.test.ts
  • src/shared/wsl-host-internal-gate.test.ts
Files with no reviewable changes: 10
  • src/renderer/src/store/slices/runtime-status-refresh-diagnostics.test.ts
  • src/renderer/src/store/slices/repo-owner-cache-identity.test.ts
  • src/renderer/src/components/task-page/task-page-localized-options.test.ts
  • src/shared/remote-file-preview-address.test.ts
  • src/renderer/src/hooks/ipc-events/agent-status-unavailable.test.ts
  • src/main/orcad/orcad-startup-timing.test.ts
  • src/renderer/src/store/slices/github-project-row-owner.test.ts
  • src/shared/wsl-host-internal-gate.test.ts
  • src/renderer/src/components/browser-extension-permission-messages.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; 0 remain after this review.

@OrcaWin
OrcaWin merged commit 7802d16 into main Oct 29, 2026
61 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