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 244 low-value test definitions (283 expanded cases), including three whole suites and an unused fixture.
What Changed
Delete mock-result assertions, configuration inventories, duplicate scenarios, and visual repro assertions that do not establish the claimed defect. Retain 285 selected definitions. Clean up command selectors, shard timings, flaky allowances, and reliability metadata; preserve historical receipts while retiring affected coverage claims. Production implementation is unchanged.
Why
Reduce maintenance and CI work for tests whose regression value does not justify their cost. Retained tests do not replace every deleted assertion.
Linked Issue
Maintenance requested directly by the repository owner; no separate issue.
Visual Proof
N/A — test and runner cleanup without product UI changes. Nine retained Electron cases passed on an isolated Linux display.
Testing
Local automated validation: 1,412 main-process tests passed, five skipped; 36 unit cases and nine Electron cases passed.
Normal commit hooks and all 43 changed-file checks passed, including typechecks and reliability gates.
Full PR workflow, required checks, mobile web build, WSL, packaging, and aggregate gate passed.
Test removals reviewed against the repository anti-patterns; no new tests added.
Another 53 selected E2E definitions were not run locally, including Windows/WSL cases. Two selected macOS-only definitions were skipped on Linux.
Risk
Level: Medium. Removed scenarios lose their standalone checks, including runtime-host predicate refusal, private hash-helper rejection, and catalog metadata checks. No equivalent replacement coverage is claimed. Production refusal and integrity checks remain unchanged. A plain revert restores the removed tests.
Review
Independent source and metadata review completed. Automated review's request to retain the runtime-host predicate test is declined as an intentional removal. The retired hash test exercises a private helper with an expected digest calculated by the same crypto API; it does not prove that the full installer refuses a corrupt download. Its standalone check is intentionally retired without claiming replacement coverage. Bare imports deliberately preserve module evaluation from the original suites; removing them is outside this batch's approved support cleanup.
Agent skill upstream boundary
No upstream skill-installer material copied or translated.
Notes
Cross-platform, SSH/remote, mobile, mixed-version, and folder-workspace impact considered. Linux local execution and platform CI evidence are stated above; no native-device or deployed SSH execution is claimed.
Checklist
Focused test-removal batch with associated runner metadata cleanup.
Change, rationale, validation limits, coverage loss, and rollback explained.
Self-reviewed for correctness, security, performance, and compatibility.
The pull request removes or narrows test coverage across runtime, source-control, startup, updater, application-service, and end-to-end areas. It adds window-authority recovery and WSL runtime-retention test cases. It also updates flaky-test baselines, CI timing records, WSL participation reporting, and the terminal rendering evidence command.
Pre-merge checks: 4 · 1
Failed checks: 1 warning
Check name
Status
Explanation
Resolution
Description check
The description follows the template's main sections (ELI5, What Changed, Why, Linked Issue, Visual Proof, Testing, Risk, AI Disclosure, Review, Agent skill upstream boundary, Notes, Checklist). It is…
Add a linked issue, or state the authority for the change and confirm whether the author is a stablyai maintainer. The template requires an issue link for outside contributors. Complete the AI Disclosure section, or state that it does not a…
Passed checks: 4 passed
Check name
Status
Explanation
Title check
The title "test: remove 244 low-value tests" matches the main change. The changeset deletes about 244 test definitions across many spec files and removes related flaky-test baseline, shard timing, and…
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: Title check
Explanation
The title "test: remove 244 low-value tests" matches the main change. The changeset deletes about 244 test definitions across many spec files and removes related flaky-test baseline, shard timing, and script entries. The title does not name the specific areas affected, but it describes the primary change accurately.
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 19 files. (2 skipped: 2 unsupported.)
Full details: Description check
Explanation
The description follows the template's main sections (ELI5, What Changed, Why, Linked Issue, Visual Proof, Testing, Risk, AI Disclosure, Review, Agent skill upstream boundary, Notes, Checklist). It is detailed about the scope, validation limits, coverage loss, and rollback. The Linked Issue section does not link an issue and says only 'Maintenance requested directly by the repository owner; no separate issue.' The template requires an issue link (Fixes #) and states that outside contributors' PRs will be ignored without one. The AI Disclosure section is empty. The Risk section gives a level and a rollback path. The Review section includes a note on declined automated-review feedback. The description does not give a concrete before/after for the test-suite change, and it does not explain how the test anti-pattern checkbox was verified beyond saying the removals were reviewed.
Resolution
Add a linked issue, or state the authority for the change and confirm whether the author is a stablyai maintainer. The template requires an issue link for outside contributors. Complete the AI Disclosure section, or state that it does not apply because the author is a stablyai team member. Confirm that the 'Every added test fails without this change' checkbox applies to this change. The change adds no tests, so explain that or leave the box unchecked. Replace the 'Fixes #' placeholder with a real issue reference, or remove it when no issue applies.
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.
162-163: Trivial · Maintainability & Code Quality · Low value
Retain a test for runtime-host refusal.
readHostedReviewForBranch accepts a runtime host ID and must reject it for a nonempty branch. The remaining test uses an SSH host and does not cover this refusal. Retain one hardcoded runtime-host rejection test at the owning layer.
52-53: Trivial · Maintainability & Code Quality · Low value
Unverified finding
Verification ran but could not confirm this finding. It is shown for review, not as a verified issue.
Side-effect imports remain, but they are probably dead code.
The test file no longer names isSshSessionLimitError or the system-SSH transfer functions. The context shows that the suite still mocks system-ssh-file-transfer through importOriginal. That mock does not need a separate import in the test file. Remove these two imports if no other remaining test depends on their load-time effects.
18-19: Trivial · Maintainability & Code Quality · Low value
Unverified finding
Verification ran but could not confirm this finding. It is shown for review, not as a verified issue.
Replace the side-effect imports with removal, or confirm they are needed.
Lines 18-19 now import ../skill-install-provenance and ../skill-install-recovery only for side effects. The removed tests used their path helpers. If the remaining tests do not need these modules to load, delete both imports. Unused side-effect imports hide what the test depends on, and they can run module initialization that the test does not use.
src/main/speech/model-manager.test.ts: 1
1-1: Trivial · Maintainability & Code Quality · Low value
Unverified finding
Verification ran but could not confirm this finding. It is shown for review, not as a verified issue.
Remove the leftover node:crypto side-effect import.
Line 1 imports node:crypto for side effects. The removed hash tests were the only consumers, and node:crypto has no initialization side effects that a test needs. Delete the line.
The PR also removes the only direct tests for the hash check, the HTTPS-only download rule, and the catalog pins. src/main/speech/model-manager.ts line 329 still calls verifyFileSha256. The PR states that removed scenarios lose their standalone checks. Confirm that another layer covers hash-mismatch rejection before merge. A bad hash check is a supply-chain integrity risk for downloaded model files.
Unverified finding
Verification ran but could not confirm this finding. It is shown for review, not as a verified issue.
Remove the bare side-effect import of the park-verdict telemetry module, or document why it is needed.
The spec no longer uses any export from terminal-park-verdict-flip-telemetry. The verdict-window constant import and its settle delay were removed in this change. The bare import now loads renderer code (crash-breadcrumb-recorder, react-update-depth-attribution) into the Playwright Node worker. The spec gets no benefit from this.
If the import exists to satisfy a gate or ratchet, add a comment that says so. Otherwise, delete it.
Unverified finding
Verification ran but could not confirm this finding. It is shown for review, not as a verified issue.
Remove the redundant side-effect import.
fetchAllItems on Line 11 already loads project-view-item-page through project-view-items. That module calls fetchItemsPageWithRaw inside fetchPage. The bare import on Line 10 is a leftover from the removed fetchItemsPageWithRaw named import. It has no remaining purpose and implies a dependency that does not exist.
Delete the import. If a vi.mock or module-order dependency requires it, add a comment that says so.
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; 9 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.
ELI5
Remove 244 low-value test definitions (283 expanded cases), including three whole suites and an unused fixture.
What Changed
Delete mock-result assertions, configuration inventories, duplicate scenarios, and visual repro assertions that do not establish the claimed defect. Retain 285 selected definitions. Clean up command selectors, shard timings, flaky allowances, and reliability metadata; preserve historical receipts while retiring affected coverage claims. Production implementation is unchanged.
Why
Reduce maintenance and CI work for tests whose regression value does not justify their cost. Retained tests do not replace every deleted assertion.
Linked Issue
Maintenance requested directly by the repository owner; no separate issue.
Visual Proof
N/A — test and runner cleanup without product UI changes. Nine retained Electron cases passed on an isolated Linux display.
Testing
Another 53 selected E2E definitions were not run locally, including Windows/WSL cases. Two selected macOS-only definitions were skipped on Linux.
Risk
Level: Medium. Removed scenarios lose their standalone checks, including runtime-host predicate refusal, private hash-helper rejection, and catalog metadata checks. No equivalent replacement coverage is claimed. Production refusal and integrity checks remain unchanged. A plain revert restores the removed tests.
Review
Independent source and metadata review completed. Automated review's request to retain the runtime-host predicate test is declined as an intentional removal. The retired hash test exercises a private helper with an expected digest calculated by the same crypto API; it does not prove that the full installer refuses a corrupt download. Its standalone check is intentionally retired without claiming replacement coverage. Bare imports deliberately preserve module evaluation from the original suites; removing them is outside this batch's approved support cleanup.
Agent skill upstream boundary
Notes
Cross-platform, SSH/remote, mobile, mixed-version, and folder-workspace impact considered. Linux local execution and platform CI evidence are stated above; no native-device or deployed SSH execution is claimed.
Checklist