Skip to content

test: remove 16 low-value test cases - #37333

Merged
OrcaWin merged 3 commits into
mainfrom
test/audit-906-remove15
Nov 2, 2026
Merged

OrcaWin merged 3 commits into
mainfrom
test/audit-906-remove15

Conversation

@OrcaWin

@OrcaWin OrcaWin commented Nov 2, 2026 •

Copy link
Copy Markdown
Collaborator
Files Added Deleted Net
Test 11 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​1 $\color{#cf222e}{\Huge{\mathbf{−}}}$​794 $\color{#cf222e}{\Huge{\mathbf{−}}}$​793
Prod 5 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​3 $\color{#cf222e}{\Huge{\mathbf{−}}}$​17 $\color{#cf222e}{\Huge{\mathbf{−}}}$​14

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.

@OrcaWin
OrcaWin marked this pull request as ready for review November 2, 2026 05:48
@coderabbitai

coderabbitai Bot commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Walkthrough

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: Passed 4 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Description check Warning 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 Passed checks: 4 passed
Check name Status Explanation
Title check Passed 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 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: 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.

Share

@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.

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.

Nitpick comments: 3
package.json: 1

179-180: Trivial · Maintainability & Code Quality · Quick win

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",
.github/workflows/layout-owner-e2e.yml: 1

28-28: Trivial · Functional Correctness · Quick win

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.

tests/e2e/github-project-provider-columns.unit.test.ts: 1

478-481: Trivial · Performance & Scalability · Quick win

Restore scale-focused linked-PR normalization coverage.

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.

Files selected for processing: 15
  • .github/workflows/golden-e2e-experiment.yml
  • .github/workflows/layout-owner-e2e.yml
  • .github/workflows/release-cut.yml
  • config/flaky-test-pattern-baseline.txt
  • package.json
  • tests/e2e/git-no-upstream-polling-churn.spec.ts
  • tests/e2e/github-cli-stall-repro.spec.ts
  • tests/e2e/github-project-provider-columns.unit.test.ts
  • tests/e2e/global-setup-cli-artifact.unit.test.ts
  • tests/e2e/global-teardown.unit.test.ts
  • tests/e2e/golden-posix-fresh-startup.spec.ts
  • tests/e2e/golden-source-control-reveal.spec.ts
  • tests/e2e/golden-windows-fresh-startup.spec.ts
  • tests/e2e/headless-serve-focused-terminal-create.spec.ts
  • tests/e2e/headless-serve-mobile-chat-tab-order.spec.ts
Files with no reviewable changes: 12
  • tests/e2e/golden-windows-fresh-startup.spec.ts
  • tests/e2e/headless-serve-mobile-chat-tab-order.spec.ts
  • .github/workflows/golden-e2e-experiment.yml
  • tests/e2e/global-setup-cli-artifact.unit.test.ts
  • config/flaky-test-pattern-baseline.txt
  • tests/e2e/headless-serve-focused-terminal-create.spec.ts
  • .github/workflows/release-cut.yml
  • tests/e2e/git-no-upstream-polling-churn.spec.ts
  • tests/e2e/golden-source-control-reveal.spec.ts
  • tests/e2e/golden-posix-fresh-startup.spec.ts
  • tests/e2e/global-teardown.unit.test.ts
  • tests/e2e/github-cli-stall-repro.spec.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.

@OrcaWin OrcaWin changed the title test: remove 15 low-value test cases test: remove 17 low-value test cases Nov 2, 2026

@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.

Actionable comments posted: 1


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: 6c68d370-a8ea-4e64-883d-c35842f09ffe
Commits

Reviewing files that changed from the base of the PR and between 142533d and f001eba.

Files selected for processing: 3
  • config/scripts/pr-plugin-e2e-routing.test.mjs
  • config/scripts/pr-plugin-e2e-source-routes.mjs
  • src/main/runtime/agent-prompt-default-path.test.ts
Files with no reviewable changes: 1
  • config/scripts/pr-plugin-e2e-routing.test.mjs

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 6 remain after this review.

pluginRoute(
'plugins.view-shot',
['plugin-shot'],
['plugin-shot', 'plugin-shot-editor'],

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.

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)

@OrcaWin OrcaWin changed the title test: remove 17 low-value test cases test: remove 16 low-value test cases Nov 2, 2026

@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.

Follow-up Comments

Nitpick Restore an aggregate fallback-growth check.

121-125: Trivial · Functional Correctness · Quick win

Restore an aggregate fallback-growth check.

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.

Open the source location


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: 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.

@OrcaWin
OrcaWin merged commit d061d23 into main Nov 2, 2026
67 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