refactor: extract UI test infrastructure from AppDelegate - #13226
Conversation
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository: manaflow-ai/cmux/.coderabbit.yaml Review profile: ASSERTIVE Plan: Advanced Run ID: 📒 Files selected for processing (7)
Included review availability: Your plan provides up to 10 included reviews per hour; 4 remain after this review. 📝 WalkthroughWalkthroughThe DEBUG-only UI-test diagnostics logic moves from ChangesUI-test diagnostics refactor
Priority: ⬇️ Low Estimated code review effort: 4 (Complex) | ~45 minutes Change: Refactor Merge Risk: ⚪ Minimal · up to No current code defect blocks merging, though outstanding required runtime checks should still complete. 🚥 Pre-merge checks | ✅ 24 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (24 passed)
Full details: Docstring CoverageExplanation 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 18 functions across 5 files. (2 skipped: 1 unsupported, 1 too large.)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
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. Comment |
|
All contributors have signed the CLA ✍️ ✅ |
|
Bugbot is paused — on-demand spend limit reachedBugbot uses usage-based billing for this team and has hit its on-demand spend limit. A team admin can raise the spend limit in the Cursor dashboard, or wait for the next billing cycle to continue. |
|
Native compile follow-up: applied the exact five-file import repair from upstream #13236 ( |
Bugbot is paused — on-demand spend limit reachedBugbot uses usage-based billing for this team and has hit its on-demand spend limit. A team admin can raise the spend limit in the Cursor dashboard, or wait for the next billing cycle to continue. |
|
Repaired the actual warning-budget failure in |
|
Full-suite evidence at11730ba8a8a3bcbe7f9b6fd3905cec61d0e4e83c: app+test compilation and Swift warning budget now pass. Runtime shard2 job106124394194 failed initial and retry checkout before testing, with built-in diagnostics showing GitHub DNS failure (nameserver192.168.64.1); escalated runner evidence. Runtime shard6 job106124394167 has actual test failures across shared Dock/persistence/browser/workspace/CLI suites, also observed on13211. Shared baseline repair is coordinated centrally; required runtime checks remain unsatisfied, so this is not merge-ready. |
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Reviewer summary
Moves UI test setup out of the app delegate so test support is easier to change without adding more app-lifecycle branching.
What changed
Extract the AppDelegate's UI-test infrastructure into focused coordinators and keep the AppDelegate as the composition root.
This groups the diagnostics writer, Feed sidebar fixture, and socket sanity fixture into one cohesive slice. It includes the forwarding methods needed to avoid a lazy-property initialization cycle while preserving the existing diagnostics payloads, stage ordering, and test environment behavior.
This branch has been reconstructed directly on current
manaflow-ai/cmux:main; it does not depend on the stale fork refactor stack. The project-file diff contains only the five extracted UI-test source registrations.Validation
swiftc -D DEBUG -parseover changed Swift sourcesscripts/check-pbxproj.shgit diff --checkcmux-unitbuild passed on the same extraction after initializing submodules and using the matching GhosttyKit cache.main; fresh current-head CI is still required.Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.Summary by cubic
Moves UI-test setup out of
AppDelegateinto focused coordinators underSources/Debug/UITests/, keepingAppDelegateas the composition root while preserving diagnostics payloads, stage ordering, and socket probe/restart behavior.Behavior changes
import CmuxFoundationto unblock native compile admission.Written for commit eafe78d. Summary will update on new commits.
Summary by CodeRabbit
New Features
Refactor
Replaces #13006 (same commits, head branch moved into the org so it gets the build cache and can be kept current with main).
🤖 Generated with Claude Code