You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Remove 83 low-value authored test registrations: delete 30 whole suites and trim four others. The removed cases check copied inventories, private selectors, supplied status receipts, mock wiring, and command strings without exercising the claimed operation.
The audit reviewed 70 complete test sources (161 authored registrations), retaining 78 registrations covering real filesystem and process behavior, parsing, persistence, cancellation, protocol compatibility, work budgets, and destructive-action admission. Retained registration ASTs are unchanged. Counts exclude parameterized runtime expansion. The deleted tests’ direct alarms are intentionally removed; remaining tests are not claimed as equivalent replacements.
Remove 28 obsolete shard-timing rows. Historical validation records and recorded diff fixtures remain intact. No application code changes.
Validation: all original source pins, registration hashes, retained ASTs, syntax, and diff whitespace checks pass. All 154 reliability gates and the path-literal ratchet pass locally. The four partially changed test files are also run locally. Full PR CI must pass before merge.
The pull request removes test files and selected test cases across application areas. It also removes corresponding CI timing records and reorders several WSL host-lifecycle timing records. The values of the reordered records remain unchanged.
Merge Risk: Low · up to 36562
The cleanup is mergeable with owner awareness, but the focused tests should be restored to preserve protection for these reachable behaviors.
Pre-merge checks: 4 · 1
Failed checks: 1 warning
Check name
Status
Explanation
Resolution
Description check
The description explains the test removals, timing-row cleanup, rationale, scope, and validation. However, it omits most required template sections, including ELI5, Linked Issue, Visual Proof, Risk, R…
Rewrite the description using the repository template. Add the required headings and content, including an issue link or applicable maintainer exception, visual proof or N/A with a reason, testing details and platform coverage, risk and rol…
Passed checks: 4 passed
Check name
Status
Explanation
Title check
The title clearly identifies the main change: removing 83 low-value test checks across 30 suites. It is concise and related to the changeset.
Docstring Coverage
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
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
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 1 files.
Full details: Description check
Explanation
The description explains the test removals, timing-row cleanup, rationale, scope, and validation. However, it omits most required template sections, including ELI5, Linked Issue, Visual Proof, Risk, Review, Notes, and Checklist details.
Resolution
Rewrite the description using the repository template. Add the required headings and content, including an issue link or applicable maintainer exception, visual proof or N/A with a reason, testing details and platform coverage, risk and rollback information, review notes, checklist status, and the remaining required sections.
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.
The current guard rejects before emitting a line. Restore a test that aborts the signal before scanning empty content. This test detects removal of the initial guard, which the retained event-loop cancellation tests do not detect.
Suggested fix
describe('remote session content lines', () => {
+ it('rejects an already cancelled scan even for empty content', async () => {+ const controller = new AbortController()+ controller.abort()+ await expect(collect('', controller.signal)).rejects.toThrow()+ })+
it.each(['\n'.repeat(400), `${'x'.repeat(300_000)}\nlast`])(
Restore the non-Settings view assertion for leaveSettingsForWslMoveReload.
leaveSettingsForWslMoveReload changes activeView only when the current view is 'settings'. The remaining case covers only that branch. A regression that sets 'terminal' for every view would pass the suite. The removed keeps any other view the reload started from case is the only test in src/main/ipc/ that would fail for that regression. The production caller in wsl-move-driver-wiring.ts uses this helper as the reload landing, so a reload started from another view can land on the wrong view without a failing test.
Suggested fix
expect(relaunched.getUI().activeView).toBe('terminal')
})
++ it('keeps any other view the reload started from', async () => {+ const store = await openStore()+ store.updateUI({ activeView: 'tasks' })++ leaveSettingsForWslMoveReload(store)++ expect(store.getUI().activeView).toBe('tasks')+ })
})
The deleted tests were the only inspected tests that called createSkillInstallAuthority().resolveWorktree and asserted lookup-error propagation, mismatched-ID handling, and folder-key rejection. The surviving install tests use stub authorities, so regressions in these reachable branches can pass the test suite.
Restore src/main/runtime/runtime-skill-install-authority.test.ts or add equivalent direct tests.
Restore direct assertions for the local-CLI RPC wrapper.
The retained tests do not exercise pluginRuntimeRpc result forwarding, parameter forwarding, or PluginRuntimeRpcError conversion. The binding tests use a stub delegate, and the dispatcher test does not call this wrapper. Restore focused direct assertions for the success and unknown-method cases. No production change is required.
Restore the focused short-RPC classification coverage.
The deleted tests are the only focused assertions that unprompted launches, existing worktree targets, and terminal.send with agentPrompt: false remain classified as null. Restore these assertions to protect the admission and keepalive boundary.
Restore direct coverage for the Copilot retry guards.
The helper remains reachable from failed Copilot requests. The surviving branch-name test covers only the matching rejection and the resulting retry. It does not detect regressions in the guards for missing or invalid failure output, stdout content, a missing model, or malformed and mismatched rejection text.
Suggested fix
diff --git a/src/main/text-generation/copilot-unavailable-model-retry.test.ts b/src/main/text-generation/copilot-unavailable-model-retry.test.ts
new file mode 100644
--- /dev/null+++ b/src/main/text-generation/copilot-unavailable-model-retry.test.ts
@@
+import { describe, expect, it } from 'vitest'+import type { CommitMessagePlan } from '../../shared/commit-message-plan'+import { copilotUnavailableModelRetryPlan } from './copilot-unavailable-model-retry'++const rejection = 'Error: Model "gpt-5.4" from --model flag is not available.\n'+const plan: CommitMessagePlan = {+ binary: 'copilot',+ args: ['--prompt', rejection, '--silent', '--model', 'gpt-5.4', '--effort', 'low'],+ stdinPayload: null,+ label: 'GitHub Copilot'+}++function failure(overrides: { exitCode?: number | null; stdout?: string; stderr?: string }) {+ return { label: 'GitHub Copilot', exitCode: 1, stdout: '', stderr: rejection, ...overrides }+}++describe('copilotUnavailableModelRetryPlan', () => {+ it('removes the rejected model and its effort level', () => {+ expect(copilotUnavailableModelRetryPlan(plan, failure({}))?.args).toEqual([+ '--prompt',+ rejection,+ '--silent'+ ])+ })++ it.each([+ ['no failure output', undefined],+ ['exit code 0', failure({ exitCode: 0 })],+ ['unknown exit code', failure({ exitCode: null })],+ ['model output', failure({ stdout: 'fix-login\n' })],+ ['quoted rejection', failure({ stderr: `agent said: ${rejection}` })],+ ['another model rejection', failure({ stderr: 'Error: Model "gpt-5.5" from --model flag is not available.\n' })]+ ])('does not retry with %s', (_name, output) => {+ expect(copilotUnavailableModelRetryPlan(plan, output)).toBeNull()+ })++ it('does not retry when the plan has no model', () => {+ expect(copilotUnavailableModelRetryPlan({ ...plan, args: plan.args.slice(0, 3) }, failure({}))).toBeNull()+ })+})
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: b12ad601-4092-40f7-8153-0b9cacba2c97
Commits
Reviewing files that changed from the base of the PR and between f63a887 and 3656288.
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 5 remain after this review.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Remove 83 low-value authored test registrations: delete 30 whole suites and trim four others. The removed cases check copied inventories, private selectors, supplied status receipts, mock wiring, and command strings without exercising the claimed operation.
The audit reviewed 70 complete test sources (161 authored registrations), retaining 78 registrations covering real filesystem and process behavior, parsing, persistence, cancellation, protocol compatibility, work budgets, and destructive-action admission. Retained registration ASTs are unchanged. Counts exclude parameterized runtime expansion. The deleted tests’ direct alarms are intentionally removed; remaining tests are not claimed as equivalent replacements.
Remove 28 obsolete shard-timing rows. Historical validation records and recorded diff fixtures remain intact. No application code changes.
Validation: all original source pins, registration hashes, retained ASTs, syntax, and diff whitespace checks pass. All 154 reliability gates and the path-literal ratchet pass locally. The four partially changed test files are also run locally. Full PR CI must pass before merge.