Skip to content

test(mobile): move the chat view's Stop cases into the turn-status tests - #29355

Closed
brennanb2025 wants to merge 3 commits into
mainfrom
brennanb2025/fix-git-compat-test-length
Closed

brennanb2025 wants to merge 3 commits into
mainfrom
brennanb2025/fix-git-compat-test-length

Conversation

@brennanb2025

@brennanb2025 brennanb2025 commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

Superseded, not needed. Main fixed both over-long test files first: #29357 split the Git compatibility suite and #29368 split MobileNativeChatView.test.ts. Nothing in this PR is needed any more.

Files Added Deleted Net
Test 2 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​61 $\color{#cf222e}{\Huge{\mathbf{−}}}$​61 0
Prod 0 0 0 0

Problem

Every PR's Mobile verify check is failing on main right now with one lint error in a file none of them touched:

src/session/MobileNativeChatView.test.ts:939:3: File has too many lines (806).

Phone test files are capped at 800 counted lines (blank lines and comments excluded). #29099 (open each chat at its newest message) added a case to this file and took it to 806.

(This PR also covered the same failure in src/shared/git-binary-compatibility.test.ts. #29357 fixed that one on main first, so that half is dropped and main's version kept.)

Change

Test-only, with no behavior change. No test is removed or edited; cases only move.

The four Stop and "Stopping…" cases move verbatim from MobileNativeChatView.test.ts into MobileNativeChatView.turn-status.test.ts, which uses the same test setup (same mocked composer, render helpers and props). A doc comment for listIds() had drifted above one of those cases, and it goes back above the function. The file drops to 878 lines, under the counted cap.

… file

#24093 added a checkout-progress case to the real-Git compatibility suite,
which took src/shared/git-binary-compatibility.test.ts to 820 counted lines,
over the 800-line limit for test files. Every PR's static analysis now fails
on that file. Move the four worktree lifecycle cases into a registered
cases file, called at the same point so the shared repository sees the
same order.
@coderabbitai

coderabbitai Bot commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: f3a2320a-de5b-4b20-88c3-308649a14f98
📥 Commits

Reviewing files that changed from the base of the PR and between f0bf954 and 55cfd96.

📒 Files selected for processing: 2
  • mobile/src/session/MobileNativeChatView.test.ts
  • mobile/src/session/MobileNativeChatView.turn-status.test.ts
💤 Files with no reviewable changes: 1
  • mobile/src/session/MobileNativeChatView.test.ts

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

📝 Walkthrough

The change relocates tests for Stop-button states, after-stop composer placeholders, repeat Stop behavior, and Stop visibility during structured dispatch. The general chat view test file removes these tests, and the turn-status test file adds them.

Priority: ⬇️ Low

Merge Risk: ⚪ Minimal · up to 55cfd

This test-only relocation preserves the Stop-control coverage and resolves the reported line-limit concern, with no identified merge risk.

Pre-merge checks: Passed 3 · Failed 2

Failed Failed checks: 2 warnings

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 2 functions across 3 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
Description check Warning The description explains the original problem and the intended test-file move, but it states that the PR is superseded and not needed. It omits the required ELI5, Why, Linked Issue, Visual Proof, Test… Update the description to complete the required template sections, including the linked issue, testing details, visual proof or N/A justification, checklist status, and rationale. If the PR is truly superseded, close it instead of merging i…
Passed Passed checks: 3 passed
Check name Status Explanation
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.
Title check Passed The title clearly describes the main change: moving the chat view Stop cases into the turn-status tests.
Full details: Description check

Explanation

The description explains the original problem and the intended test-file move, but it states that the PR is superseded and not needed. It omits the required ELI5, Why, Linked Issue, Visual Proof, Testing, Review, checklist, and other template sections.

Resolution

Update the description to complete the required template sections, including the linked issue, testing details, visual proof or N/A justification, checklist status, and rationale. If the PR is truly superseded, close it instead of merging it.

  • Fix all pre-merge checks with AI
✨ Finishing Touches: 💡 2
📝 Generate docstrings: 💡
  • Commit to this branch
  • Create a new PR
🛠️ Fix failing CI checks: 💡
  • 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

Comment @coderabbitai help to get the list of available commands.

#29099 took mobile/src/session/MobileNativeChatView.test.ts to 806 counted
lines, over the 800-line test cap, so the phone app's lint fails on main.
Move the four Stop and Stopping cases verbatim into
MobileNativeChatView.turn-status.test.ts, which has the same setup, and put
the listIds doc comment back above the function it describes.
@brennanb2025 brennanb2025 changed the title test(git): move worktree lifecycle compatibility cases into their own file test: bring main's two over-long test files back under the line cap Oct 16, 2026
# Conflicts:
#	src/shared/git-binary-compatibility.test.ts
@brennanb2025 brennanb2025 changed the title test: bring main's two over-long test files back under the line cap test(mobile): move the chat view's Stop cases into the turn-status tests Oct 16, 2026
@brennanb2025
brennanb2025 marked this pull request as draft October 16, 2026 03:09
@brennanb2025

Copy link
Copy Markdown
Contributor Author

Closing: main fixed both over-long test files first (#29357 and #29368), so nothing here is needed.

@brennanb2025
brennanb2025 deleted the brennanb2025/fix-git-compat-test-length branch October 17, 2026 04:33
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