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
{{ message }}
Repository navigation
test: remove 46 low-value client and benchmark tests - #37818
Removes 46 low-value authored test registrations after reviewing 154 source files, including nine whole suites. The deleted suites cover mocked guest paintability, settings control wiring, a synthetic clipboard thumbnail, routing receipt samples, and benchmark parser/report/artifact helpers. Other removals repeat supplied launch payloads, mock calls, DOM inventories or a retained lifecycle journey. This deliberately drops their direct alarms; the reliability manifest records the resulting coverage gaps.
Retains 293 authored registrations with stronger behavioral, resource, persistence, delivery and compatibility checks. The parity and latency benchmarks and their helpers remain. Updates active gate references and timing entries while preserving historical executed commands, results and counts. Counts describe authored registrations before parameter expansion.
CI also exposed a cold-import deadline in the existing onboarding cancellation fixture. Its lazy launch graph now loads in beforeAll, before fake timers and the one-second host-preferences observation window. Both cancellation cases and all their original assertions remain. No production code or new tests.
Validation: all retained registration ASTs match, full surviving-source replay passes with explicit dead-fixture/import cleanup, formatting and correctness lint pass, and the reliability manifest validates all 154 gates against the committed tree. Renderer typechecking and affected unit tests run locally; full applicable PR CI is required before merge.
The pull request removes tests for remote terminal and viewer behavior, agent launch, native chat, issue-view persistence, macOS startup, markdown toggles, navigation, proxy settings, notifications, and image clipboard behavior. It changes setup imports in agent-launch test files and asynchronous setup in the onboarding cancellation test. It also updates reliability-gate coverage notes, removes timing records for deleted tests, and reduces one flaky-test baseline count.
Merge Risk: Low · up to 957a9
The PR is broadly mergeable, but its reliability records and focused floating-chat coverage should be corrected or followed up.
Pre-merge checks: 4 · 1
Failed checks: 1 warning
Check name
Status
Explanation
Resolution
Description check
The description uses the repository's general shape but does not fill most of the required template. It has no ELI5, no plain-language What Changed section, and no Visual Proof entry. The Linked Issue…
Add the missing template sections and information: 1. ELI5: a short plain-language summary with no jargon. 2. What Changed: the before and after as a user or maintainer experiences them, and the mechanism changed. 3. Why: the reason for rem…
Passed checks: 4 passed
Check name
Status
Explanation
Title check
The title clearly summarizes the primary change: removing 46 low-value client and benchmark tests.
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 5 files. (2 skipped: 2 unsupported.)
Full details: Description check
Explanation
The description uses the repository's general shape but does not fill most of the required template. It has no ELI5, no plain-language What Changed section, and no Visual Proof entry. The Linked Issue section has no issue reference ("Fixes #" is blank). The Testing checklist boxes are unchecked, and the Risk section has no Level and no revert or back-out plan. The Review, Agent skill upstream boundary, Notes, and Checklist sections are absent. The description does explain the scope: 46 test registrations removed, the reasons, the retained coverage, the onboarding fixture change, and the validation run. The scope is test removal with no production behavior change. The description therefore covers the core intent but leaves required template sections incomplete.
Resolution
Add the missing template sections and information:
ELI5: a short plain-language summary with no jargon.
What Changed: the before and after as a user or maintainer experiences them, and the mechanism changed.
Why: the reason for removing these tests, and why removal is preferred over alternatives such as rewriting or keeping them.
Linked Issue: an actual issue reference in the form "Fixes #<number>". Confirm whether the author is a maintainer. If the author is an outside contributor, link a real issue.
Visual Proof: write exactly "N/A" and a short reason, because this change has no UI or interaction change.
Testing: state the platforms actually tested, and check the boxes that apply. Describe the steps a reviewer can follow to reproduce the validation.
Risk: state the riskiest part of the change. Name what could break and for whom. Include the coverage gaps for the removed tests, state the Level (Low, Medium, or High), and describe the back-out plan. A plain revert restores the tests. State what a revert does not undo, such as the updated timing entries and gate references in the reliability manifest.
AI Disclosure: state the AI model used, or state that none was used.
Review and Agent skill upstream boundary: complete the boundary checkbox.
Notes: confirm the security, cross-platform, remote SSH, mobile, backwards compatibility, and performance review.
Checklist: complete each item, or explain why an item does not apply.
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.
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 6 remain after this review.
set -o pipefail
printf'%s\n''--- activation gate implementation ---'
sed -n '1,360p' src/renderer/src/lib/worktree-agent-activation-gate.ts
printf'%s\n''--- empty-host fixture ---'
fixture=$(rg -l -F --glob '*.ts''export function rememberEmptyHostAnswerForTests' src/renderer/src)printf'FILE=%s\n'"$fixture"
sed -n '1,260p'"$fixture"printf'%s\n''--- relevant gate and reseed call sites ---'
nl -ba src/renderer/src/lib/worktree-activation-gated-empty-reseed.ts | sed -n '1,90p'
nl -ba src/renderer/src/lib/worktree-activation.ts | sed -n '230,270p'
Repository: stablyai/orca
Length of output: 16674
Script executed:
set -o pipefail
printf'%s\n''--- gate helper ---'
nl -ba src/renderer/src/lib/worktree-agent-activation-gate.ts | sed -n '1,340p'printf'%s\n''--- reseed consumer ---'
rg -n -F --glob '*.ts''export function reseedGatedEmptyWorkspace' src/renderer/src/lib
reseed_file=$(rg -l -F --glob '*.ts''export function reseedGatedEmptyWorkspace' src/renderer/src/lib)
nl -ba "$reseed_file"| sed -n '1,260p'
Repository: stablyai/orca
Length of output: 25117
Script executed:
set -o pipefail
printf'%s\n''--- readiness and activation inventory fixtures ---'
rg -n -F --glob '*.ts' -e 'workspaceSessionReady' -e 'terminalStartupRestorationReady' -e 'canInspectAgentActivationInventory' -e 'session.tabs.list' src/renderer/src/lib src/renderer/src/store src/renderer/src/runtime | head -240
printf'%s\n''--- test-store construction and relevant defaults ---'
rg -n -F --glob '*.ts' -e 'export function createTestStore' -e 'function createTestStore' src/renderer/src/store src/renderer/src | head -40
test_store=$(rg -l -F --glob '*.ts''export function createTestStore' src/renderer/src/store src/renderer/src | head -1)printf'FILE=%s\n'"$test_store"
sed -n '1,260p'"$test_store"
Repository: stablyai/orca
Length of output: 23947
Script executed:
set -o pipefail
printf'%s\n''--- actual store test helper ---'
nl -ba src/renderer/src/store/slices/store-test-helpers.ts | sed -n '1,180p'printf'%s\n''--- onboarding setup and readiness references ---'
nl -ba src/renderer/src/lib/onboarding-folder-cancellation.test.ts | sed -n '55,190p'
Repository: stablyai/orca
Length of output: 13831
Make the activation gate deterministic before asserting terminal creation.
createTestStore() starts with both readiness flags false, and this test does not set them. The activation gate can therefore remain pending while vi.waitFor polls creates(). Set both readiness flags, await the gate, and flush the resulting reseed work.
The retained floating cases all use activeRuntimeEnvironmentId: null, so this suite does not cover a floating chat while a remote runtime is focused. The floating route always resolves to the local host and does not read the setting. A regression that routes floating image reads from the focused setting would not fail this file. Add cases that set a focused runtime on the floating and pinned fixtures:
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.
Removes 46 low-value authored test registrations after reviewing 154 source files, including nine whole suites. The deleted suites cover mocked guest paintability, settings control wiring, a synthetic clipboard thumbnail, routing receipt samples, and benchmark parser/report/artifact helpers. Other removals repeat supplied launch payloads, mock calls, DOM inventories or a retained lifecycle journey. This deliberately drops their direct alarms; the reliability manifest records the resulting coverage gaps.
Retains 293 authored registrations with stronger behavioral, resource, persistence, delivery and compatibility checks. The parity and latency benchmarks and their helpers remain. Updates active gate references and timing entries while preserving historical executed commands, results and counts. Counts describe authored registrations before parameter expansion.
CI also exposed a cold-import deadline in the existing onboarding cancellation fixture. Its lazy launch graph now loads in
beforeAll, before fake timers and the one-second host-preferences observation window. Both cancellation cases and all their original assertions remain. No production code or new tests.Validation: all retained registration ASTs match, full surviving-source replay passes with explicit dead-fixture/import cleanup, formatting and correctness lint pass, and the reliability manifest validates all 154 gates against the committed tree. Renderer typechecking and affected unit tests run locally; full applicable PR CI is required before merge.