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 16 low-value test cases, including nine complete suites: narrow startup/menu/headless smoke checks, mocked setup/teardown transcripts, weak polling/stall repros, implementation counts, and an arbitrary fallback-routing percentage budget.
Keep behavioral provider, routing, and queued PTY lookup coverage. Preserve main's newer routing scenarios and prompt receipt/write-order test. Remove obsolete suite scheduling and flaky-baseline entries. The old exact-microtask assertion was already removed upstream and is excluded from this PR's removal count.
Validation: reviewed the source removals and the conflict resolution against main. Fresh full CI runs on the updated commit; no local project tests or builds were run.
The changes remove several E2E and unit tests, including tests for golden startup, source-control reveal, headless serve behavior, Git polling, GitHub CLI stalls, project-field normalization, CLI setup, and teardown cleanup. Related workflow test lists, package scripts, and flaky-test baseline entries were updated. A plugin E2E routing test and its associated constant were also removed.
Merge Risk: Low · up to 167cd
The PR is mergeable with a coverage follow-up: future routing changes could silently select only the generic plugin test for more sources. The previously missing spec is present.
Pre-merge checks: 4 · 1
Failed checks: 1 warning
Check name
Status
Explanation
Resolution
Description check
The description follows the repository template in its main parts. It has a summary of the removals and the kept coverage, a validation note, and a LoC table. It does not fill in the template sections…
Add the missing template sections. Fill in ELI5 with a plain-language summary. Under What Changed, state the before and after behavior. Under Why, explain why removal is preferred over the alternatives. Under Linked Issue, add a 'Fixes #' i…
Passed checks: 4 passed
Check name
Status
Explanation
Title check
The title "test: remove 16 low-value test cases" matches the main change, which removes low-value test cases. It follows the conventional-commit style. The PR objectives cite 17 cases, while the title…
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 16 low-value test cases" matches the main change, which removes low-value test cases. It follows the conventional-commit style. The PR objectives cite 17 cases, while the title and description say 16. The description also says the old exact-microtask assertion is excluded from the removal count. This count mismatch is minor and does not make the title unrelated or vague.
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 follows the repository template in its main parts. It has a summary of the removals and the kept coverage, a validation note, and a LoC table. It does not fill in the template sections for ELI5, Linked Issue, Visual Proof, Testing checkboxes, Risk level, or AI Disclosure. The change is a test-only cleanup. Visual Proof could be marked N/A, and Risk needs a level and a revert note. The Linked Issue section is required for outside contributors, so the author must state whether the author is a maintainer. The Testing section says no local tests were run, but the template asks which platforms were tested.
Resolution
Add the missing template sections. Fill in ELI5 with a plain-language summary. Under What Changed, state the before and after behavior. Under Why, explain why removal is preferred over the alternatives. Under Linked Issue, add a 'Fixes #' issue reference or state that the author is a maintainer who has no issue to link. Under Visual Proof, write N/A and give the reason. Under Testing, list the checks that were run, or state that no local tests were run and that CI covers them. Under Risk, set the Level to Low, Medium, or High. Name the riskiest part, which is the removed golden and routing coverage. State how to revert. Complete the AI Disclosure section unless the author is a StablyAI team member. Complete the checklist items, or mark each one with its status.
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 reason will be displayed to describe this comment to others. Learn more.
Caution
Some comments are outside the diff and can’t be posted inline due to GitHub limitations.
⚠️ Outside diff range comments (1)
Major · Restore the Windows fresh-profile startup golden test in… · release-cut.yml:803-808
.github/workflows/release-cut.yml:803-808 Major · Functional Correctness · Quick win
Restore the Windows fresh-profile startup golden test in terminal-rendering-golden.
The Windows leg of this release-blocking job no longer runs a test. The deleted test:e2e:windows-fresh-startup-golden test was the workflow's Windows fresh-startup signal. The separate release-evidence step is inactive and non-blocking, so it does not replace that coverage. Restore the deleted test and schedule it in the Windows branch of this job, or add an equivalent replacement.
Restore the changed-row reveal assertion in the source-control golden command.
The ssh-orcad test is not a replacement. It checks the opposite state for a managed remote file in a separate CI lane. Restore golden-source-control-reveal.spec.ts and schedule it in the existing command:
Suggested fix
- "test:e2e:source-control-golden": "pnpm run ensure:electron-runtime && npx playwright test tests/e2e/golden-file-open-edit-save.spec.ts tests/e2e/golden-source-control-commit.spec.ts tests/e2e/golden-source-control-open-diff.spec.ts --grep @golden --config tests/playwright.config.ts --project electron-headless --workers=1",+ "test:e2e:source-control-golden": "pnpm run ensure:electron-runtime && npx playwright test tests/e2e/golden-file-open-edit-save.spec.ts tests/e2e/golden-source-control-commit.spec.ts tests/e2e/golden-source-control-open-diff.spec.ts tests/e2e/golden-source-control-reveal.spec.ts --grep @golden --config tests/playwright.config.ts --project electron-headless --workers=1",
Restore the mobile chat-tab order spec in the layout-owner workflow.
The layout-owner workflow no longer runs tests/e2e/headless-serve-mobile-chat-tab-order.spec.ts. That spec was the only inspected test for this sequence. It closes the old phone terminal, creates a host terminal, and creates another phone terminal. It then asserts that the Claude chat tab remains in both tabs and the flattened tabGroups[].tabOrder. The retained chat-tab placement spec checks placement only immediately after requested creation. The retained mobile spec checks session identity. A regression that drops the chat tab during this sequence can pass the layout-owner suite. The PR description does not place this sequence in its stated low-value categories.
Restore the spec file and add tests/e2e/headless-serve-mobile-chat-tab-order.spec.ts back to test_files. Placing it after tests/e2e/headless-serve-chat-tab-placement.spec.ts keeps it with the related chat-tab coverage. Alternatively, replace it with an equivalent test that keeps the same close/create assertions.
fetchAllItems normalizes every row across pages and supports up to 500 rows. The retained tests exercise only one or two rows and do not count linked-PR normalization or node reads. A repeated-read regression can therefore pass the suite. Restore the deleted scale assertion, or replace it with an equivalent multi-page test.
Suggested fix
+ it.each([50, 500])(+ 'normalizes %i ten-PR rows with linear work and page requests',+ async (count) => {+ // Keep the existing 50/500-row fixture, normalizer-call count,+ // PR-node-read count, and page-request assertions here.+ }+ )
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: 55991d96-caeb-4ef3-b184-1f08e0413f01
Commits
Reviewing files that changed from the base of the PR and between 3b5eed8 and 142533d.
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 6 remain after this review.
The reason will be displayed to describe this comment to others. Learn more.
Major · Functional Correctness · Quick win
Remove the nonexistent plugin-shot-editor route target.
pluginRoute maps this name to tests/e2e/plugin-shot-editor.spec.ts, but that file is absent at the reviewed revision. The routing test requires every routed spec to exist, so this change fails the test and selects a nonexistent Playwright file for view-shot changes. Use plugin-shot, or add the missing spec in this change. (raw.githubusercontent.com)
A specific route can stop matching plugin sources while the fallback still satisfies the per-source routing assertion. The affected sources then run only tests/e2e/plugin-demo.spec.ts, and the remaining checks do not measure that growth. Reintroduce an aggregate assertion with a repository-supported baseline or threshold. The deleted 10% limit is not established as an external requirement.
File: No configuration file from this repository applied
Commit: Unavailable
Layers: Repository UI
Review profile: CHILL
Plan: Advanced
Run ID: 727cbe69-8758-495a-933b-214c2e5f3b65
Commits
Reviewing files that changed from the base of the PR and between f001eba and 167cd22.
Files selected for processing: 2
config/flaky-test-pattern-baseline.txt
config/scripts/pr-plugin-e2e-routing.test.mjs
Files with no reviewable changes: 2
config/scripts/pr-plugin-e2e-routing.test.mjs
config/flaky-test-pattern-baseline.txt
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 16 low-value test cases, including nine complete suites: narrow startup/menu/headless smoke checks, mocked setup/teardown transcripts, weak polling/stall repros, implementation counts, and an arbitrary fallback-routing percentage budget.
Keep behavioral provider, routing, and queued PTY lookup coverage. Preserve main's newer routing scenarios and prompt receipt/write-order test. Remove obsolete suite scheduling and flaky-baseline entries. The old exact-microtask assertion was already removed upstream and is excluded from this PR's removal count.
Validation: reviewed the source removals and the conflict resolution against main. Fresh full CI runs on the updated commit; no local project tests or builds were run.