Repository navigation
fix(tests): expect normalized Gateway URLs on macOS - #206281
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: passed. What this changesThis PR updates macOS connection tests to expect omitted port 443 for newly constructed WSS URLs. Example: Switch an SSH connection to the trusted address wss://new.example.test/.
Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this maintainer-authored PR correctly repairs stale macOS assertions while preserving stored-URL, credential, and connection-authority coverage; no actionable defects were found. Reviewed head: Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe macOS connection editor and dashboard adapter pass parsed setup URLs or supplied profile endpoints to AppState, which persists the selected connection; these tests check the resulting configuration. flowchart LR
A[Trusted setup input] --> B[Shared URL builder]
B --> C[Connection editor or adapter]
D[Stored profile endpoint] --> C
C --> E[AppState connection owner]
E --> F[Persisted configuration]
F --> G[Native test assertions]
Technical reviewBest possible solution: Retain this focused assertion correction and complete the existing native CI before marking the draft ready. Do we have a high-confidence way to reproduce the issue? Current-main URL construction omits WSS port 443, while the two original assertions require it; this establishes the mismatch without executing target code. Is this the best way to solve the issue? The patch is the smallest complete correction: update generated-URL expectations while preserving exact stored values and all existing assertions. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against fc25865d99bd. Provenance checked
TestingProof path: none. SecurityNone. EvidenceWhat I checked:
PR surfaceTests +3. Total +3 across 2 files. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 26, 2026, 8:46 PM ET / November 27, 2026, 01:46 UTC. |
|
Merged via squash.
|
* commit '7df6cb759f9e604921536a700e2f527c5516e7de': (185 commits) docs: clarify what telemetry OpenClaw sends and how to opt out refactor(ui): remove retired stream-follow test seams (#206316) fix: distinguish missing command results from unknown outcomes (#206313) fix(build): reuse stamps after identical pnpm installs (#206282) chore(ci): inventory Gateway model catalog worker lifecycles (#206251) fix: keep failed image inspections inside chat activity (#206283) fix: clarify sent-message labels and chat activity icons (#206048) fix(cron): use the service's free memory for extra automation runs (#206322) test(android): reuse the shared TLS fixture (#206280) fix(ui): restore New Session recovery during startup (#206319) test(macos): align new Gateway URL expectations (#206281) feat: let doctor --fix tell when its startup repairs have nothing to do (#206246) fix(android): pause idle gateway discovery without blocking consumers (#196209) fix(ci): prepare the Android SDK for scheduled CodeQL scans (#203843) fix(memory): read delegated cgroup pressure from the mapped leaf (#206308) improve(config): reuse plugin metadata during auto-enable (#206289) improve: copy only the selected model for agent completions (#206287) fix(pr): refresh tooling before preparing reviewed incoming PRs (#206236) fix: keep Gateway ready while plugins drain after updates (#206299) fix(crabbox): keep unused prepared mirrors reusable (#206267) ...
(cherry picked from commit eb13887) Co-authored-by: RomneyDa <[email protected]>
Closes #206279
What Problem This Solves
macOS connection tests still expect newly constructed WSS URLs to spell out port 443 after #143648 intentionally removed that spelling for HTTPS proxy routing. The native test run fails three cases even though the new connections produce the intended URLs.
User Impact
No runtime behavior changes. Native validation again expects the supported URL format while continuing to check credentials, connection authority, and stored connection values.
Why This Change Was Made
Update the SSH-to-direct expectation and the new-selection branch of the profile-promotion test. The six other promotion branches keep their explicit
:443expectations because they use stored URLs or a supplied profile endpoint. All assertions remain; no production code or test cases are removed.Evidence
0dbf9b9f8013f6d9b3a605036e6a593c936600ca: the default macOS partition ran 2,782 tests and reported three issues. Its full native-log artifact records actualwss://new.example.testandwss://newer.exampleversus the old explicit-port expectations. These owning paths and expectations are unchanged at this PR's base.git diff --checkpassed.2ab7b31a13d95bbbb62596679b130445c4c9d3d1..38ecb7e1c4fca03d883577b128a5b0a9cb770e6b: complete, no findings or open risks.38ecb7e1c4fca03d883577b128a5b0a9cb770e6bpassed. The two SSH-to-direct cases and all seven profile-promotion cases passed. The default partition passed 2,787 tests; the other partitions passed 9, 2, and 14 tests. Native app tests were not run on the operator desktop.