Repository navigation
test(ios): remove construction-only probes - #124205
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 15, 2026, 12:30 PM ET / 16:30 UTC. ClawSweeper reviewWhat this changesThis PR deletes 237 lines of iOS SwiftUI construction-only tests and their private fixtures from the render smoke suite. Merge readinessKeep open. This focused maintainer test cleanup removes assertion-free SwiftUI hosting probes; source inspection found retained owner and simulator UI coverage for the affected behavior, with no blocking correctness finding. The branch is not on current main and exact-head iOS checks are still in progress. Priority: P3 Review scores
Verification
How this fits togetherThe iOS test layer hosts SwiftUI views using app and gateway state, then validates app behavior through focused owner tests and simulator UI flows. It protects onboarding, gateway setup, sidebar layout, navigation, and security prompts without changing production app code. flowchart LR
A[iOS app and gateway state] --> B[SwiftUI root and onboarding views]
B --> C[Construction-only render probes]
B --> D[Owner behavior tests]
B --> E[Simulator UI flows]
D --> F[Verified iOS behavior]
E --> F
Before merge
Agent review detailsSecurityNone. PR surfaceOther -237. Total -237 across 1 file. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep behavior assertions in the named owner and simulator UI suites, and remove construction-only hosting probes once exact-head iOS validation is green. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR removes low-value tests rather than reporting a user-facing defect; the relevant retained behavior is evidenced by source and simulator-suite coverage. Is this the best way to solve the issue? Yes. Removing probes that only host and discard views is preferable to preserving constructor coupling when named owner tests and simulator UI flows assert the real layout, onboarding, gateway, and navigation outcomes. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 96a7b25ca705. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Land-ready proof for exact head
No physical iOS device was connected; local behavior proof used an available iPhone simulator. The first UI-test command selected the unit-test scheme and failed before execution; the identical test selection passed under the dedicated This removes 237 test/test-support lines and no production lines. Real layout, gateway, onboarding, navigation, lifecycle, licenses, malformed-input fallback, and security-sensitive render coverage remains. No docs or changelog change is required. |
|
Merged via squash.
|
What Problem This Solves
Eight iOS tests only instantiated SwiftUI views, forced one synchronous layout, and discarded the window. They asserted no rendered state, geometry, accessibility, lifecycle, interaction, screenshot, or route outcome, and the suite is not selected by the normal iOS CI test step.
Why This Change Was Made
The deleted probes duplicated stronger owners: RootTabs layout policy tests, gateway state/security tests, onboarding behavior tests, and real XCUITest flows. Their private orientation matrix, synthetic gateway-state fixture, and duplicate preview gateway existed only to keep constructor coupling alive.
Meaningful render tests remain, including the managed-media lifecycle callback, delayed alert presentation, licenses surface, math fallback inputs, and the security-sensitive exec-approval layout.
User Impact
No production or UI behavior changes. The iOS suite loses 237 lines of compile-coupled construction exercises while retaining and directly proving the real layout, navigation, onboarding, and lifecycle contracts.
Evidence
./scripts/lint-swift.sh ios— 0 violations./scripts/format-swift.sh ios— 0 files require formattingPATH="/tmp/openclaw-xcodegen/bin:$PATH" pnpm ios:build— build succeeded with repository-pinned XcodeGen 2.46.0RootTabsPresentationTests,GatewayStatusBuilderTests,GatewayConnectionSecurityTests,GatewayQuickSetupSheetMoodTests,OnboardingDiscoveredGatewayTests) — 106 tests passed; result bundleapps/ios/build/ConstructionProbeOwnerTests.xcresultOpenClawUITestsbehavior proof (testOnboardingExplainsCapabilitiesAndTrust,testSidebarOverviewNavigation,testSidebarMoreAgentsMenuShowsAvatarsAndKeepsFooterVisible,testSidebarSlowEdgeDragOpensFromEveryRootDestination,testOnboardingPairCommandAndCompletionOpenChat) — 5 tests passed with 0 failures; result bundleapps/ios/build/ConstructionProbeUITests.xcresultnode scripts/check-changed.mjs -- apps/ios/Tests/SwiftUIRenderSmokeTests.swift— passed via documented local fallback because no remote provider was availablegit diff --check— passedNo physical iOS device was connected, so focused behavior proof used an available iPhone simulator. The first UI-test invocation selected the unit-test scheme and failed before execution; rerunning the same tests with the dedicated
OpenClawUITestsscheme passed without source changes.Production delta: 0 lines. Test/test-support delta: -237 lines.